Expected Behaviour:
I believed I had successfully installed pi-hole into a docker on my 8GB Raspberry pi 4 running 64 bit Debian 11 (bullseye). It is successfully providing ad-free DNS to my home network with the aid of unbound, also in a docker. Once I had everything up and working I stopped the pihole docker and deleted the pihole-FTL.db and also used the Settings -> Flush Logs and Flush Network Table buttons. I am not 100% sure but I believe that the issues detailed below started after that.
Two scenarios are having issues:
- Accessing the Tools -> Network page should provide a list of devices.
- Attempting a query with any of the Long term Data pages should return the appropriate query results.
Looking for advice on how to get these web gui actions working again.
Actual Behaviour:
- Accessing Tools -> Network page
An error window pops up with the message:
An unknown error occurred while loading the data.
A "tail -f /var/log/lighttpd/error-pihole.log"
while accessing the page shows:
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: network in /var/www/html/admin/api_db.php on line 32
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Call to a member function finalize() on bool in /var/www/html/admin/api_db.php:55
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr:#0 {main}
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr: thrown in /var/www/html/admin/api_db.php on line 55
2022-09-09 13:21:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: message in /var/www/html/admin/api_db.php on line 380
2022-09-09 13:21:47: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: message in /var/www/html/admin/api_db.php on line 380
- Attempting a query with any of the Long term Data pages:
An error window pops up with the message:
An unknown error occurred while loading the data. Check the server's log files (/var/log/lighttpd/error-pihole.log) for details. You may need to increase PHP memory limit. You can find more info in pi-hole's FAQ.....
A "tail -f /var/log/lighttpd/error-pihole.log"
while accessing the page shows:
2022-09-09 13:31:47: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: message in /var/www/html/admin/api_db.php on line 380
2022-09-09 13:31:50: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: query_storage in /var/www/html/admin/api_db.php on line 93
2022-09-09 13:31:50: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Call to a member function bindValue() on bool in /var/www/html/admin/api_db.php:94
2022-09-09 13:31:50: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2022-09-09 13:31:50: mod_fastcgi.c.487) FastCGI-stderr:#0 {main}
2022-09-09 13:31:50: mod_fastcgi.c.487) FastCGI-stderr: thrown in /var/www/html/admin/api_db.php on line 94
2022-09-09 13:31:55: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 1, no such table: message in /var/www/html/admin/api_db.php on line 380
As mentioned in the FAQ, I created /var/www/html/.user.ini
and separately tried the following memory limits with no observed change (still fails):
memory_limit = 256M
memory_limit = 512M