On one of my Pi-hole's, the Client Activity panel is missing from the dashboard. If I refresh the page it comes back. Using Edge. My other one never exhibits this. They are clones of each other, with the only difference being the problematic one uses the dark mode theme.
Pi-hole web interface should always show the client activity panel. Since a few updates ago, I often see one of my Pi-hole instances not showing this panel. Both instances are clones of each other, except the problematic one is using the dark mode interface. I leave the Pi-hole dashboard up all the time in my browser.
Edge on Win10, both Pi-holes are on a Raspberry Pi 4b 8GB
Actual Behaviour:
Pi-hole dashboard occasionally missing the Client Activity panel. Refreshing the page brings it back.
It appears you are running other software that may be interferering with the functions of Pi-hole:
-rw-r--r-- 1 www-data www-data 453K Mar 17 11:59 /var/log/lighttpd/error-pihole.log
-----head of error-pihole.log------
2023-03-12 00:00:28: server.c.1787) logfiles cycled UID = 0 PID = 32302
2023-03-12 00:33:25: connections.c.750) invalid request-line -> sending Status 400
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 5, database is locked in /home/pi/pialert/front/php/server/parameters.php on line 46
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Call to a member function fetchArray() on bool in /home/pi/pialert/front/php/server/parameters.php:47
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:Stack trace:
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:#0 /home/pi/pialert/front/php/server/parameters.php(28): getParameter()
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:#1 {main}
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr: thrown in /home/pi/pialert/front/php/server/parameters.php on line 47
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 5, database is locked in /home/pi/pialert/front/php/server/devices.php on line 183
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Fatal error: Uncaught Error: Call to a member function fetchArray() on bool in /home/pi/pialert/front/php/server/devices.php:184
...
2023-03-12 01:15:41: mod_fastcgi.c.487) FastCGI-stderr:PHP Warning: SQLite3::query(): Unable to prepare statement: 5, database is locked in /home/pi/pialert/front/php/server/parameters.php on line 46
I would start troubleshooting by completely disabling Pi-Alert and restarting FTL. If the problem clears, you know where the problem lies. If not, we continue troubleshooting.
I disabled the other app but am still seeing the missing client activity panel sporadically. I'm pretty sure that error message is caused by my app and the DB it refers to is my pialert.db. Those FastCGI errors are from any PHP app running under the pi 's webserver, as I understand it.
Actually both Pi-hole and Pialert app use the same webserver (lighttpd). Pi-hole creates the /var/log/lighttpd/error-pihole.log and Pialert uses whatever error log is configured.
So, in this specific case, both applications will show error messages on the same file, but it's possible for other applications to use different files to store error logs.
I'm not sure how you customized your Pialert fork, but you can try to set a different error log.
I guess you can try (this is UNTESTED and I never used Pialert) to change pialert_front.conf and add a new error log file: