Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.91 refuses to upgrade if /etc/resolv.conf points to itself #467

Closed
ghost opened this issue Nov 29, 2018 · 10 comments
Closed

v0.91 refuses to upgrade if /etc/resolv.conf points to itself #467

ghost opened this issue Nov 29, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2018

I was unable to use 0.91 on my Raspberry Pi, for some reason the DNS doesn't work and http://192.168.x.x:3000/ refuses to connect.

I can reinstall and continue to use the older 0.9 hotfix 1 without an issue.

Steps to reproduce

  1. Completely uninstall 0.9 hotfix 1
  2. Install 0.91 and start the service

Expected behavior

AdGuard Home works as before.

Actual behavior

DNS doesn't work, and the Dashboard refuses to load.

Your environment

Description Value
Version of AdGuard Home server: v0.91
How did you setup DNS configuration: DHCP on router pointing to Pi device for DNS
If it's a router or IoT, please write device model: Raspberry Pi 3 Model B+
Operating system and version: Raspbian GNU/Linux 9 (stretch)
@hmage
Copy link
Contributor

hmage commented Nov 29, 2018

What binary did you download? arm? arm64? amd64? i386?

@ghost
Copy link
Author

ghost commented Nov 29, 2018

I replicated the same behaviour/steps from the Wiki like 0.9-hotfix1, so I got the arm one (AdGuardHome_v0.91_linux_arm.tar.gz)

@hmage
Copy link
Contributor

hmage commented Nov 29, 2018

Can you try to run it from the terminal instead of systemd?

Just run it from terminal:

cd $HOME/AdGuardHome
sudo ./AdGuardHome

And show us what it says.

That would be greatly appreciated to figure out what's going on.

@ghost
Copy link
Author

ghost commented Nov 29, 2018

2018/11/29 21:54:04 AdGuard Home web interface backend, version v0.91
2018/11/29 21:54:04 Current working directory is /home/pi/AdGuardHome
Would you like to set user/password for the web interface authentication (yes/no)?
Please type 'yes' or 'no': no
2018/11/29 21:54:12 Reading YAML file: /home/pi/AdGuardHome/AdGuardHome.yaml
2018/11/29 21:54:12 YAML file doesn't exist, skipping: /home/pi/AdGuardHome/AdGuardHome.yaml
2018/11/29 21:54:12 Updating schema from 0 to 1
2018/11/29 21:54:12 Seting ID=1543488843 for filter https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
2018/11/29 21:54:12 Downloading update for filter 1543488843 from https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
2018/11/29 21:54:12 Couldn't request filter from URL https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt, skipping: Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: dial tcp: lookup adguardteam.github.io on 0.0.0.0:53: read udp 127.0.0.1:40240->127.0.0.1:53: read: connection refused
2018/11/29 21:54:12 Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: dial tcp: lookup adguardteam.github.io on 0.0.0.0:53: read udp 127.0.0.1:40240->127.0.0.1:53: read: connection refused

It then ends there.

Again, I removed 0.91 and reinstalled 0.9-hotfix1 and everything is back up and running (so I can post this)

@hmage
Copy link
Contributor

hmage commented Nov 29, 2018

What are the contents of /etc/resolv.conf? Is it 127.0.0.1?

@hmage
Copy link
Contributor

hmage commented Nov 29, 2018

Breaking commit is 32d4e80 -- it tries to use DNS before the dns server is up.

@hmage
Copy link
Contributor

hmage commented Nov 29, 2018

As a workaround, please change /etc/resolv.conf to point to another server, for example 8.8.8.8

@hmage hmage added the waiting for data Waiting for users to provide more data. label Nov 29, 2018
@ameshkov ameshkov added this to the v0.92 milestone Nov 29, 2018
@ameshkov ameshkov added bug P3: Medium and removed waiting for data Waiting for users to provide more data. labels Nov 29, 2018
@ameshkov ameshkov changed the title v0.91 refuses to work on Pi Use bootstrap DNS for filters' updates requests Nov 29, 2018
@hmage hmage changed the title Use bootstrap DNS for filters' updates requests v0.91 refuses to work on Pi Nov 29, 2018
@hmage hmage added waiting for data Waiting for users to provide more data. and removed P3: Medium bug labels Nov 29, 2018
@ghost
Copy link
Author

ghost commented Nov 29, 2018

The contents of /etc/resolv.conf are currently:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.100
nameserver 0.0.0.0

Awesome. Changing the nameservers to Cloudflare (1.1.1.1 and 1.0.0.1) allowed v0.91 to launch successfully.

I then rebooted the Pi, and /etc/resolv.conf reverted back to the above, and AdGuard Home v0.91 continued to work successfully.

It also continues to work after rebooting Pi a few times.

Seems to only happen on first run/install?

@ameshkov ameshkov added bug P3: Medium and removed waiting for data Waiting for users to provide more data. labels Nov 30, 2018
@ameshkov
Copy link
Member

Seems to only happen on first run/install?

Yep, that's right.

@ameshkov ameshkov changed the title v0.91 refuses to work on Pi AG Home cannot start after install/update when it's configured to be a DNS server in /etc/resolv.conf Nov 30, 2018
@hmage hmage changed the title AG Home cannot start after install/update when it's configured to be a DNS server in /etc/resolv.conf v0.91 refuses to upgrade if /etc/resolv.conf points to itself Dec 3, 2018
@ameshkov
Copy link
Member

Resolved in the master branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants