OK, I first tried to nuke the database (nuclear option first, right?), and ran the debugger again and this is what I got:
https://tricorder.pi-hole.net/mf3efthjps
Looks like there were still database issues, and WLAN issues, and IPv6 issues (even though I had turned them back on in the modem/router).
Sooooo, I messed around with a bunch of IPv6 settings in my router and modem (because I'm doing a passthrough / cascaded router setup, I'm actually not sure how to set IPv6 since the passthrough IPv4 information is different from IPv6), and managed to completely kill my internet and then somehow resurrect it, and I ran an IPv6 test and it seems to work.
As for the WLAN issues, I just disabled it on my Pi, since I don't use it.
I still have the X-Header issue, but that seems to be a non-issue if everything else works (which I believe it does), and I think after doing the SQLITE repair, and then nuking it again, it seems to have resolved nearly all the database issues (except for one "file renamed while open" problem with gravity.db). FTL is up-to-date, so at least the initial problem I had has been resolved. THANK YOU!
But since the proverbial can of worms has been open, and since no good deed goes unpunished, now I have more questions for you. What I'm left with now are the IPv6 issues. I tried editing setupVars.conf and adding in the IPv6 addresses I can find in my router now that it's turned back on and auto-configuring from the modem, but it didn't seem to work.
This is what I get from running pihole -d:
Pv6 address(es) bound to the eth0 interface:
2600:1700:c0b0:5c60::48 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
2600:1700:c0b0:5c60:4465:b195:5401:f97a does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
2600:1700:c0b0:5c6f:ecce:75cf:289c:73c6 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
fe80::654d:a142:4b1b:5adf does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
Here's the most recent debug log. Any ideas about the IPv6 issue, or any other problems I've got? I'm happy to do a full restart/complete reinstall of Pi-hole; the whitelists aren't really necessary, and I'm basically just using https://dbl.oisd.nl/ as my adlist, so easy to recreate from scratch.
https://tricorder.pi-hole.net/g3w9752zbu