Web admin doesn't work after recent Pi-hole update

Expected Behaviour:

I updated using pihole -up and that completed successfully. I can no longer log into the web admin using my browser.

Actual Behaviour:

Web admin login page doesn't load anymore.

Debug Token:

https://tricorder.pi-hole.net/CUYD7bzM/

Thanks in advance!

Your debug log shows the web server (lighttpd) is not running:

*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is failed

You can try to restart the web server running:

sudo systemctl restart lighttpd.sevice

No luck. The daemon still shows as failed in the debug report.

https://tricorder.pi-hole.net/rXEEqzO8/

*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is failed
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Dashboard headers
[✗] Web interface X-Header: X-Header does not match or could not be retrieved.

Your first debug log wasn't showing lighttpd errors. The second one is now showing this error, multiple times:

2024-09-08 20:22:02: (mod_accesslog.c.565) opening log '/var/log/lighttpd/access.log' failed: Permission denied
2024-09-08 20:22:02: (server.c.1555) Configuration of plugins failed. Going down.

lighttpd is not starting due to permission errors in /var/log/lighttpd.

What is the output of ls -la /var/log/lighttpd ?

I got it to work. I followed this advice: Pi-hole no web interface access and lighttpd.service failed to start - #34 by dieterg

I had no clue what these two commands did to fix it, so I went to my good friend ChatGPT to ask.

Can you explain what the following command does on a Pi Hole?
sudo chown -R www-data:www-data lighttpd/

Answer: Summary:
The command changes the ownership of the lighttpd/ directory and all of its contents to the www-data user and group. This is necessary to ensure that the Lighttpd web server has the proper permissions to access, modify, and serve files from this directory, enabling the web interface to function correctly.

Now, if anyone can explain why that ownership was changed on a pihole -up command to begin with, I'll be more prepared for next time.

Thanks for your help @rdwebdesign!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.