Pihole Admin Interface not working on Pi with Octoprint

Please follow the below template, it will help us to help you!

Expected Behaviour:

When attempting to enter the Admin page via the IP_address/admin or pi.hole/admin, the web interface is accesible

Actual Behaviour:

When attempting to enter the Admin page via the IP_address/admin or pi.hole/admin, the web interface isnt to be found

I tried everything that could be found on the internet. At first, the lighttp service couldnt start, so i somehow forced it to start, it stayed like that, but the web interface was still not accesible. The PI is blocking ads, but i want to access it and add more blocklists and Regex entries. After stressing over it again and again, i uninstalled it from the RasPI and now i wanted to give it another try, with your help, with a fresh install. The Lighttp server is NOT running and i cannot get it to start, like i did previously.

It seems that if i change the lighttp server from 80 to 8888 for example, the lighttp service will work, but the admin webpage STILL doesnt show up. i am at a loss completely.

i tried running pihole -d, and even that showed that the Web Interface is not accesbile.

Debug Token:

https://tricorder.pi-hole.net/6ra17zzunv

Octoprint appears to have a webserver running on port 80, and this is preventing lighttpd from binding to that port.

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

*** [ 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-Length: 2788
X-Robots-Tag: noindex, nofollow, noimageindex
Set-Cookie: session_P80=eyJfaWQiOnsiIGIiOiJNbUptTm1FMU5qVmxOekE0Tm1RNU5HVXpNalJsTlRsbU5qSTRNekEyTkRBPSJ9fQ.XiW9-g.wCLENugKHWh6wQZF4H--HuAy-SY; HttpOnly; Path=/
Last-Modified: Tue, 29 Oct 2019 14:49:55 GMT
Etag: "8cb19de108d7921906d30da8e2d2a6cbaa146d29"
X-From-Cache: true
Cache-Control: no-cache, must-revalidate
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: text/html; charset=utf-8


[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 404 NOT FOUND
Content-Length: 232
Content-Type: text/html
X-Clacks-Overhead: GNU Terry Pratchett
X-Robots-Tag: noindex, nofollow, noimageindex

Run this command from the Pi interface and it will show you which processes are running on port 80.

sudo netstat -nltup | grep 'Proto\|:80'

You have several options to deconflict the port:

  1. Remove the other process that is occupying port 80.

  2. Change the other process to a port other than 80

  3. Change lighttpd to a port other than 80:

sudo nano /etc/lighttpd/lighttpd.conf

Change “server.port” to the new port you wish to use. Save and exit.

sudo service lighttpd start

Note that this local change to your code will be overwritten by a Pi-Hole update or repair.

Ok, just like i modified my main post, i changed the lighttp server from 80 to 8888, and that allowed the Daemon to start, but i still have no web interface.

here is the second debug log

//tricorder.pi-hole.net/bnmkh4310y

You still have the same errors with lighttpd shown as active. Something in the Octoprint setup is interfering with or has modified the code needed for lighttpd.

*** [ 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-Length: 2788
X-Robots-Tag: noindex, nofollow, noimageindex
Set-Cookie: session_P80=eyJfaWQiOnsiIGIiOiJNbUptTm1FMU5qVmxOekE0Tm1RNU5HVXpNalJsTlRsbU5qSTRNekEyTkRBPSJ9fQ.XiXPDg.ZndVPQ4doynF3H3guw1uEx_T16I; HttpOnly; Path=/
Last-Modified: Tue, 29 Oct 2019 14:49:55 GMT
Etag: "2b23d70a5ee9bda3564c6ca2d725eb882e09eed1"
X-From-Cache: true
Cache-Control: no-cache, must-revalidate
X-Clacks-Overhead: GNU Terry Pratchett
Content-Type: text/html; charset=utf-8


[✗] Web interface X-Header: X-Header does not match or could not be retrieved.
HTTP/1.1 404 NOT FOUND
Content-Length: 232
Content-Type: text/html
X-Clacks-Overhead: GNU Terry Pratchett
X-Robots-Tag: noindex, nofollow, noimageindex

Well, yes, thats what im trying to figure out and thats why i needed the help. I do not have any VPN or any other server installed besides the Octoprint with Klipper.

Unfortunately, html and the web admin interface is not my strong suit.

Anyone have any kind of idea to this? here is a fresh debug token:
https://tricorder.pi-hole.net/uq76pu4nia

Nothing we can do really, there’s another web server on port 80, same as what jfb quoted.

Are you trying http://pi.hole:8888/admin as the URL?

Holy moly. I didnt try it with the port written there. This solved it. You are a blessing in disguise. Thank you so very much!