I run dnsmasq on my DSL-AC68U (running the Gnuton variant) with a large blacklist file that is on a USB memory stick. A recent (fairly short, half a minute or so) power failure seems to have provoked an odd problem with dnsmasq failing to see when the USB mounts after power up, but when I did 'service restart_dnsmasq' it restarted perfectly.
So, in syslog.log, after the power failure at around 21:24 last night I see:-
This continues all through the night until I did the 'service restart_dnsmasq' at 07:21 this morning:-
and after that no more errors from dnsmasq and it ran perfectly.
So why couldn't dnsmasq see the file at /home/chris/dnsmasq.d (on the USB stick) all through the night even though it was trying to restart every 30 seconds but the moment I did the 'service restart_dnsmasq' it saw the file and started up OK?
While I'm about it is there an 'elegant' way of getting dnsmasq to wait for something (like the USB mount) before starting rather than just failing until the file appears?
So, in syslog.log, after the power failure at around 21:24 last night I see:-
Code:
...
...
May 5 05:05:42 wsdd2[1631]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
May 5 05:05:43 wsdd2[1631]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Mar 24 21:24:23 dnsmasq[1734]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 24 21:24:23 dnsmasq[1734]: FAILED to start up
Mar 24 21:24:25 wsdd2[1631]: Terminated received.
Mar 24 21:24:26 kernel: gro disabled
Mar 24 21:24:28 dnsmasq[1750]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 24 21:24:28 dnsmasq[1750]: FAILED to start up
Mar 24 21:24:28 kernel: gro enabled with interval 2
Mar 24 21:24:32 crond[1150]: time disparity of 3096979 minutes detected
Mar 24 21:24:57 dnsmasq[1847]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 24 21:24:57 dnsmasq[1847]: FAILED to start up
Mar 24 21:25:27 dnsmasq[1908]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
...
...
This continues all through the night until I did the 'service restart_dnsmasq' at 07:21 this morning:-
Code:
...
...
Mar 25 07:20:37 dnsmasq[14200]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 25 07:20:37 dnsmasq[14200]: FAILED to start up
Mar 25 07:21:07 dnsmasq[14264]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 25 07:21:07 dnsmasq[14264]: FAILED to start up
Mar 25 07:21:37 dnsmasq[14324]: cannot access directory /home/chris/dnsmasq.d: No such file or directory
Mar 25 07:21:37 dnsmasq[14324]: FAILED to start up
...
...
So why couldn't dnsmasq see the file at /home/chris/dnsmasq.d (on the USB stick) all through the night even though it was trying to restart every 30 seconds but the moment I did the 'service restart_dnsmasq' it saw the file and started up OK?
While I'm about it is there an 'elegant' way of getting dnsmasq to wait for something (like the USB mount) before starting rather than just failing until the file appears?