ERR_CONNECTION_REFUSED

Actual Behaviour:

ERR_CONNECTION_REFUSED when trying to access the admin page. I did not gracefully power down my earlier Pi today when I was reconfiguring the wiring. I can still ssh and VNC into my Pi, use the the browser on it etc.. But I can't hit the admin page (http://192.168.1.2/admin/ in my case).

I notice this in debug output:
*** [ DIAGNOSING ]: Pi-hole processes
[✗] lighttpd daemon is failed
[✓] pihole-FTL daemon is active

Sounds like me powering down my Pi nuked lighttpd? What is the best way to recover?

To avoid future problems with power failures, my Pi with PoE hat is connected to PoE switch which is connected to a UPS.

Debug Token: https://tricorder.pi-hole.net/c8mp668m9n

You have this error repeatedly:

-rw-r--r-- 1 www-data www-data 4522 Jan  1 23:27 /var/log/lighttpd/error.log
   -----head of error.log------
   2021-01-01 19:42:39: (server.c.1464) server started (lighttpd/1.4.53) 
   2021-01-01 19:42:39: (mod_accesslog.c.660) opening log '/var/log/lighttpd/access.log' failed: Permission denied
   2021-01-01 19:42:39: (server.c.1472) Configuration of plugins failed. Going down. 
   2021-01-01 19:42:40: (server.c.1464) server started (lighttpd/1.4.53) 
   2021-01-01 19:42:40: (mod_accesslog.c.660) opening log '/var/log/lighttpd/access.log' failed: Permission denied
   2021-01-01 19:42:40: (server.c.1472) Configuration of plugins failed. Going down.

Interesting. I have not touched the permissions at all. How can I get permission restored to what it should be?

Running pihole -r and selecting the repair option may do the trick.

Tried that, no luck. May need to reformat and rebuild.

For comparison purposes, here are the permissions for this log on a Pi-hole installation running without this problem:

ls -lha /var/log/lighttpd/access.log
-rw-r--r-- 1 www-data www-data 15M Jan  2 17:02 /var/log/lighttpd/access.log

Also note that when SD cards being to fail, they can go into read-only mode and cause problems. If you do go down the fresh install route, consider a fresh SD card and also check your power supply for adequate current (a frequent problem of early SD card death is inadequate power).

Good points, thanks!

This happened again today, on a fresh install. I did this

sudo apt-get install gamin

per Lighttpd does not start - #11 by djcraysey

and now lighttpd is working again. Any insights on why?

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