Pihole admin page Shows FTL-Offline and Lost Connection to API when running on chroot with linuxdeploy

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

Expected Behaviour:

Pihole admin page works as usual.

Actual Behaviour:

Pihole Shows FTL-Offline and Lost Connection to API when running on chroot with linuxdeploy

Debug Token:

https://tricorder.pi-hole.net/5pglprrcas

This is a fresh install. I have tried to restart the pihole-FTL service and lighttpd service. systemctl does not work as I am running on chroot.

Running sudo service pihole-FTL status, just gives the one line output as compared to longer outputs in the various other posts:

root@localhost:/home/android# sudo service pihole-FTL status
[ ok ] pihole-FTL is running

Let's see if there is another process that is interfering with pihole-FTL. Please post the ouptuo of this command from the Pi terminal:

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

I don't see any other process interfering:

root@localhost:/home/android# 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 127.0.0.1:4711          0.0.0.0:*               LISTEN      26358/pihole-FTL
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      16705/lighttpd
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      26358/pihole-FTL
tcp6       0      0 ::1:4711                :::*                    LISTEN      26358/pihole-FTL
tcp6       0      0 :::80                   :::*                    LISTEN      16705/lighttpd
tcp6       0      0 :::53                   :::*                    LISTEN      26358/pihole-FTL
udp        0      0 0.0.0.0:53              0.0.0.0:*                           26358/pihole-FTL
udp6       0      0 :::53                   :::*                                26358/pihole-FTL

Blockquote

Your Pi-Hole has been operating in the past 24 hours. This is the previous history retrieved from the long term database. Have you changed anything recently? You say it's a fresh install but you have 86 block lists in use - when did these get added?

   [2019-09-28 16:36:28.621 26356] Imported 573 queries from the long-term database
   [2019-09-28 16:36:28.621 26356]  -> Total DNS queries: 573
   [2019-09-28 16:36:28.621 26356]  -> Cached DNS queries: 109
   [2019-09-28 16:36:28.621 26356]  -> Forwarded DNS queries: 249
   [2019-09-28 16:36:28.621 26356]  -> Exactly blocked DNS queries: 215
   [2019-09-28 16:36:28.621 26356]  -> Unknown DNS queries: 0
   [2019-09-28 16:36:28.622 26356]  -> Unique domains: 159
   [2019-09-28 16:36:28.622 26356]  -> Unique clients: 9
   [2019-09-28 16:36:28.622 26356]  -> Known forward destinations: 2

I had a working pihole till last night, but saw errors related to the setupvars.conf file. So I just tried to do another fresh install this morning. Then I added the blocklists by editing the adlists.list file. It has been up for around 2-3 hours now.

I also ran the below command:
sudo /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

this is the o/p I get:

root@localhost:/home/android# sudo /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
2019-09-28 17:07:41: (network.c.464) can't bind to port: 80 Address already in use

Couls this be an issue? Is there a way I change the port to something else.

What were the errors?

The process check didn't show something other than lighttpd running on port 80.

There were some errors like "/usr/loop1" file or path not found. So I just reinstalled linux and reinstalled pihole.

Even in my prev install FTL would show offline, but the admin page would still work correctly. But this time it's not working. pihole adblocking works just fine.

Fixed it by following the below thread:

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