Lighttpd problem Buster

Expected Behaviour:

Should be able to access web interface... also should be able to start/restart lighttpd service. Have already searched and read faq's and tried several possible solutions. help?!

Actual Behaviour:

Can't access web interface, have traced problem back to lighttpd service (I think). However, I can't restart it, or reinstall it, or start or stop it. pihole -r doesn't help, have also fully uninstalled and reinstalled pihole. attempting to access the web interface via 192.168.0.10/admin results in:
"
This site can’t be reached
192.168.0.10 refused to connect.
ERR_CONNECTION_REFUSED
"

Debug Token:

0xx2bn3cv3

What are the outputs of the following

sudo service lighttpd status

journalctl -u lighttpd

sudo netstat -nltup | grep 'Proto\|:53 \|:5053 \|:5353 \|:8953 \|:67 \|:80 \|:471'

One note on your debug log - your gravity list is empty and nothing is being blocked.

pihole -g -f will rebuild gravity

https://github.com/pi-hole/pi-hole/pull/2808

If they use the uninstaller it will break lighttpd. The fix is above.

See the link posted by @DanSchaper above.

I have looked at it and I don't see how it applies. My problem started before I uninstalled/reinstalled, and is not a 403 error as far as i can tell. I will also fully admit to not seeing any instructions on how to fix the problem in that bug thread, but I'm not super familiar with git push/pull request formatting - but it seems that bug fix was merged back in june/july, and I just started this project a few days ago, so it shouldn't apply. right?

I went ahead and tried this fix: "Try sudo apt purge lighttpd and then pihole -r to make sure all configuration files are in the right place." Posted by Dan in the other thread referenced by him in the github thread.

After trying 'sudo apt purge lighttpd' and then 'pihole -r', my new debug token looks like this:
https://tricorder.pi-hole.net/e8vut85orx

I am now able to access the web console via http://IP_ADD/admin, so apparently that worked and my previous post about 'that doesn't apply' was wrong. I'm simply posting this reply to ask.... what was that? Can someone explain why that worked and what was wrong etc? I am technically minded and extremely saavy at windows, but this is my first linux foray and would really like some technical explanations so I know what is going on - if it's not too much trouble and someone has time.

1 Like

It is not clear what the original issue was, as the journalctl -u lighttpd output you posted was cut off. The referenced PR changes the uninstall to only remove the lighttpd configs Pi-hole added instead of removing all of the lighttpd config directory. Since your problems happened before running the uninstaller, it may be unrelated.

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