drwxr-xr-x 3 root root 100 Feb 10 06:42 ./
drwxrwxrwt 18 root root 500 Feb 19 20:00 ../
drwxr-xr-x 2 root root 80 Feb 19 23:55 ddns/
-rw-r--r-- 1 root root 0 Feb 10 06:42 lastlog
-rw-r--r-- 1 root root 0 Feb 10 06:42 wtmp
My dnsmasq dies occasionally and does not recover after more than 5 minutes and there is nothing in /var/log.
I do have 1 file added under Additional hosts files to block about 8 domains or so, and DDNS + AdBlock installed, but I was not fiddling with them when dnsmasq died.
I have to manually login through SSH and restart it. Any idea how I can deal with it?
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Normally, the config file path isn't explicitly set, allowing the system to create the path per its underlying logic. I'm not positive that it's the culprit, but it's not a default item in the config, so removing it makes sense as a troubleshooting method.
I don't see any issues with the network config file...
What exactly is the symptom? Does it affect all networks or just one/some?
This does sound like a potential dnsmasq issue -- specifically DNS. But did you specifically test DNS when the network failed (i.e. nslookup openwrt.org 192.168.214.1)? Did the logs show anything about dnsmasq stopping or failing to restart?
I looked in the wrong place /var/log which was empty. When I looked into LuCI earlier, the logs are already gone. No, I did not run nslookup openwrt.org 192.168.214.1, but I assume it failed since I was able to nslookup 8.8.8.8, which led me to execute service dnsmasq restart
If it manifests again, check the local DNS to see if it has failed, and use logread to check the logs themselves (you can use logread -e dnsmasq to filter to only dnsmasq entires).