Adguard -> 502 bad getway

i just installed “adguard home v1.0.1” from Hass.io.
Config window has:
{
“ssl”: true,
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
}

i left that config and network window as is.
clicked on start, and Open web UI to get error of 502: Bad Gateway
http://192.168.1.233:8123/hassio/ingress/a0d7b954_adguard

do i have to fill in anything in the config or network?
i changed SSL to false because i am not using https and that failed too

1 Like

I had that too. Turns out you have to have some patience for the add-on to start up:)

this is what i see in Hassio log:
2019/05/07 14:09:46 [info] Creating the UDP server socket
2019/05/07 14:09:46 [fatal] Couldn’t start forwarding DNS server, cause: couldn’t listen to UDP socket, cause: listen udp 0.0.0.0:53: bind: address already in use
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

My guess is you already have another DNS server running (which defaults to Port 53). Maybe pihole?

1 Like

very strange. there is no pihole in the house.
but i am tempted to install pihole from hass.io next if adguard does not work

1 Like

Do you by any chance run on an Ubuntu box? If so, check out this comment:

7 Likes

i followed the link and the page for adguard loads up now! :smiley:
the first solution didnt work for my ubuntu but after following more suggestions, this works for me…
sudo nano /etc/resolv.conf
change to my verizon’s router ip of 192.168.1.1

sudo systemctl disable systemd-resolved.service
then sudo reboot.

thank you everyone!

5 Likes

I was having the same problem. It turns out you can not run DNSMasq and AdGuard at the same time.

3 Likes

This solution worked for my ubuntu till I rebooted the OS today and I get a new issues as below. the addon page keep showing DNS server is starting up. but nothing happens and show 502 error later.

[12:00:45] INFO: Starting AdGuard Home server…
2020/05/10 12:00:45 [info] AdGuard Home, version v0.101.0, channel release
, arch linux amd64%!(EXTRA string=)
2020/05/10 12:00:45 [info] Upstream 0: https://dns10.quad9.net:443/dns-query
2020/05/10 12:00:45 [error] Couldn’t load filter 3 contents due to stat /data/adguard/data/filters/3.txt: no such file or directory
2020/05/10 12:00:45 [info] Go to http://127.0.0.1:45158

Thank you very much my friend! That was exactly my problem! DNS mask stopped and it worked! :slight_smile:
Small cause → Big effect!