No Web access - Unsupported OS detected: Raspbian 10 - after running update

Expected Behaviour:

Running Raspbian 10 on a Pi 1+
Has been working perfectly

Actual Behaviour:

Today I decided to run updates - pihole -up
Got this error message after doing pihole -up: Unsupported OS detected: Raspbian 10 ....
Everything still seems to work EXCEPT I cannot access it via the web-interface.
When I go to http://192.168.0.XXX I now get 403 Forbidden

If I run curl -i http://localhost/admin/ I get the following:

HTTP/1.1 403 Forbidden
Content-Type: text/html
X-Pi-hole: The Pi-hole Web interface is working!
X-Frame-Options: DENY
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'self' 'unsafe-inline';
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: same-origin
Content-Length: 341
Date: Tue, 18 Feb 2025 18:59:16 GMT
Server: lighttpd/1.4.53

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
 </body>
</html>

Debug Token:

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

Raspbian 10 ist EOL and not supported anymore. You should upgrade to the latest version of Raspberry Pi OS.

Thanks I do plan to upgrade ..... I have a new Pi that I am currently setting up.

But I desperately need access to the current system

You are looking at LigHTTPd buddy :wink:

I am guessing you can find Pi-Hole v6 @ http://localhost:8080/admin since the new webserver binds at port 8080 when 80 is in use by Apache/LigHTTPD/NginX/etc...

Thanks but I not sure I understand what you are saying.

I did not install Apache etc on Pihole.

I have nothing running on port 8080

It seems you have LigHTTPd running : It's using Port 80.

When you start Pi-Hole v6 it sees that and switches to port 8080 :wink:

Assuming the update you did switched you to Pi-Hole v6 and you are not using Pi-Hole v5 anymore ?!

Something went wrong during your updgrade, your're still running part of Pi-hole v5.

*** [ DIAGNOSING ]: FTL version
[βœ“] Version: v5.25.2
[i] Branch: master
[i] Commit: 8943e260

You should now stop and disable lighttpd and then do the upgrade again

systemctl stop lighttpd
systemctl disable lighttpd
pihole checkout master

Did you see a message like this when you upgraded?

Can I just go back to V5 for now to get everything working as it was? If Yes, how would I do that?

I just want to run everything for a week more on this PI. By then my new Pi will be ready.

OR is it better to upgrade to V6 but still running on Raspbian 10?

You can't go back on bare metal, the installer will always pull v6. You could install Pi-hole v5 via docker and import a backup.

Okay I'll run the update again as you suggested

systemctl stop lighttpd
systemctl disable lighttpd
pihole checkout master

But before I do, Can I do a teleporter backup via the CLI?

Not sure if I did. What I do notice now though is that the /var/www/html/admin is owned by root

 $ ls -l /var/www/html/
total 12
drwxr-xr-x 9 root     root     4096 Feb 18 12:52 admin
-rw-r--r-- 1 www-data www-data   13 Feb 18 12:21 custom_disable_timer
drwxr-xr-x 2 root     root     4096 Dec 29  2022 pihole

Could this be the cause of the 403 error?

After running the commands above, I get this:

[βœ—] Unsupported OS detected: Raspbian 10
      If you are seeing this message and you do have a supported OS, please contact support.

      https://docs.pi-hole.net/main/prerequisites/#supported-operating-systems

      If you wish to attempt to continue anyway, you can try one of the following commands to skip this check:

      e.g: If you are seeing this message on a fresh install, you can run:
             curl -sSL https://install.pi-hole.net | sudo PIHOLE_SKIP_OS_CHECK=true bash

           If you are seeing this message after having run pihole -up:
             sudo PIHOLE_SKIP_OS_CHECK=true pihole -r
           (In this case, your previous run of pihole -up will have already updated the local repository)

      It is possible that the installation will still fail at this stage due to an unsupported configuration.
      If that is the case, you can feel free to ask the community on Discourse with the Community Help category:
      https://discourse.pi-hole.net/c/bugs-problems-issues/community-help/

   Error: Unable to complete update, please contact support

Did you try sudo PIHOLE_SKIP_OS_CHECK=true pihole -r ?

I did eventually try that. It just changed the error message from a 403 to connect to the server

I eventually gave in and rebuilt the flash card with PiOS (bookworm) and the latest pihole (v6.0)

Couple of things are different but the web interface seems snappier.

1 Like

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