I have noticed that the status of the pi-hole is set to "unknown". Via web interface I performed a restart. This did not changed the status. I also restarted the Raspberry Pi on which Pi-hole is installed. Even after that the status remains on "unknown".
Pi-hole works without problems, I can make and save changes in the web interface, I can see the logs, update the ad lists, etc.
What can I do so that the status is displayed correctly?
I noticed that in the menu on the left side there is the "Button" enable. Click on it once and the status changes to "active".
But as soon as I click somewhere else in the Web GUI or something else is displayed and therefore a refresh is done, the status becomes "unknown" again.
I can also disable pi-hole for a certain time range.
The status changes to "offline" and after the time is over it changes back to "active". But as soon as there is a refresh of the GUI again, the status is no longer active.
@yubiuser
I delete the browser cache regularly. E.g. also every time the browser (Firefox) is closed.
But I can still do this explicitly and try again.
@jfb
I will create the debug log tonight (I hope I'll get to it) and post the token.
It seems you've setup a custom block page (which may not directly contribute to your issue).
Also, it'd seem any UI interaction calling pihole would fail:
*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 200 OK
Content-type: text/html; charset=UTF-8
Expires: Tue, 15 Sep 2020 15:27:24 GMT
Cache-Control: max-age=0
Date: Tue, 15 Sep 2020 15:27:24 GMT
Server: lighttpd/1.4.53
*** [ DIAGNOSING ]: contents of /var/log/lighttpd
-rw-r--r-- 1 www-data www-data 8422 Sep 15 17:27 /var/log/lighttpd/error.log
2020-09-14 20:10:29: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: Executing sudo pihole status web failed. in /var/www/html/admin/scripts/pi-hole/php/func.php on line 79
2020-09-14 20:10:30: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: Executing sudo pihole -a -i local -web failed. in /var/www/html/admin/scripts/pi-hole/php/func.php on line 79
What does runing such a command directly on your Pi-hole machine return?
Your status check may have failed due to permissions, or due to sudo missing from your installation.
Your command output does not show any anomalies in that regard.
As always when inexplicable things happen on a Raspberry Pi, it may be a good idea to check your RPi's system logs for any recent occurences of voltage issues:
zgrep -ni “voltage” /var/log/syslog*
Use grep if your system does not have zgrep.
If that produces any hits, you should consider a different PSU and/or better power cables for your RPi.