Unable to access web interface after updating to Debian 11

Hi, I wanted to update my pihole with pihole -up but failed due to my outdated system (Debian 10). This caused me to lose access to the web interface.

I manually updated my system to debian 11 but that didn't help.

pihole -up now shows:
root@pPihole:/opt/pihole# pihole -up
/opt/pihole/update.sh: line 108: : No such file or directory
You have new mail in /var/mail/root

Pihole continues to run in the background, but I have no access to the web interface:
root@pPihole:/opt/pihole# pihole status
[✓] FTL is listening on port 53
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)

[✓] Pi-hole blocking is enabled

I am grateful for any help!

Debug Token:

https://tricorder.pi-hole.net/0MvS7KeI/

What does that line say when you view update.sh ?!

cat /opt/pihole/update.sh

or

vi /opt/pihole/update.sh

And then check what line 108 does :slight_smile:

I am guessing some files got downloaded incorrectly or not at all...?!

107 # shellcheck disable=1090,2154
108 source "${setupVars}"

can you try:

cd /etc/.pihole
sudo git pull
sudo bash automated\ install/basic-install.sh

I tryed to fix with pihole -r and got a tts error:

cannot open tty-output
   Cancel was selected, exiting installer

I am using a lxc container with proxmox and had the ssh to the container over the proxmox web interface.

I have connected over local ssh with my mac and now, i could run pihole -r without any problems.

The web interface was running fine after the repair but once i updated it again with pihole -up, it crashed :frowning:

You need a terminal environment to run the scripts because most are interactive. If you can access the pmox host terminal then pct enter <lxc_id_of_container> should get you that interactive terminal.

I have done it and was able to access the interface again but it was not on the latest version.

After i updated it with pihole -up, the web interface crashed again.

Now, i tried the repair command again and it was running without any issues but still no access to the web interface.


  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [i] SELinux not detected
  [✓] Update local cache of available packages

  [✗] Checking apt-get for upgraded packages
      Kernel update detected. If the install fails, please reboot and try again
  [✓] Building dependency package pihole-meta.deb
  [✓] Installing Pi-hole dependency package

  [✓] Supported OS detected
  [i] Repair option selected
  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [✓] Resetting repository within /var/www/html/admin...
  [✓] Checking for user 'pihole'

  [i] FTL Checks...

  [✓] Detected x86_64 architecture
  [i] Latest FTL binary already installed (v6.0.2), verifying integrity...
  [i] Local binary up-to-date. No need to download!
  [✓] Installing scripts from /etc/.pihole
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

  [i] Installing configs from /etc/.pihole...

  [✓] Installing latest Cron script

  [i] Installing latest logrotate script...
	[i] Existing logrotate file found. No changes made.
  [✓] man pages installed and database updated
  [i] Testing if systemd-resolved is enabled
  [✓] Disabling systemd-resolved DNSStubListener
  [i] Restarting services...
  [✓] Enabling pihole-FTL service to start on reboot...
  [✓] Restarting pihole-FTL service...
  [✓] Deleting existing list cache
  [✓] DNS resolution is available

  [i] Neutrino emissions detected...

  [✓] Preparing new gravity database
  [✓] Creating new gravity databases
  [✓] Pulling blocklist source list into range
  [i] Using libz compression

  [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  [✓] Status: No changes detected
  [✓] Parsed 127472 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/youtubelist.txt
  [✓] Status: No changes detected
  [✓] Parsed 16839 exact domains and 0 ABP-style domains (blocking, ignored 1 non-domain entries)
      Sample of non-domain entries:
        - head

  [i] Target: https://adaway.org/hosts.txt
  [✓] Status: No changes detected
  [✓] Parsed 6540 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: http://sysctl.org/cameleon/hosts
  [✓] Status: No changes detected
  [✓] Parsed 20561 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  [✓] Status: No changes detected
  [✓] Parsed 34 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  [✓] Status: No changes detected
  [✓] Parsed 2701 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://badmojr.github.io/1Hosts/mini/wildcards.txt
  [✓] Status: No changes detected
  [✓] Parsed 0 exact domains and 0 ABP-style domains (blocking, ignored 96348 non-domain entries)
      Sample of non-domain entries:
        - *.measure.office.net
        - *.teams.events.data.microsoft.com
        - *.logs.netflix.com
        - *.ogads-pa.googleapis.com
        - *.app-analytics-services.com

  [i] Target: https://easylist.to/easylist/easylist.txt
  [✓] Status: No changes detected
  [✓] Parsed 4 exact domains and 28492 ABP-style domains (blocking, ignored 10864 non-domain entries)
      Sample of non-domain entries:
        - -ad-manager/$~stylesheet
        - -ad-sidebar.$image
        - -ad.jpg.pagespeed.$image
        - -ads-manager/$domain=~wordpress.org
        - -ads/assets/$script,domain=~web-ads.org

  [i] Target: https://raw.githubusercontent.com/RPiList/specials/master/Blocklisten/easylist
  [✓] Status: No changes detected
  [✓] Parsed 60422 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
  [✓] Status: No changes detected
  [✓] Parsed 42536 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://v.firebog.net/hosts/AdguardDNS.txt
  [✓] Status: No changes detected
  [✓] Parsed 54680 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt
  [✓] Status: No changes detected
  [✓] Parsed 242 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://github.com/kboghdady/youTube_ads_4_pi-hole/blob/d19fdd35227d7ec4186047c3f9d1b7f58ae48858/youtubelist.txt
  [✓] Status: Retrieval successful
  [i] List stayed unchanged
  [✓] Parsed 11 exact domains and 0 ABP-style domains (blocking, ignored 1595 non-domain entries)
      Sample of non-domain entries:
        - <
        - lang="en"
        - data-dark-theme="dark"
        - data-a11y-link-underlines="true"
        - >

  [i] Target: https://github.com/mmotti/pihole-regex/blob/52bc380f241525ca8307f3bed4cf4329f1aee1ff/regex.list
  [✓] Status: Retrieval successful
  [i] List stayed unchanged
  [✓] Parsed 11 exact domains and 0 ABP-style domains (blocking, ignored 1598 non-domain entries)
      Sample of non-domain entries:
        - <
        - lang="en"
        - data-dark-theme="dark"
        - data-a11y-link-underlines="true"
        - >

  [i] Target: https://v.firebog.net/hosts/Admiral.txt
  [✓] Status: No changes detected
  [✓] Parsed 1388 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://v.firebog.net/hosts/Easylist.txt
  [✓] Status: No changes detected
  [✓] Parsed 28248 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
  [✓] Status: No changes detected
  [✓] Parsed 3471 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts
  [✓] Status: No changes detected
  [✓] Parsed 9 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts
  [✓] Status: No changes detected
  [✓] Parsed 18164 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts
  [✓] Status: No changes detected
  [✓] Parsed 1707 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/w13d/adblockListABP-PiHole/master/Spotify.txt
  [✓] Status: No changes detected
  [✓] Parsed 47 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt
  [✓] Status: No changes detected
  [✓] Parsed 909 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileSpyware.txt
  [✓] Status: No changes detected
  [✓] Parsed 800 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt
  [✓] Status: No changes detected
  [✓] Parsed 429286 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/amp-hosts-extended.txt
  [✓] Status: No changes detected
  [✓] Parsed 16452 exact domains and 0 ABP-style domains (blocking, ignored 0 non-domain entries)

  [i] Target: https://www.github.developerdan.com/hosts/lists/dating-services-extended.txt
  [✓] Status: No changes detected
  [✓] Parsed 21671 exact domains and 0 ABP-style domains (blocking, ignored 1 non-domain entries)
      Sample of non-domain entries:
        - dating

  [✓] Building tree
  [i] Number of gravity domains: 882697 (754038 unique domains)
  [i] Number of exact denied domains: 16866
  [i] Number of regex denied filters: 2
  [i] Number of exact allowed domains: 24
  [i] Number of regex allowed filters: 1
  [✓] Optimizing database
  [✓] Swapping databases
  [✓] The old database remains available
  [✓] Cleaning up stray matter

  [✓] Done.

  [i] The install log is located at: /etc/pihole/install.log
  [✓] Update complete! 

Core version is v6.0.4 (Latest: v6.0.4)
Web version is v6.0.1 (Latest: v6.0.1)
FTL version is v6.0.2 (Latest: v6.0.2)

Okay, i got it now. After updating to the latest version, i needed to use the port 8080:

http://<your_pi-hole_ip>:8080/admin

NOTE:

If you are not using other web server on port 80, you can change Pi-hole port to 80 with pihole-FTL --config webserver.port '80o,443os,[::]:80o,[::]:443os' and access without addin ports to the URL.

1 Like

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