Wrong Password on Admin login page

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

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

To get to the admin login page, I use https://pi.hole/admin. I enter the password generated during the pihole installation. and the dashboard opens up.
The hardware is Raspberry Pi4, model B, rev 1.5

Actual Behaviour:

What actually happens is that the login page shows the message "Wrong Password".
I open a ssh window and run the sudo pihole setpassword command and get the message "password changed." I quit the browser, restart it, and go to the admin login page. I enter the changed password and get the same "Wrong Password" message.
Pihole was installed today on a new Micro SD card with on Raspberry P4 model 4 rev 1.5. Pihole is successfully running on another P4 model 4 rev 1.4

Debug Token:

https://tricorder.pi-hole.net/ljH1twQW/

Do you have more than one Pi-hole in your network?
Are you sure you are accessing the right one (192.168.50.150)?

Your debug log shows the web server is not running.

FTL.log:

   2025-03-31 15:15:31.204 PDT [1141M] INFO: Using SSL/TLS certificate file /etc/pihole/tls.pem
   2025-03-31 15:15:31.214 PDT [1141M] ERROR: Start of webserver failed!. Web interface will not be available!
   2025-03-31 15:15:31.214 PDT [1141M] ERROR:        Error: Failed to setup server ports (error code 10.0)
   2025-03-31 15:15:31.214 PDT [1141M] ERROR:        Hint: Check the webserver log at /var/log/pihole/webserver.log

webserver.log:

   [2025-03-31 15:15:31.202 PDT 1141] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 15:15:31.209 PDT 1141] cannot create socket (entry 3)
   [2025-03-31 15:15:31.214 PDT 1141] cannot create socket (entry 4)
   [2025-03-31 15:15:31.214 PDT 1141] Failed to setup server ports

This means it is impossible to access the login page (there is no web server to generate the page).

There are 2 pihole installations, on 2 different raspberry Pi 4s. In this case, the only devices running were the 192.168.50.150 Raspberry Pi 4, the ONT, a laptop, and the router.
how do I get the webserver to run? I set the other device up using the settings through the admin page. I can't access the admin page.

Your issue here is not a wrong password.

Your web servers simply never started, but I'm not sure why.

The necessary ports (80 and 443) are free to be used:

*** [ DIAGNOSING ]: Ports in use
    udp:0.0.0.0:5353 is in use by avahi-daemon
[✓] udp:0.0.0.0:53 is in use by pihole-FTL
    udp:0.0.0.0:123 is in use by pihole-FTL
    udp:0.0.0.0:37100 is in use by avahi-daemon
[✓] tcp:0.0.0.0:53 is in use by pihole-FTL
    tcp:0.0.0.0:22 is in use by sshd
    tcp:127.0.0.1:631 is in use by cupsd

I saw a few error messages on the log, but I've never saw these messages before:

   2025-03-31 15:15:31.214 PDT [1141M] ERROR: Start of webserver failed!. Web interface will not be available!
   2025-03-31 15:15:31.214 PDT [1141M] ERROR:        Error: Failed to setup server ports (error code 10.0)
   2025-03-31 15:15:31.214 PDT [1141M] ERROR:        Hint: Check the webserver log at /var/log/pihole/webserver.log
...
   2025-03-31 15:47:41.960 PDT [1141/T1258] INFO: Reloading config due to pihole.toml change
   2025-03-31 15:47:41.962 PDT [1141/T1258] ERROR: Trying to fill a NULL memory area in delete_all_sessions() (/app/src/api/auth.c:371)
   2025-03-31 15:47:41.963 PDT [1141/T1258] ERROR: Trying to fill a NULL memory area in delete_all_sessions() (/app/src/api/auth.c:371)

Maybe @DL6ER can explain what happened.

The Raspberry Pi Model B at 192.168.50.150 ran the previous version FTL 5.24 & core 5.17 from the beginning of the year.

What is in this log file?

   -----tail of webserver.log------
   [2025-03-31 03:38:08.981 PDT 1183] Failed to setup server ports
   [2025-03-31 05:10:59.432 PDT 1101] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 05:10:59.441 PDT 1101] cannot create socket (entry 3)
   [2025-03-31 05:10:59.446 PDT 1101] cannot create socket (entry 4)
   [2025-03-31 05:10:59.446 PDT 1101] Failed to setup server ports
   [2025-03-31 06:07:12.216 PDT 1172] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 06:07:12.229 PDT 1172] cannot create socket (entry 3)
   [2025-03-31 06:07:12.234 PDT 1172] cannot create socket (entry 4)
   [2025-03-31 06:07:12.235 PDT 1172] Failed to setup server ports
   [2025-03-31 06:25:48.922 PDT 1191] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 06:25:48.930 PDT 1191] cannot create socket (entry 3)
   [2025-03-31 06:25:48.935 PDT 1191] cannot create socket (entry 4)
   [2025-03-31 06:25:48.935 PDT 1191] Failed to setup server ports
   [2025-03-31 06:58:09.406 PDT 1132] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 06:58:09.412 PDT 1132] cannot create socket (entry 3)
   [2025-03-31 06:58:09.417 PDT 1132] cannot create socket (entry 4)
   [2025-03-31 06:58:09.417 PDT 1132] Failed to setup server ports
   [2025-03-31 07:00:15.731 PDT 1142] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 07:00:15.738 PDT 1142] cannot create socket (entry 3)
   [2025-03-31 07:00:15.743 PDT 1142] cannot create socket (entry 4)
   [2025-03-31 07:00:15.743 PDT 1142] Failed to setup server ports
   [2025-03-31 15:15:31.202 PDT 1141] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
   [2025-03-31 15:15:31.209 PDT 1141] cannot create socket (entry 3)
   [2025-03-31 15:15:31.214 PDT 1141] cannot create socket (entry 4)
   [2025-03-31 15:15:31.214 PDT 1141] Failed to setup server ports

I have just updated the OS and loaded pi-hole on an old Raspberry Pi 3 B. I was able to access the logon page and the password provided during installation worked. I have that device using a wireless connection. I will try to do the same on the P4 tomorrow.

I am beginning to suspect that there is something wrong with the Pi4 B rev 1.5 vs. the pihole web server. I have installed Raspberry OS and Pihole and placed the device in different areas and different configurations and no matter what, the webserver log shows the same messages "Failed to set up server ports."

I have actually solved this problem and now have (2) Pi 4's running pihole. I used an alternative install method that I found on https://github.com/pi-hole/pihole called

Method 1: Clone our repository and run

git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh