Hello, I wanted to update my Pi-Hole, but after entering "pihole -up" I got an error message. „Could not update local repository. Contact support.„
Can someone help me?
The only "peculiarity" is that my Raspberry Pi 4B (4GB) does not run with an SD card but with an SSD. I'm not quite sure, but I don't think I've done an update since then. In this configuration, the Pi-Hole has been running for a few weeks without any problems that I would have noticed.
In case it is useful as a reference, I get an error when running those commands here on a Pi-hole which does update without any problems.
fatal: detected dubious ownership in repository at '/etc/.pihole'
To add an exception for this directory, call:
git config --global --add safe.directory /etc/.pihole
pi@raspberrypi:~ $ cd /etc/.pihole
pi@raspberrypi:/etc/.pihole $ git describe --tags --abbrev=0
fatal: detected dubious ownership in repository at '/etc/.pihole'
To add an exception for this directory, call:
pi@raspberrypi:/etc/.pihole $ git rev-parse --abbrev-ref HEAD
fatal: detected dubious ownership in repository at '/etc/.pihole'
To add an exception for this directory, call:
pi@raspberrypi:/etc/.pihole $ git describe --long --dirty --tags --always
fatal: detected dubious ownership in repository at '/etc/.pihole'
To add an exception for this directory, call:
I have entered the command and tried again to perform an update, here now the entire output of the error message during the update.
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Checking for updates...
error: refs/tags/v5.14.2 zeigt auf kein gültiges Objekt!
error: refs/tags/v5.14.2 zeigt auf kein gültiges Objekt!
error: refs/tags/v5.14.2 zeigt auf kein gültiges Objekt!
error: refs/tags/v5.14.2 zeigt auf kein gültiges Objekt!
[i] Pi-hole Core: update available
[i] Web Interface: update available
[i] FTL: up to date
[i] Pi-hole core files out of date, updating local repo.
[✓] Check for existing repository in /etc/.pihole
[i] Update repo in /etc/.pihole...
: Could not update local repository. Contact support.
Still unchanged, only the repair has led to the FTL could be updated.
Okay, but before I do that, do I see correctly that this will also delete all settings? If so, will they be restored if I make a backup via the webinterface before and restore it afterwards?
After deleting and restoring the repos, with then repairing it, I was able to update.
However, I have twice entered the pihole -up command. The first time the web interface was not updated, there were changes found. After the second update everything seems to run and there were no more hints after the update.