A recent update from v5 to v5.2 and pihole is failing to start DNS service.
running pihole status
shows
[✗] DNS service is NOT listening
I've tried multiple pihole -r
to repair, but the same results on DNS service is not listening
Expected Behaviour:
Pihole start up after update or when executing sudo systemctl restart pihole-FTL
Actual Behaviour:
Restarting pihole-FTL service prompt permission error to write a file in /var/run/dnsmasq.leases
. When I manually create the dnsmasq.lease file in /var/run
and edit the permission, the startup script works. But everything resets after reboot and it'll fail to boot-up again.
beaglebone:/etc/dnsmasq.d$ sudo systemctl status pihole-FTL
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Sat 2021-02-13 06:33:45 UTC; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 18053 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Feb 13 06:33:43 beaglebone systemd[1]: Starting LSB: pihole-FTL daemon...
Feb 13 06:33:43 beaglebone pihole-FTL[18053]: Not running
Feb 13 06:33:44 beaglebone su[18071]: (to pihole) root on none
Feb 13 06:33:44 beaglebone su[18071]: pam_unix(su:session): session opened for user pihole by (uid=0)
Feb 13 06:33:45 beaglebone pihole-FTL[18053]: dnsmasq: cannot open or create lease file /var/run/dnsmasq.leases: Permission denied
Feb 13 06:33:45 beaglebone systemd[1]: Started LSB: pihole-FTL daemon.
any ideas on how to fix this?
Debug Token:
debug token is: https://tricorder.pi-hole.net/6zw65p61h9