Lost connection to API

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

Expected Behaviour:

Get data , logs KPIs

Actual Behaviour:

Lost Connection to API. I have tried to resintall, restart FTL service and systemctl settings as seen in other topics but no luck. Any chance some one could look at my token if I am missing something obvious

Debug Token:

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

Doesn't look like FTL is even running?


*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
[80] is in use by lighttpd
[80] is in use by lighttpd

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✗] Failed to resolve crackspider.us via localhost (127.0.0.1)
[✗] Failed to resolve crackspider.us via Pi-hole (192.168.2.253)
[✓] doubleclick.com is 172.217.13.174 via a remote, public DNS server (8.8.8.8)

That is correct FTL showing as not running. Unable to manually start it even after a reboot.

After such a failed restart, what's the output of:

sudo systemctl status --full --no-pager pihole-FTL.service

Here is the output

● pihole-FTL.service - LSB: pihole-FTL daemon
     Loaded: loaded (/etc/init.d/pihole-FTL; generated)
     Active: active (exited) since Sun 2020-11-01 03:31:04 EST; 5h 27min ago
       Docs: man:systemd-sysv-generator(8)
    Process: 3822 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Nov 01 03:31:04 ubuntu systemd[1]: Stopped LSB: pihole-FTL daemon.
Nov 01 03:31:04 ubuntu systemd[1]: Starting LSB: pihole-FTL daemon...
Nov 01 03:31:04 ubuntu pihole-FTL[3822]: Not running
Nov 01 03:31:04 ubuntu su[3841]: (to pihole) root on none
Nov 01 03:31:04 ubuntu su[3841]: pam_unix(su:session): session opened for user pihole by (uid=0)
Nov 01 03:31:04 ubuntu pihole-FTL[3850]: dnsmasq: cannot access /etc/dnsmasq.d/lxd: No such file or directory
Nov 01 03:31:04 ubuntu dnsmasq[3850]: cannot access /etc/dnsmasq.d/lxd: No such file or directory
Nov 01 03:31:04 ubuntu dnsmasq[3850]: FAILED to start up
Nov 01 03:31:04 ubuntu su[3841]: pam_unix(su:session): session closed for user pihole
Nov 01 03:31:04 ubuntu systemd[1]: Started LSB: pihole-FTL daemon.
kevin@ubuntu:~$

That's your issue.

What's the output of:

grep -nRv '^#\|^$' /etc/dnsmasq.*

here is that output

kevin@ubuntu:~$ grep -nRv '^#\|^$' /etc/dnsmasq.*
/etc/dnsmasq.conf:1:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.conf.old:1:conf-dir=/etc/dnsmasq.d
/etc/dnsmasq.d/01-pihole.conf:21:addn-hosts=/etc/pihole/local.list
/etc/dnsmasq.d/01-pihole.conf:22:addn-hosts=/etc/pihole/custom.list
/etc/dnsmasq.d/01-pihole.conf:25:localise-queries
/etc/dnsmasq.d/01-pihole.conf:28:no-resolv
/etc/dnsmasq.d/01-pihole.conf:32:cache-size=10000
/etc/dnsmasq.d/01-pihole.conf:34:log-queries
/etc/dnsmasq.d/01-pihole.conf:35:log-facility=/var/log/pihole.log
/etc/dnsmasq.d/01-pihole.conf:37:local-ttl=2
/etc/dnsmasq.d/01-pihole.conf:39:log-async
/etc/dnsmasq.d/01-pihole.conf:40:server=1.1.1.1
/etc/dnsmasq.d/01-pihole.conf:41:server=1.0.0.1
/etc/dnsmasq.d/01-pihole.conf:42:domain-needed
/etc/dnsmasq.d/01-pihole.conf:43:bogus-priv
/etc/dnsmasq.d/01-pihole.conf:44:dnssec
/etc/dnsmasq.d/01-pihole.conf:45:trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
/etc/dnsmasq.d/01-pihole.conf:47:local-service
/etc/dnsmasq.d/01-pihole.conf:48:server=/use-application-dns.net/
grep: /etc/dnsmasq.d/lxd: No such file or directory
kevin@ubuntu:~$

Not one of Pi-hole's files, probably empty.
The following command would confirm this.

ls -lah /etc/dnsmasq.d/lxd

If you don't run lxd containers, you may delete that file and then run

pihole restartdns
1 Like

Thanks so much! once file deleted and service restart I am back online!

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