After moving the file it does not seem to be re-created:
sudo ls /etc/pihole/pihole-FTL.db
ls: cannot access '/etc/pihole/pihole-FTL.db': No such file or directory
The integrity check results:
sudo sqlite3 pihole-FTL.db "PRAGMA integrity_check"
*** in database main ***
On tree page 177795 cell 0: invalid page number 177819
On tree page 177795 cell 222: invalid page number 177818
On tree page 177795 cell 221: invalid page number 177816
On tree page 177795 cell 220: invalid page number 177815
On tree page 177654 cell 0: invalid page number 177817
Error: database disk image is malformed
I restarted the service and can see the database file again. There was a power issue four weeks ago. Undervoltage in general was never a problem and I actually recently moved the OS to a flash drive. I'll let it rest for the time being and will keep an eye out for anomalies.
Before I forget about those IPv6 issues I mentioned:
Your debug log indicates that your Pi-hole's IPv6 has changed:
*** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
[✓] 332645.r.axf8.net is via localhost (::1)
[✗] Failed to resolve 332645.r.axf8.net via Pi-hole (fd00::1b0)
[✓] doubleclick.com is 2a00:1450:4016:801::200e via a remote, public DNS server (2001:4860:4860::8888)
Have a look at your current IPv6 addresses by running:
ip -6 address show
Feel free to post the output here if your unsure what would the best pick.
Once you decide on a current IPv6 address, make Pi-hoe aware of it by running:
Seems that fd00::1ba/128 has replaced your previous ULA-address fd00::1b0.
I suspect this to be either manually configured or to have been assigned via DHCPv6.
The rest have been self-assigned by your RPI, so all in all, quite normal.
I could change it to use the hardware address if that helps. Or, just as before, I reconfigure pihole to point to fd00::1ba/128 and give up on searching the cause.
I also run unbind on port 5335 as upstream resolver but that shouldn't matter. Here, the only (known) issue is that a custom upstream DNS cannot be entered in IPv6 notation with #.
If Pi-hole is handling DHCPv6, I see no reason why you shouldn't try fd00::1ba (though I am slightly disturbed by the /128 netmask).
Since your dhcpcd.conf works with the default stable private addresses (slaac private for RFC7217 address generation), that global scope ULA may also be a good choice. RFC7217 addresses won't change their interface identifier (the last 64 bits) unless the network changes (i.e., you pick another prefix (the first 64 bits) different from fd00::) or you install your OS afresh.
As for why it changed:
Perhaps you switched your network config at some time since installation, e.g. from wlan0 to eth0?
Anways, just using either fd00:: address should be fine.
Check this after some time, though. Inavailability of Pi-hole via IPv6 may not result in your clients complaining: Due to IPv6 emphasizing auto-configuration, they may just pick another IPv6 DNS server (if available) and sneak by Pi-hole via IPv6 then.
I was afraid I would lose my static DHCP leases. I made a backup and chose reconfigure. It seems to have worked and the static reservations seem to be untouched. Thank you!