I am trying to run a pihole -up update as the system was telling me there was a update. I do not remember the version numbers.
Actual Behaviour:
This is the version numbers I am getting now
Pi-hole version is v5.17.3 (Latest: v5.17.3)
web version is be05b0f6 (Latest: v5.21)
FTL version is v5.25.1 (Latest: v5.25.1)
As you see the web version is hex
when running a pihole -up
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.31-1~deb10u5
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Checking for updates...
[i] Pi-hole Core: up to date
fatal: No tags can describe 'be05b0f61d3fcf796dae4cc3f89f8540b2359325'.
Try --always, or create some tags.
fatal: No tags can describe 'be05b0f61d3fcf796dae4cc3f89f8540b2359325'.
Try --always, or create some tags.
Error: Local revision could not be obtained, please contact Pi-hole Support
Additional debugging output:
On branch master
nothing to commit, working tree clean
So I have run the pihole checkout master
This is where the error happened
pi@PiHole-PiVPN:~ $ pihole checkout master
Please note that changing branches severely alters your Pi-hole subsystems
Features that work on the master branch, may not on a development branch
This feature is NOT supported unless a Pi-hole developer explicitly asks!
Have you read and understood this? [y/N] y
[i] Shortcut "master" detected - checking out master branches...
[i] Pi-hole core
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up to date.
[i] Web interface
[✓] Switching to branch: 'master' from 'refs/heads/master'
[i] Already up to date.
[i] Running installer to upgrade your installation
[✓] Root user check
[i] SELinux not detected
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.31-1~deb10u5
[✓] Checking apt-get for upgraded packages... up to date!
[i] Checking for / installing Required dependencies for OS Check...
[✓] Checking for grep
[✓] Checking for dnsutils
[✓] Supported OS detected
[i] Checking for / installing Required dependencies for this install script...
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Performing unattended setup, no dialogs will be displayed
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...HEAD is now at 19bfa08b Pi-hole core v5.17.3 (#5520)
[✓] Update repo in /etc/.pihole
[✓] Check for existing repository in /var/www/html/admin
[i] Update repo in /var/www/html/admin...fatal: No tags can describe 'be05b0f61d3fcf796dae4cc3f89f8540b2359325'.
Try --always, or create some tags.
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
: Could not update local repository. Contact support.
Error: Unable to complete update, please contact support pi@PiHole-PiVPN:~ $
pi@PiHole-PiVPN:~ $ cd /var/www/html/admin pi@PiHole-PiVPN:/var/www/html/admin $ sudo git status
On branch master
nothing to commit, working tree clean pi@PiHole-PiVPN:/var/www/html/admin $
[i] SELinux not detected
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.3.31-1~deb10u5
[✓] Checking apt-get for upgraded packages... up to date!
[i] Checking for / installing Required dependencies for OS Check...
[✓] Checking for grep
[✓] Checking for dnsutils
[✓] Supported OS detected
[i] Checking for / installing Required dependencies for this install script...
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Repair option selected
[i] Performing reconfiguration, skipping download of local repos
[✓] Resetting repository within /etc/.pihole...
Unable to reset /var/www/html/admin, exiting installer pi@PiHole-PiVPN:/ $
pihole -r and tell it to do the reinstall instead of repair. Your settings will all be there, you can do a transporter backup of your settings if you want to be sure and safe.
You could do a git clone of the web interface repository in to that directory but you have to be sure you are using the correct user account for the permissions to be all correct. It's easier to do the reinstall option.
There shouldn't be a pihole or an admin_bak directory there. Have you done any customizations or changes to things? custom_disable_timer looks like it's a config file that shouldn't be in the html directory either?
Since the directory is missing you should try to do the Repair again via pihole -r.