I logged in to the Web UI and saw "Lost Connection to API". I restarted the pihole-FTL service and checked the Web UI again, to no avail. I then ran pihole -r to repair the subsystems. After running the repair script, I expected to see stats in the Web UI. pihole status shows that DNS is not running.
Actual Behaviour:
The Web UI continues to show "Lost Connection to API".
The output of this command should look something like this:
sudo service pihole-FTL status
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: **active (exited)** since Fri 2020-08-07 09:17:46 CDT; 3 days ago
Docs: man:systemd-sysv-generator(8)
Process: 11556 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Aug 07 09:17:45 Pi-3B-DEV systemd[1]: Starting LSB: pihole-FTL daemon...
Aug 07 09:17:46 Pi-3B-DEV pihole-FTL[11556]: Not running
Aug 07 09:17:46 Pi-3B-DEV su[11580]: **(to pihole) root on none**
Aug 07 09:17:46 Pi-3B-DEV su[11580]: pam_unix(su:session): session opened for user pihole by (uid=0)
Aug 07 09:17:46 Pi-3B-DEV pihole-FTL[11556]: FTL started!
Aug 07 09:17:46 Pi-3B-DEV su[11580]: pam_unix(su:session): session closed for user pihole
Aug 07 09:17:46 Pi-3B-DEV systemd[1]: Started LSB: pihole-FTL daemon.
I see a script in /etc/init.d that includes the following status function, which corresponds with what I'm seeing:
# Indicate the service status
status() {
if is_running; then
echo "[ ok ] pihole-FTL is running"
exit 0
else
echo "[ ] pihole-FTL is not running"
exit 1
fi
}