Edit: After a power cycle PiHole FTL is not running and clients can't connect to the Internet through the PiHole.
Edit2: The RPi serves PiHole, Domoticz and Dashticz (the last one in a container I believe). No other functions on the device. PiHole is setup as DNS and DHCP server for my network.
Expected Behaviour:
FTL running. Clients getting an IP address from DHCP (configured in Pihole)
Actual Behaviour:
FTL is not running and clients can't get a valid address (all in 169 range)
Debug Token:
8rnjdpiu34
Tried a number of commands after reading a number of threads but can't find a solution. Help is really (really! ) appreciated!
pi@RPi3:~ $ sudo service dnsmasq status
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-12-27 13:01:11 CET; 31min ago
Process: 4571 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2)
Process: 4568 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
CPU: 71ms
Dec 27 13:01:11 RPi3 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Dec 27 13:01:11 RPi3 dnsmasq[4568]: dnsmasq: syntax check OK.
Dec 27 13:01:11 RPi3 dnsmasq[4571]: dnsmasq: failed to create listening socket for port 53: Address already in use
Dec 27 13:01:11 RPi3 systemd[1]: dnsmasq.service: Control process exited, code=exited status=2
Dec 27 13:01:11 RPi3 systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Dec 27 13:01:11 RPi3 systemd[1]: dnsmasq.service: Unit entered failed state.
Dec 27 13:01:11 RPi3 systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
pi@RPi3:~ $ sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
Active: active (exited) since Fri 2019-12-27 13:22:58 CET; 10min ago
Docs: man:systemd-sysv-generator(8)
Process: 5683 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 5689 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
CPU: 249ms
Dec 27 13:22:57 RPi3 systemd[1]: Starting LSB: pihole-FTL daemon...
Dec 27 13:22:57 RPi3 pihole-FTL[5689]: Not running
Dec 27 13:22:58 RPi3 su[5716]: Successful su for pihole by root
Dec 27 13:22:58 RPi3 su[5716]: + ??? root:pihole
Dec 27 13:22:58 RPi3 su[5716]: pam_unix(su:session): session opened for user pihole by (uid=0)
Dec 27 13:22:58 RPi3 pihole-FTL[5689]: dnsmasq: failed to create listening socket for port 53: Address already in use
Dec 27 13:22:58 RPi3 systemd[1]: Started LSB: pihole-FTL daemon.
pi@RPi3:~ $ sudo netstat -nltup | grep 'Proto\|:53 \|:67 \|:80 \|:471'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1890/lighttpd
tcp 0 0 169.254.14.66:53 0.0.0.0:* LISTEN 499/named
tcp 0 0 169.254.154.166:53 0.0.0.0:* LISTEN 499/named
tcp 0 0 172.17.0.1:53 0.0.0.0:* LISTEN 499/named
tcp 0 0 192.168.16.115:53 0.0.0.0:* LISTEN 499/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 499/named
tcp6 0 0 :::80 :::* LISTEN 1890/lighttpd
tcp6 0 0 :::53 :::* LISTEN 499/named
udp 0 0 169.254.14.66:53 0.0.0.0:* 499/named
udp 0 0 169.254.154.166:53 0.0.0.0:* 499/named
udp 0 0 172.17.0.1:53 0.0.0.0:* 499/named
udp 0 0 192.168.16.115:53 0.0.0.0:* 499/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 499/named
udp6 0 0 :::53 :::* 499/named
pi@RPi3:~ $ sudo service dnsmasq restart
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
pi@RPi3:~ $ sudo service pihole-FTL restart
pi@RPi3:~ $ [no output is given]
Have rebooted the device but that didn't help.
Also tried sudo pihole -r and ran both options (repair and reconfigure). Both did not solve my issue.
TIA
Greetz,
Sjonnie
EDIT3: Read rest of thread if you have a problem executing the proposed answer