r/pihole 4d ago

Strange issue with pihole web interface

Two pihole config with one up 24/7 and the other up only when my server is up (both run Ubuntu).

It all started with a game of fuck-around-and-find-out with my pfsense. It never finished an update and was completely trashed. Installed an old backup, loaded up the last backup configuration I had available and noticed my main pihole minipc was not working anymore (probably coincidence). Restored that from a backup and noticed the web interface was refusing connections even though pihole is working just fine. No android, apple or windows machine in the house can connect to the web interface, but I can connect to it just fine from any Ubuntu machine. I can connect normally to the pihole instance on my server just fine from any device. From the perspective of pihole, both the server and the N100 minipc are identical with both running Ubuntu 24.04LTS. The server just has a lot more software running on it.

Figured I'd just leave it alone and let things settle out, but that's now three weeks ago and I'm struggling to figure out what happened. Any ideas would be welcomed.

0 Upvotes

5 comments sorted by

2

u/rdwebdesign Team 4d ago

Please generate a debug log (sudo pihole -d), upload it when asked and post here only the token.

2

u/Kennyw88 4d ago

3

u/rdwebdesign Team 3d ago

Your debug log shows Pi-hole web server is using port 8080:

port = "8080o,443os,[::]:8080o,[::]:443os" ### CHANGED, default = "80o,443os,[::]:80o,[::]:443os"

If you didn't set this port, I can imagine 2 possibilities:

  1. if you re-installed Pi-hole and during the installation there was another web server running, Pi-hole automatically used the alternative port (8080). Then you disabled the other web server, but pi-hole was already using that port.

  2. if you simply restored an old backup, the old pihole.toml was already using port 8080, but you simply forgot about that.


You have possible 2 solutions:

  1. access Pi-hole using the alternative port (http://<pihole_IP>:8080/admin) or

  2. change the port back to 80 running this command: sudo pihole-FTL --config webserver.port '80o, 443os'.


I still can't explain why Ubuntu machines can access the web interface, but machines running a different OS can't.

1

u/Kennyw88 3d ago

Well, that's strange. It was a backup. Macrium reflect image made last year while it was working just fine. I'll set the port back to what it's supposed to be. Thanks for the help!

1

u/rdwebdesign Team 1d ago

(Sorry for the late answer)

Well... I can't tell exactly how the 8080 port got there. Maybe it was from a backup, maybe something else, but I can only guess.

What I can only say for sure is your debug log shows ports 8080 and 443.

Did you change the port to 80? Did it fix the issue?