FTL processes DNS queries correctly (confirmed via dig and debug.queries logging) but never writes them to the database. The dashboard shows 0 queries, the query log is empty, and SELECT COUNT(*) FROM queries in pihole-FTL.db always returns 0. Queries only appear in the database after restarting FTL (service pihole-FTL restart), suggesting they accumulate in memory but the periodic flush (controlled by database.DBinterval) never fires.
This issue persists across two completely separate installations β I destroyed the first container and recreated it from scratch using the same community script, and the behavior is identical.
Details about my system:
Pi-hole v6.6 (fresh install via community-scripts/ProxmoxVE)
Upstream DNS: router at 10.0.0.1 (encrypted DNS to Cloudflare/Google)
Interface setting: Permit all origins
File permissions on /etc/pihole/ are correct (owned by pihole user)
queryLogging = true, privacylevel = 0
What I have changed since installing Pi-hole:
Set database.forceDisk = true β no effect
Set database.useWAL = false β no effect
Set database.DBinterval = 30 β no effect
Deleted pihole-FTL.db and let FTL recreate it β no effect
Enabled debug.queries = true β confirmed FTL sees and processes queries (forwarding, caching, replying all logged in FTL.log), but nothing is written to the database until FTL is restarted
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
grep --text for database/sqlite/error/disk/permission in FTL.log:
INFO: Database version is 21
INFO: Database successfully initialized
WARNING: Using on-disk history database. This will reduce performance.
INFO: Imported 10125 queries from the on-disk database (it has 13548 rows)
WARNING: Insufficient permissions to set process priority to -10 (CAP_SYS_NICE required)
ERROR: SQLite3: recovered 5 pages from /etc/pihole/pihole-FTL.db-journal (539)
No disk/space/readonly errors. Database is initializing fine and actively importing queries. The SQLite journal recoveries are from me restarting the container a lot while troubleshooting, and the CAP_SYS_NICE warning is expected in an unprivileged LXC.
The issue is specifically that cross-subnet DNS queries get resolved by FTL but never appear in the query log/dashboard. Same-subnet queries log normally. I've filed this as pi-hole/FTL #2869 on GitHub.
Will still resize the disk for headroom, but the root cause seems to be an FTL bug rather than a resource constraint. Appreciate the help!