Pihole -up not updating pihole

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

Expected Behaviour:

after pihole -up update pihole

Actual Behaviour:

pi@rasperrypi:~ $ pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:	up to date
  [i] Web Interface:	update available
curl: (22) The requested URL returned error: 404 Not Found
  [i] FTL:		update available

  [i] Pi-hole Web Admin files out of date, updating local repo.
  [✓] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...
  : Could not update local repository. Contact support.

Debug Token:

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

This seems to suggest there is an issue with the web interface locally.. though your debug log does not indicate any diff in the directory...

Please could you give us the results of the following commands?

cd /var/www/html/admin && git status

cd /var/www/html/admin && git remote -v

Thanks!

This is what I get:

pi@rasperrypi:~ $ cd /var/www/html/admin && git status
On branch master
Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
nothing to commit, working tree clean

pi@rasperrypi:/var/www/html/admin $ cd /var/www/html/admin && git remote -v
origin	https://github.com/pi-hole/AdminLTE.git (fetch)
origin	https://github.com/pi-hole/AdminLTE.git (push)

OK, everything looks in order there.

From that directory (/var/www/html/admin) can you please run sudo git pull and see what happens?

pi@rasperrypi:~ $ cd /var/www/html/admin
pi@rasperrypi:/var/www/html/admin $ sudo git pull
Updating 38d8e77f..62f2ffc8

Excellent, that should have solved the problem. It appears that you are now on the latest commit. I am not 100% on what was causing the problem though.

Could you please run one last pihole -v, pihole -up, and also pihole -d to upload a fresh debug token and we can make sure

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

pi@rasperrypi:~ $ pihole -v
  Pi-hole version is v4.4 (Latest: v4.4)
  AdminLTE version is v4.3.2 (Latest: v4.3.3)
  FTL version is v4.3.1 (Latest: v4.3.1)

pi@rasperrypi:~ $ pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:	up to date
  [i] Web Interface:	update available
curl: (22) The requested URL returned error: 404 Not Found
  [i] FTL:		update available

  [i] Pi-hole Web Admin files out of date, updating local repo.
  [✓] Check for existing repository in /var/www/html/admin
  [i] Update repo in /var/www/html/admin...
  : Could not update local repository. Contact support.

yeah idk whats happening

This is incredibly weird.

One last thing, could you try a repair with pihole -r?

pi@rasperrypi:~ $ pihole -r

  [✓] Root user check

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

  [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u7
  [i] Repair option selected
  [✓] Disk space check
  [✓] Update local cache of available packages

  [✓] Checking apt-get for upgraded packages... up to date!

  [i] Installer Dependency checks...
  [✓] Checking for apt-utils
  [✓] Checking for dialog
  [✓] Checking for debconf
  [✓] Checking for dhcpcd5
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for whiptail

  [i] Performing reconfiguration, skipping download of local repos
  [✓] Resetting repository within /etc/.pihole...
  [i] Resetting repository within /var/www/html/admin......  Unable to reset /var/www/html/admin, exiting installer

Perhaps time to go nuclear on that directory.

sudo rm -rf /var/www/html/admin
sudo git clone https://github.com/pi-hole/adminlte /var/www/html/admin
pihole -v
1 Like

would this reset my settings

No, just the web interface files. There are not any settings stored in there

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