What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

AdGuardHome AGH not working on new firmware 3006

Just another random observation that might not be an AGH issue. For fun I have a Time Machine backup running on the router. I have noticed that when a Guest Network is active, it stops the backup disk from being seen to the network and stops the backups. As soon as the Guest Network is disabled, everything works. Figured I'd point it out in case someone else brings it up down the road.
I am revisiting this mention to share two threads you might be interested in:
and
 
Last edited:
Hello, new to this forum but i've been using AMTM Adguard Home for multiple years now. It's only recently that i've been getting issues so i've been following this thread. I was getting a peculiar situation where Adguard Home would run and I could access the webui, but I couldn't access AGH through the AMTM menu - It would error out with the rate limit message mentioned before. As such I've been stuck using 1.7.7 and v0.107.62

I was finally able to access the terminal menu for AGH via
Code:
 curl -L -s -O https://raw.githubusercontent.com/jumpsmm7/Asuswrt-Merlin-AdGuardHome-Installer/master/installer && sh installer; rm installer

However, once I accessed that menu and (successfully) updated to 1.9.0 it gave me this message:
Code:
*** Error:  Couldn't start AdGuardHome!
 *** Error:  Please send WebUI System Log to dev.
 Info:  Operation aborted, returning to Main Menu. You can quit or continue.
=====================================================
One or more critical variables could not be set in a timely manner.
It is possible we have hit the github api ratelimit (60req./hr), and our token work around did not work (5000req./hr).
For more information, please read /tmp/1482845_headers.out.
Please be sure to check your internet connection, and please try again later.
The installer script will now exit.

Oh, huh, nvm, despite that error it appears that I can access AG via terminal now through AMTM. So, I guess. uhhh.. Thanks! Problem solved! Guess I'm just another data point about the fix working now!

Oh yeah, i'm running a GT-AXE16000 if that helps.
Also wanted to mention that I have had zero problems since 1.9.3 on my AXE16000. Everything is running as smoothly as can be after multiple days.
 
Also wanted to mention that I have had zero problems since 1.9.3 on my AXE16000. Everything is running as smoothly as can be after multiple days.
I am glad to hear. That is the intended goal. I hope everyone gives a special thanks to @dave14305 and @thelonelycoder for helpful advice, and error troubleshooting. Dave has a knack for providing helpful feedback and noticing the needle within the haystack, and thelonelycoder brings this community together and inspires all developers here by welcoming a community of scripts via AMTM. Also, please feel free to provide feedback or request for any AdGuardHome assistance using the AdGuardHome prefix here in the add-ons forum. There are many AdGuardHome users here who can share advice, and provide helpful tips for those trying to customize beyond the installer version I provide.
 
After updating to 1.8.8 there was DNS and AGH was working. However, now the Guest Network isn't working and devices cannot connect. I'm getting this in the logs now, which is the guest network:


Code:
Jul 14 15:21:17 rc_service: watchdog 2924:notify_rc start_dnsmasq 1
Jul 14 15:21:17 custom_script: Running /jffs/scripts/service-event (args: start dnsmasq)
Jul 14 15:21:17 custom_script: Running /jffs/scripts/dnsmasq-sdn.postconf (args: /etc/dnsmasq-1.conf 1)
Jul 14 15:21:17 dnsmasq[353253]: failed to create listening socket for 192.168.52.1: Address already in use
Jul 14 15:21:17 dnsmasq[353253]: FAILED to start up
Jul 14 15:21:17 custom_script: Running /jffs/scripts/service-event-end (args: start dnsmasq)

Thanks for getting this working on 3006 with Guest Networks.

One thing I noticed today is if I setup multiple VLans/Guest Networks, the subsequent ones cause these dnsmasq errors to come back. The first one continues to work correctly.
 
after doing thhe manuala update i now get
1754464199922.png
 
Thanks, will continue seeing if I can repeat it and share better steps. I am on v1.9.3 right now.
I attempted to test this out, and have now gotten myself stuck. Factory reset the router 3x this afternoon trying to get back to 1 guest network but cannot.

Every new attempt fires the dnsmasq fatal error/restart process. Have to force kill AdGuard to stop the router from freezing up.

Steps:
1) fresh install, and router setup.
2) Setup 1 network and 1 guest network pro.
3) format usb, install AdGuard
4) binary doesn’t start, log spammed with dnsmasq fatal errors (constantly restarts process)

2nd attempt:
1) fresh install
2) only setup main network, no guest
3) format usb, install adguard
4) setup guest network
Now the process is started, but says it cannot bind the address. And this repeats but least doesn’t crash dnsmasq so the router is responsive.


The only way to get the router working, with AdGuard, is to not have guest network. Then it runs/works and doesn’t lock up.

Stumped as to how I had it working and now am unable to do so.
 
Stumped as to how I had it working and now am unable to do so.
You and me both. Perhaps start out with everything fresh. Manually configure everything until the point when AGH starts to fail. Let's see when the problems start happening. Do so, and share all steps you take and any configuration's you do besides the one's you had when the setup was working (this means share any other scripts you have installed, and the contents of your cat /etc/dnsmasq*.conf files at the points of failure. I will review it, then if I am able to determine the cause (and am able to) I will fix it if it is something that has been overlooked inside the script.
 
Last edited:
You and me both. Perhaps start out with everything fresh. Manually configure everything until the point when AGH starts to fail. Let's see when the problems start happening. Do so, and share all steps you take and any configuration's you do besides the one's you had when the setup was working (this means share any other scripts you have installed, and the contents of your cat /etc/dnsmasq*.conf files at the points of failure. I will review it, then if I am able to determine the cause (and am able to) I will fix it if it is something that has been overlooked inside the script.
I really appreciate your help @SomeWhereOverTheRainBow. These are the steps I did this morning to repeat part of the behavior.

1) Factory Reset (clear all settings)
2) Setup router user/pass, main network (skip IOT/guest creation)
3) First login: setup guest network pro, router ssh, enable jffs (reboot)
4) SSH: use amtm to format usb disk
5) Install Entware, then AGH
-Beta, redirect all dns=yes, redirect only NON-CUSTOM=yes, set user/pass

System Log output:
Code:
Aug  9 08:22:24 rc_service: watchdog 3908:notify_rc start_dnsmasq 3
Aug  9 08:22:24 custom_script: Running /jffs/scripts/dnsmasq-sdn.postconf (args: /etc/dnsmasq-3.conf 3)
Aug  9 08:22:24 dnsmasq[29974]: failed to create listening socket for 192.168.52.1: Address already in use
Aug  9 08:22:24 dnsmasq[29974]: FAILED to start up
Aug  9 08:22:24 custom_script: Running /jffs/scripts/service-event-end (args: start dnsmasq)
Aug  9 08:22:55 rc_service: watchdog 3908:notify_rc start_dnsmasq 3
Aug  9 08:22:55 custom_script: Running /jffs/scripts/dnsmasq-sdn.postconf (args: /etc/dnsmasq-3.conf 3)
Aug  9 08:22:55 dnsmasq[30270]: failed to create listening socket for 192.168.52.1: Address already in use
Aug  9 08:22:55 dnsmasq[30270]: FAILED to start up
Aug  9 08:22:55 custom_script: Running /jffs/scripts/service-event-end (args: start dnsmasq)

AdGuard is not crashing at this point though, as it only goes through the start cycle one time.
Yesterday I set DNS Director to Router for main and guest network, then installed ntpMerlin and unbound. Then AGH.
Guessing is that is when the crash/restart of AdGuard happened repeatedly and had to kill it (will see if I can get that too)

Here are the dnsmasq files:
Code:
cat dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dns-forward-max=1500
domain=lan
expand-hosts
bogus-priv
domain-needed
local=/lan/
dhcp-range=lan,192.168.50.2,192.168.50.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.50.1
dhcp-option=lan,15,lan
dhcp-option=lan,252,"\n"
dhcp-authoritative
no-dhcp-interface=tun22
no-dhcp-interface=tun23
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1232
port=553
local=/168.192.in-addr.arpa/
local=/10.in-addr.arpa/
local=//
dhcp-option=lan,6,192.168.50.1
add-mac
add-subnet=32

Code:
cat dnsmasq-3.conf
pid-file=/var/run/dnsmasq-3.pid
user=nobody
bind-interfaces
listen-address=192.168.52.1
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-authoritative
dhcp-range=br54,192.168.52.2,192.168.52.254,255.255.255.0,86400s
dhcp-option=br54,3,192.168.52.1
dns-forward-max=1500
bogus-priv
domain-needed
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
dhcp-leasefile=/var/lib/misc/dnsmasq-3.leases
script-arp
 
Alright, there we go.

Updated DNS Director to point guest network at Router. Then installed ntpMerlin, and unbound. Then reinstalled AGH.

Now the System Log keeps repeating this - and the installer never finishes.
Code:
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.066140 [info] AdGuard Home, version v0.108.0-b.73
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.066273 [info] AdGuard Home is running as a service
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.033424 [info] tls_manager: using default ciphers
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.043945 [info] webapi: initializing
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083692 [info] dnsproxy: upstream mode is set mode=load_balance
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083778 [info] dnsproxy: cache enabled size=4096
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083807 [info] dnsproxy: max goroutines is set count=300
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083949 [info] dnsproxy: ratelimit is enabled rps=20 ipv4_subnet_mask_len=24 ipv6_subnet_mask_len=56
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083973 [info] dnsproxy: server will refuse requests of type any
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.083995 [info] dnsproxy: upstream mode is set mode=load_balance
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.084017 [info] dnsproxy: cache enabled size=4194304
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.084040 [info] dnsproxy: max goroutines is set count=300
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.085969 [info] webapi: AdGuard Home is available at the following addresses:
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.092938 [info] go to http://127.0.0.1:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.093010 [info] go to http://127.0.1.1:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.093026 [info] go to http://24.22.187.15:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.093060 [info] go to http://192.168.50.1:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.093077 [info] go to http://192.168.52.1:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.095353 [info] starting plain server server=plain addr=0.0.0.0:3000
Aug  9 08:29:01 AdGuardHome[45586]: 2025/08/09 08:29:01.095346 [info] addrproc: processing addresses
Aug  9 08:29:01 S99AdGuardHome[44542]: start_adguardhome took 0 second(s) to complete.
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.859669 [info] dnsproxy: starting dns proxy server
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.859816 [info] dnsproxy: creating udp server socket addr=0.0.0.0:53
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.860020 [info] dnsproxy: listening to udp addr=[::]:53
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.860047 [info] dnsproxy: creating tcp server socket addr=0.0.0.0:53
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.860159 [info] dnsproxy: warning: binding attempt=1 err="listen tcp 0.0.0.0:53: bind: address already in use"
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.864854 [error] closing query log: flushing log buffer: nothing to write to a file
Aug  9 08:29:02 AdGuardHome[45586]: 2025/08/09 08:29:02.864882 [fatal] starting dns server: configuring listeners: listening on tcp addr 0.0.0.0:53: listening to tcp socket: listen tcp 0.0.0.0:53: bind: address already in use

Updated dnsmasq entries:
Code:
cat dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
no-poll
no-negcache
cache-size=0
min-port=4096
dns-forward-max=1500
domain=lan
expand-hosts
bogus-priv
domain-needed
local=/lan/
dhcp-range=lan,192.168.50.2,192.168.50.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.50.1
dhcp-option=lan,15,lan
dhcp-option=lan,252,"\n"
dhcp-authoritative
no-dhcp-interface=tun22
no-dhcp-interface=tun23
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1232

dhcp-option=lan,42,192.168.50.1 # ntpMerlin
port=553
local=/168.192.in-addr.arpa/
local=/10.in-addr.arpa/
local=//
dhcp-option=lan,6,192.168.50.1
add-mac
add-subnet=32
server=127.0.0.1#53535

Code:
cat dnsmasq-3.conf
pid-file=/var/run/dnsmasq-3.pid
user=nobody
bind-interfaces
listen-address=192.168.52.1
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-authoritative
dhcp-range=br54,192.168.52.2,192.168.52.254,255.255.255.0,86400s
dhcp-option=br54,3,192.168.52.1
dns-forward-max=1500
bogus-priv
domain-needed
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
dhcp-leasefile=/var/lib/misc/dnsmasq-3.leases
script-arp
 
Removing the Guest Network, and re-installing AGH stops any error messages in the log, and AG works well.

So ... not sure if it's the re-install, or the additional scripts, that is doing it. But it seems to be related to the guest network / vlan.

Thank you again for all the help :)
 
i knew that ntp merlin and adguard home were incompatible, has anything changed?
 
As an extra data point, I have no trouble running NTPMerlin and AGH together.
 
I really appreciate your help @SomeWhereOverTheRainBow. These are the steps I did this morning to repeat part of the behavior.

1) Factory Reset (clear all settings)
2) Setup router user/pass, main network (skip IOT/guest creation)
3) First login: setup guest network pro, router ssh, enable jffs (reboot)
4) SSH: use amtm to format usb disk
5) Install Entware, then AGH
-Beta, redirect all dns=yes, redirect only NON-CUSTOM=yes, set user/pass

System Log output:
Code:
Aug  9 08:22:24 rc_service: watchdog 3908:notify_rc start_dnsmasq 3
Aug  9 08:22:24 custom_script: Running /jffs/scripts/dnsmasq-sdn.postconf (args: /etc/dnsmasq-3.conf 3)
Aug  9 08:22:24 dnsmasq[29974]: failed to create listening socket for 192.168.52.1: Address already in use
Aug  9 08:22:24 dnsmasq[29974]: FAILED to start up
Aug  9 08:22:24 custom_script: Running /jffs/scripts/service-event-end (args: start dnsmasq)
Aug  9 08:22:55 rc_service: watchdog 3908:notify_rc start_dnsmasq 3
Aug  9 08:22:55 custom_script: Running /jffs/scripts/dnsmasq-sdn.postconf (args: /etc/dnsmasq-3.conf 3)
Aug  9 08:22:55 dnsmasq[30270]: failed to create listening socket for 192.168.52.1: Address already in use
Aug  9 08:22:55 dnsmasq[30270]: FAILED to start up
Aug  9 08:22:55 custom_script: Running /jffs/scripts/service-event-end (args: start dnsmasq)

AdGuard is not crashing at this point though, as it only goes through the start cycle one time.
Yesterday I set DNS Director to Router for main and guest network, then installed ntpMerlin and unbound. Then AGH.
Guessing is that is when the crash/restart of AdGuard happened repeatedly and had to kill it (will see if I can get that too)

Here are the dnsmasq files:
Code:
cat dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dns-forward-max=1500
domain=lan
expand-hosts
bogus-priv
domain-needed
local=/lan/
dhcp-range=lan,192.168.50.2,192.168.50.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.50.1
dhcp-option=lan,15,lan
dhcp-option=lan,252,"\n"
dhcp-authoritative
no-dhcp-interface=tun22
no-dhcp-interface=tun23
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1232
port=553
local=/168.192.in-addr.arpa/
local=/10.in-addr.arpa/
local=//
dhcp-option=lan,6,192.168.50.1
add-mac
add-subnet=32

Code:
cat dnsmasq-3.conf
pid-file=/var/run/dnsmasq-3.pid
user=nobody
bind-interfaces
listen-address=192.168.52.1
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-authoritative
dhcp-range=br54,192.168.52.2,192.168.52.254,255.255.255.0,86400s
dhcp-option=br54,3,192.168.52.1
dns-forward-max=1500
bogus-priv
domain-needed
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
address=/mask.icloud.com/mask-h2.icloud.com/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
dhcp-leasefile=/var/lib/misc/dnsmasq-3.leases
script-arp
so it appears the issue is happening with the guestnetwork. You can see the main dnsmasq file has the port added properly. what is your output for cat /jffs/scripts/dnsmasq-sdn.postconf
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top