A couple of weeks ago I did an in-place upgrade of my pihole v5 install. this was a system that has been running very stably for a very long time. Since moving to v6, it has stopped working on a regularly basis. It simply stops serving DNS requests returning connection errors and only a restart of the FTL service or the host will bring it back.
When looking into the logs. I see that the pihole5 scraper fails after too many retries, indicating that the pihole service is not responding. Subsequently,. I see a lot of SQLite3 errors:
Mar 15 23:22:09 proxydns-01 [853]: SQLite3: cannot open file at line 44994 of [873d4e274b] (14)
Mar 15 23:22:09 proxydns-01 [853]: Writing to FTL's log file failed!
Mar 15 23:22:09 proxydns-01 [853]: SQLite3: os_unix.c:44994: (9) open(/etc/pihole/pihole-FTL.db-wal) - (14)
Mar 15 23:22:09 proxydns-01 [853]: Writing to FTL's log file failed!
Mar 15 23:22:09 proxydns-01 [853]: SQLite3: unable to open database file in "DELETE FROM network_addresses WHERE lastSeen < 1734214929;" (14)
Mar 15 23:22:09 proxydns-01 [853]: Writing to FTL's log file failed!
The Pihole log shows a lot of network and REFUSED error:
Mar 16 06:36:16 dnsmasq[853]: query[A] grocy.dollerup.live from 192.168.0.11
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[A] links.dollerup.me from 192.168.0.11
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[AAAA] links.dollerup.me from 192.168.0.11
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[A] connectivitycheck.gstatic.com from 192.168.0.124
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[A] connectivitycheck.gstatic.com from 192.168.0.124
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[A] connectivitycheck.gstatic.com.dollerup.local from 192.168.0.124
Mar 16 06:36:16 dnsmasq[853]: config connectivitycheck.gstatic.com.dollerup.local is NXDOMAIN
Mar 16 06:36:16 dnsmasq[853]: query[A] connectivitycheck.gstatic.com from 192.168.0.124
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Mar 16 06:36:16 dnsmasq[853]: query[A] connectivitycheck.gstatic.com from 192.168.0.124
Mar 16 06:36:16 dnsmasq[853]: config error is REFUSED (EDE: network error)
Finally the FTL-log shows network unreachable errors:
2025-03-16 13:20:08.717 CET [264060M] ERROR: Error while trying to close database: database is locked
2025-03-16 13:20:20.447 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:20:20.449 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:20:44.856 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:20:44.858 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:21:07.665 CET [264060M] WARNING: Connection error (2606:4700:4700::1111#53): failed to send UDP request (Network unreachable)
2025-03-16 13:21:08.308 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:21:08.309 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:21:32.576 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:21:32.578 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:21:53.065 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:21:53.067 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:22:07.626 CET [264060M] WARNING: Connection error (2606:4700:4700::1111#53): failed to send UDP request (Network unreachable)
2025-03-16 13:22:18.487 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:22:18.489 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
2025-03-16 13:22:42.561 CET [264060M] WARNING: WARNING in dnsmasq core: influxdb.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.94
2025-03-16 13:22:42.562 CET [264060M] WARNING: WARNING in dnsmasq core: ca-srvr-01.dollerup.local is a CNAME, not giving it to the DHCP lease of 192.168.0.74
There are a whole bunch of CNAME error and as far as I can tell the upgrade has messed up -DNS/CNAME names. I'm looking into.
Pihole is running a RPi5 with an SSD (using an RPI HAT with an RPI SSD).
Help would be greatly appriciated.
Here the tricorder token: https://tricorder.pi-hole.net/U6yAceOa/