PiHole v6 Admin Panel Issues

The issue I am facing:
Trying to login to the admin panel and I'm not able to because I need to update it or something.

Details about my system:
I remember changing how the admin panel worked as I was having some issues with NGINX and the server blocks regarding that. I got it fixed eventually until the v6 update and well I updated it but I'm not entirely sure if it is actually running but it seems like it is. Just can't access the webpanel.

I've tried:

On some of them I get a 403 Forbidden error.

What I have changed since installing Pi-hole:
I've changed the lighttpd to use a different port. And I've checked the lighttpd.conf file and that's the same as I left it.

Pi-hole v6 does not use lighttpd anymore, see also the release notes from Introducing Pi-hole v6.

Run from your Pi-hole machine, please share the output of:

sudo pihole-FTL --config webserver.port

I've changed this in the config so it looks like this:
127.0.0.1:2424,80

Assuming that port 80 is already taken by nginx or lighttpd, only http://127.0.0.1:2424/admin may work, and only from a browser on the machine that runs your Pi-hole.

You should consider to not restrict Pi-hole's webserver to the loopback IP, and to move it to a non-conflicting port.

If ports 8088 and 8443 would be free, you could try e.g. via CLI:

sudo pihole-FTL --config webserver.port '8088o,8443os,[::]:8088o,[::]:8443os'

And if you don't need lighttpd for other services than Pi-hole, you may consider to disable and uninstall it.

I've removed lighttpd service and uninstalled it. I've got it working, however it's not allowing me to use https?

How so?
What's the exact URL you try to access via HTTPS?

http://192.168.100.5:8088/ this is the only one that allows me to access it.

That's a HTTP URL that doesn't answer my questions:

Oh my bad sorry.
These are the ones I'm trying to use:
https://pi.hole/admin and https://192.168.100.5:8443/admin

That would use port 443, and thus may only work if you'd correctly configured another webserver (e.g. your nginx) to proxy Pi-hole.

How does that fail?
What do you observe when trying to access it?
And since apparently you've used my example as is:
Is Pi-hole the only webserver binding that port?

There's nothing else on that machine other than PiHole.
When going to the page it tells me that it's dangerous, I got past that screen which gives me a PiHole 403 error screen.

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or if you run your Pi-hole as a Docker container:

docker exec -it <pihole-container-name-or-id> pihole -d

where you substitute <pihole-container-name-or-id> as required.

Thank you, here is the debug log:
https://tricorder.pi-hole.net/90XyJjFw/

Pi-hole is configured to use ports 8088 and 8443. The debug log confirms Pi-hole is using these ports:

port = "8088o,8443os,[::]:8088o,[::]:8443os"
*** [ DIAGNOSING ]: Ports in use
    (...)
[✓] tcp:0.0.0.0:8088 is in use by pihole-FTL
    (...)
[✓] tcp:0.0.0.0:8443 is in use by pihole-FTL

Please try all following URLs:

Do you see any errors? If you receive 403 (or any other) error, please post a screenshot.


Note:

If it still fails using 8080 and 8443, maybe there is a firewall blocking the ports.

Also, your debug log shows no other web server running on your Raspberry Pi.
Ports 80 and 443 are free.

1 Like

Weird they're all working now but I swear I was getting a 403 error on https://pi.hole:8443/admin yesterday.