Web UI always complains to update but am already latest

I clean installed the latest version of Pi-hole on the Raspbian Jessie system that also runs my HomeAssistant.

pi@raspberrypi:~ $ pihole -v
::: Elevating to root with sudo
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
::: Pi-hole version is (Latest version is v2.9.4)
::: Web-Admin version is (Latest version is v1.4.3.1)

Every time I go to the web UI it complains:

I did a git refresh on the web UI and reinstalled several times, no luck. Many thanks for any help.

Jeff Smith

Can you try cd /etc/.pihole then git status?

Dan thanks!

pi@raspberrypi:~ $ cd /etc/.pihole
pi@raspberrypi:/etc/.pihole $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Okay, and git describe from the same directory?

pi@raspberrypi:/etc/.pihole $ git describe
fatal: No names found, cannot describe anything.

Very strange. git remote show origin and if that doesn't work git config --get remote.origin.url and see if it's somehow lost connection to GitHub?

Dan,

I agree, very odd.

pi@raspberrypi:/etc/.pihole $ git remote show origin

Maybe it's a permissions issue? ls -lach /etc/.pihole/

Good thought. Looks ok to me?

pi@raspberrypi:~ $ ls -lach /etc/.pihole/
total 92K
drwxr-xr-x 7 root root 4.0K Oct 25 09:36 .
drwxr-xr-x 116 root root 4.0K Oct 25 12:00 ..
-rw-r--r-- 1 root root 3.1K Oct 25 09:36 adlists.default
drwxr-xr-x 6 root root 4.0K Oct 25 11:30 advanced
drwxr-xr-x 2 root root 4.0K Oct 25 09:36 automated install
drwxr-xr-x 2 root root 4.0K Oct 25 09:36 block hulu ads
-rw-r--r-- 1 root root 2.2K Oct 25 09:36 CONTRIBUTING.md
drwxr-xr-x 8 root root 4.0K Oct 25 12:00 .git
drwxr-xr-x 2 root root 4.0K Oct 25 09:36 .github
-rw-r--r-- 1 root root 10 Oct 25 09:36 .gitignore
-rwxr-xr-x 1 root root 12K Oct 25 09:36 gravity.sh
-rw-r--r-- 1 root root 18K Oct 25 09:36 LICENSE
-rwxr-xr-x 1 root root 6.4K Oct 25 09:36 pihole
-rw-r--r-- 1 root root 648 Oct 25 09:36 .pullapprove.yml
-rw-r--r-- 1 root root 8.0K Oct 25 09:36 README.md

Let me ask the other developers and see what they think, so far everything looks as it should be. Last thing I could think would be sudo git describe just to check the permissions in /etc/.pihole/
.

Thanks!

pi@raspberrypi:/etc/.pihole $ sudo git describe
fatal: No names found, cannot describe anything.
pi@raspberrypi:/etc/.pihole $ git rev-parse HEAD
0de74c04486314140e02634bf2677dbaa0656384
pi@raspberrypi:/etc/.pihole $ git rev-parse --short HEAD
0de74c0
pi@raspberrypi:/etc/.pihole $
pi@raspberrypi:/etc/.pihole $ git rev-parse HEAD
0de74c04486314140e02634bf2677dbaa0656384
pi@raspberrypi:/etc/.pihole $
pi@raspberrypi:/etc/.pihole $ git describe
fatal: No names found, cannot describe anything.
pi@raspberrypi:/etc/.pihole $ sudo git describe
fatal: No names found, cannot describe anything.
pi@raspberrypi:/etc/.pihole $ git describe --all
heads/master
pi@raspberrypi:/etc/.pihole $ sudo git describe --all
heads/master
pi@raspberrypi:/etc/.pihole $ sudo git describe --tags
fatal: No names found, cannot describe anything.

Thanks that may hold the key, checking now and will update.

Okay, internal issue. From /etc/.pihole do a git pull and then you should be okay to go.

Progess. Permissions should be what?

pi@raspberrypi:/etc/.pihole $ git pull
error: cannot open .git/FETCH_HEAD: Permission denied

You should be able to update via the web interface now, we fixed the server side issue. If not, you need to run the pull as sudo since root currently owns that directory. But try the admin page first.

Dan,

That was it. Very much appreciated, all is working now as expected.

Jeff

Great! Thanks for using the Pi-hole.

Thanks for making it! Look for my donation later today.

Jeff

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