asuswrt-merlin.ng icon indicating copy to clipboard operation
asuswrt-merlin.ng copied to clipboard

Avoid starting DNSMASQ when in repeater mode

Open ratcashdev opened this issue 2 years ago • 6 comments

Logs filled with 'watchdog 250:notify_rc start_dnsmasq' every 30 seconds if the device (AC68U) is in repeater mode. The condition seems to be wrong, fixed.

ratcashdev avatar Sep 13 '21 20:09 ratcashdev

in repeater mode, dnsmasq is required when not connected, this is not a bug, please check your /jffs/configs and /jffs/scripts directories, delete the broken soft links or files, or delete all.

paldier avatar Sep 16 '21 02:09 paldier

Both directories are empty. Maybe the logs are harmless, just found it strange, that I see those lines every 30 secs. Moreover, connections to this repeater are unstable. After-50-10 mins the connection loses INET and is unable to obtain an IP. Thought that's because logs fill up space and cause trouble.

ratcashdev avatar Sep 16 '21 06:09 ratcashdev

5 mins? restart watchdog for no heartbeat, did you find this message in the log.

paldier avatar Sep 17 '21 01:09 paldier

The following is a snippet from the log. This snippet repeats exactly every 15 mins.

snippet
Sep 16 13:00:55 acsd: selected channel spec: 0x180b (9l)
Sep 16 13:00:55 acsd: Adjusted channel spec: 0x180b (9l)
Sep 16 13:00:55 acsd: selected channel spec: 0x180b (9l)
Sep 16 13:00:55 acsd: acs_set_chspec: 0x180b (9l) for reason APCS_CSTIMER
Sep 16 13:01:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:01:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:02:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:02:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:03:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:03:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:04:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:04:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:05:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:05:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:06:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:06:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:07:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:07:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:08:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:08:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:09:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:09:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:10:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:10:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:11:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:11:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:12:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:12:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:13:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:13:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:14:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:14:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:15:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:15:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:15:59 acsd: selected channel spec: 0x180b (9l)
Sep 16 13:15:59 acsd: Adjusted channel spec: 0x180b (9l)
Sep 16 13:15:59 acsd: selected channel spec: 0x180b (9l)
Sep 16 13:15:59 acsd: acs_set_chspec: 0x180b (9l) for reason APCS_CSTIMER
Sep 16 13:16:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:16:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:17:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:17:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:18:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:18:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:19:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:19:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:20:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:20:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:21:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:21:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:22:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:22:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:23:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:23:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:24:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:24:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:25:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:25:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:26:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:26:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:27:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:27:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:28:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:28:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:29:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:29:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:30:16 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:30:46 rc_service: watchdog 250:notify_rc start_dnsmasq
Sep 16 13:31:03 acsd: selected channel spec: 0x180b (9l)

I did not find the "restart watchdog" message in the logs.

less syslog.log | grep "restart" |wc -l
0

ratcashdev avatar Sep 17 '21 05:09 ratcashdev

I have realized that start_dnsmasq is not working:

admin@RT-AC68U-B6E8:/tmp/home/root# service start_dnsmasq

Done.
admin@RT-AC68U-B6E8:/tmp/home/root# ps |grep dns
 4431 admin     1440 S    grep dns

ratcashdev avatar Oct 31 '21 09:10 ratcashdev

I just realized that the specific box is RT-AC68U, HW Revision: E1

# nvram get HW_ver
1.95
# nvram get boardrev
0x1103
# nvram get bl_version
1.3.0.7

ratcashdev avatar Mar 07 '22 13:03 ratcashdev