Pi-hole DNS service not running after first install

Thanks for the response.

 sudo ss -tulpn | grep "Netid\|:53 "

gives


Netid State      Recv-Q Send-Q Local Address:Port               Peer Address:Port            

and

sudo ss -tulpn

gives

Netid State      Recv-Q Send-Q Local Address:Port               Peer Address:Port            
tcp   LISTEN     0      5                *:5900                         *:*                   users:(("vncserver-x11-c",pid=436,fd=10))
tcp   LISTEN     0      128              *:80                           *:*                   users:(("lighttpd",pid=487,fd=4))
tcp   LISTEN     0      128              *:22                           *:*                   users:(("sshd",pid=473,fd=3))
tcp   LISTEN     0      5               :::5900                        :::*                   users:(("vncserver-x11-c",pid=436,fd=9))
tcp   LISTEN     0      128             :::80                          :::*                   users:(("lighttpd",pid=487,fd=5))
tcp   LISTEN     0      128             :::22                          :::*                   users:(("sshd",pid=473,fd=4))

EDIT
I did some more testing as well, in the dashboard it says FTL is offline, however, I see the following:

systemctl status pihole-FTL

gives

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (exited) since Mon 2020-10-19 15:05:28 EDT; 1h 38min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 10587 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 10592 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/pihole-FTL.service

Oct 19 15:05:26 raspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
Oct 19 15:05:26 raspberrypi pihole-FTL[10592]: Not running
Oct 19 15:05:27 raspberrypi su[10610]: Successful su for pihole by root
Oct 19 15:05:27 raspberrypi su[10610]: + ??? root:pihole
Oct 19 15:05:27 raspberrypi su[10610]: pam_unix(su:session): session opened for user pihole by (uid=0)
Oct 19 15:05:28 raspberrypi pihole-FTL[10592]: dnsmasq: cannot open or create lease file /var/lib/misc/dnsmasq.leases: Permission denied
Oct 19 15:05:28 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

I am investigating the dnsmasq issue.

EDIT 2
Following this thread, I ran sudo chown pihole:pihole /var/lib/misc/dnsmasq.leases
after confirming that the dnsmasq.leases file existed.

I then rebooted FTL with systemctl restart pihole-FTL followed by systemctl status pihole-FTL which returned

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated; vendor preset: enabled)
   Active: active (exited) since Mon 2020-10-19 17:12:42 EDT; 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11380 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
  Process: 11385 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Oct 19 17:12:41 raspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
Oct 19 17:12:41 raspberrypi pihole-FTL[11385]: Not running
Oct 19 17:12:41 raspberrypi su[11403]: Successful su for pihole by root
Oct 19 17:12:41 raspberrypi su[11403]: + ??? root:pihole
Oct 19 17:12:41 raspberrypi su[11403]: pam_unix(su:session): session opened for user pihole b
Oct 19 17:12:42 raspberrypi pihole-FTL[11385]: FTL started!
Oct 19 17:12:42 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

and pihole status showed

  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled

This seems to have resolved my issue!

1 Like