Pi-Hole 'Lost connection to API' on Pi Zero after power cycle

Please follow the below template, it will help us to help you!

Expected Behaviour:

Web Interface shows information about performance. FTL online.

Actual Behaviour:

Web Interface shows 'Lost Connection To API. FTL offline.

Debug Token:

https://tricorder.pi-hole.net/uuxkcvvaea

Hello,

After playing around with Pi-Hole on a Pi Zero to see how it does, it lost connection after a power cycle so that I could move the device to a more permanent location.

What is the output of the following command from the Pi terminal:

sudo service pihole-FTL status

● pihole-FTL.service - LSB: pihole-FTL daemon
   Loaded: loaded (/etc/init.d/pihole-FTL; generated)
   Active: active (exited) since Sat 2019-11-02 02:48:20 GMT; 9min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1238 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCC

Nov 02 02:48:18 raspberrypi systemd[1]: Starting LSB: pihole-FTL daemon...
Nov 02 02:48:18 raspberrypi pihole-FTL[1238]: Not running
Nov 02 02:48:19 raspberrypi su[1267]: (to pihole) root on none
Nov 02 02:48:19 raspberrypi su[1267]: pam_unix(su:session): session opened for use
Nov 02 02:48:20 raspberrypi pihole-FTL[1238]: dnsmasq: failed to create listening
Nov 02 02:48:20 raspberrypi systemd[1]: Started LSB: pihole-FTL daemon.

Something is interfering with pihole-FTL launching on port 53. Let's see what's running on ports used by Pi-Hole and associated DNS servers. Output of the following command from the Pi terminal?

sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:8953 \|:67 \|:80 \|:471'

pi@raspberrypi:~ $ sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:8953 \|: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      387/lighttpd
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      477/unbound
tcp6       0      0 :::80                   :::*                    LISTEN      387/lighttpd
tcp6       0      0 ::1:53                  :::*                    LISTEN      477/unbound
udp        0      0 127.0.0.1:53            0.0.0.0:*                           477/unbound
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           249/avahi-daemon: r
udp6       0      0 ::1:53                  :::*                                477/unbound
udp6       0      0 :::5353                 :::*                                249/avahi-daemon: r

You have unbound listening on port 53, and this is interfering with pihole-FTL. To work alongside Pi-Hole, unbound should be on a separate port. The Pi-Hole guide for unbound puts it on port 5353.

https://docs.pi-hole.net/guides/unbound/

Something is up with the link currently. It isn't loading correctly for me

Like I said, I was just messing around. How would I uninstall Unbound?

sudo apt remove unbound

Apologies for the bad link - pasted it twice. Corrected.

1 Like

Thank you for the help!
I had a feeling that it was a result of me messing about.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.