→ Pi-Hole is a great way to protect your entire home from ads → Invest your thanks here: https://patreon.com/LinuxRenaissance Make sure to motivate me for more content by, at least, liking the vide...
The git fsck failing showed a corrupt repository so I researched how to repair a git repository and found the tool git-repair - installed and ran this with the --force flag and this repaired the repository.
Then ran git pull and the repository was now healthy. My web UI also works now!!
Probably a silly feature request but would it be worthwhile to add a git fsck to all the pihole stores in the debug script?
To start you should go to your web admin folder at /var/www/html/admin and run a git fsck to make sure you’re having the same problem as the person above. If you get a lot of failures, its likely the same issue.
So based on this resolved thread, it looks like you need to install git-repair and then once again go to your pihole web admin interface folder at /var/www/html/admin.
Then once in that folder run git-repair --force and then when that completes run git pull. Hopefully that resolves this issue for you.
https://discourse.pi-hole.net/t/cannot-access-web-interface-after-pihole-6-update/77366/4
To start you should go to your web admin folder at
/var/www/html/admin
and run agit fsck
to make sure you’re having the same problem as the person above. If you get a lot of failures, its likely the same issue.So based on this resolved thread, it looks like you need to install
git-repair
and then once again go to your pihole web admin interface folder at/var/www/html/admin
.Then once in that folder run
git-repair --force
and then when that completes rungit pull
. Hopefully that resolves this issue for you.Thanks! This sounded very promising but I don’t get any errors from
git fsck
, so I have to keep looking for other solutions.