Web UI not loading after upgrade

Expected Behaviour:
My web interface stopped working after the V6 upgrade. I see that my port was not changed. Can someone help me fix this? This has been driving me nuts for the last one week. I tried everything posted on the internet and had no luck.

Actual Behaviour:

This site can’t be reached

refused to connect.

I found the below port details from /etc/pihole/pihole.toml
port = "80o,443os,[::]:80o,[::]:443os"

I tried the below URLs but none worked.

http://pi.hole/admin

I'm not sure if I need to change the port from 80 to 8080 in the file /etc/pihole/pihole.toml like below
port = "8080o,443os,[::]:8080o,[::]:443"

Core version is v6.0.6 (Latest: v6.0.6)
Web version is v6.1 (Latest: v6.1)
FTL version is v6.1 (Latest: v6.1)

[✓] FTL is listening on port 53
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)

[✓] Pi-hole blocking is enabled

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

You have a database issue:

2025-04-29 13:00:00.031 CDT [33500/T33532] WARNING: Database /etc/pihole/pihole-FTL.db is damaged and cannot be used.

Run these commands to move the existing database to a new file name and create a fresh database.

sudo service pihole-FTL stop

sudo mv /etc/pihole/pihole-FTL.db /etc/pihole/pihole-FTL-old.db

sudo service pihole-FTL start

If after restarting Pi-hole the web server is still down, please generate a new debug Token.

1 Like

I ran the above commands but web interface is not working. Here is the new token: https://tricorder.pi-hole.net/zCN7hEKg/

Thanks for helping me.

The web server is not starting because there is an issue with the certificate:

2025-04-29 18:52:45.295 CDT [74053M] INFO: Reading certificate from /etc/pihole/tls.pem ...
2025-04-29 18:52:45.295 CDT [74053M] INFO: No key found
2025-04-29 18:52:45.295 CDT [74053M] ERROR: Cannot parse certificate: Error code -8576
2025-04-29 18:52:45.295 CDT [74053M] WARNING: SSL/TLS certificate /etc/pihole/tls.pem does not match domain pi.hole!
2025-04-29 18:52:45.299 CDT [74053M] INFO: Using SSL/TLS certificate file /etc/pihole/tls.pem
2025-04-29 18:52:45.300 CDT [74053M] ERROR: Start of webserver failed!. Web interface will not be available!
2025-04-29 18:52:45.300 CDT [74053M] ERROR:        Error: Error initializing SSL context (error code 3.0)
2025-04-29 18:52:45.301 CDT [74053M] ERROR:        Hint: Check the webserver log at /var/log/pihole/webserver.log

It looks like your current certificate is invalid (issued for a different domain) or broken.

You can let Pi-hole automatically create a new certificate by removing the old certificate and restarting pihole-FTL, using these commands:

sudo rm /etc/pihole/tls*
sudo service pihole-FTL restart
1 Like

Thank you. It worked.

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