Version shown on dashboard does not match actual version

Hello
I'm on Pi-hole v5.17.1 and there is an update available


but when I try to update, it says it's up to date.
internet is working and I tried several times.

pi@raspberrypi:~ $ pihole -up
  [✓] 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...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              up to date

  [✓] Everything is up to date!
pi@raspberrypi:~ $

am I missing somthing here?

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

https://tricorder.pi-hole.net/5Wl3Mg43/

but,
and i didn't do anything


but now it's ok.

The web admin dashboard will lag the actual versions. The version shown on the dashboard isn't checked in real time.

1 Like

I see,
but 20 hours is a bit mutch :wink:
np now I kwow this for the future,
I think the api also is lagging.

The command

pihole updatechecker

and a reload of the Pi-hole web page will bring it up to date.

I have the exact same issue.
My debug log is here.
https://tricorder.pi-hole.net/q7EhoVkN/

Any help or ideas are greatly appreciated!

Did you try the suggested command on the previous post?

pihole updatechecker

Yes, I should have said I've done all the trouble shooting I have found in this thread and others with no resolution.
Thank you!

You do have a lot of these in your /var/log/lighttpd/error-pihole.log

2023-11-02 21:52:42: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice: Undefined index: CORE_VERSION in /var/www/html/admin/scripts/pi-hole/php/update_checker.php on line 40

Searching for that variable finds a few posts, but probably best to wait for a dev to confirm best way to fix.

Thanks I googled that line and found some posts but none with an answer.

thanks.
I added it to my update script

ssh -i /config/.ssh/pi-hole -o 'StrictHostKeyChecking=no' pi@192.168.180.10 'sudo pihole -up ; sudo pihole updatechecker'

so now we wait for the next update to check.

Your /etc/pihole/versions contains outdated Core_version information

rw-r--r-- 1 root root 604 Nov  2 21:43 /etc/pihole/versions
   CORE_VERSION=v5.17.1
   CORE_BRANCH=master
   CORE_HASH=60b6a101
   GITHUB_CORE_VERSION=v5.17.2
   GITHUB_CORE_HASH=60b6a10
   WEB_VERSION=v5.20.2
   WEB_BRANCH=master
   WEB_HASH=3dd57522
   GITHUB_WEB_VERSION=v5.20.2
   GITHUB_WEB_HASH=3dd5752
   FTL_VERSION=v5.23
   FTL_BRANCH=master
   FTL_HASH=d201776e
   GITHUB_FTL_VERSION=v5.23
   GITHUB_FTL_HASH=1a11413

As you have been unable to update that file, try removing it and run pihole updatechecker afterwards.

This should not be necessary, as we run the updatechecker every time an update was performed.

1 Like

Thank you that seems to have fixed it!!

Out of interest what might have been the cause of that, and why would it not become up to date afterwards when running pihole updatechecker, requiring the need to delete it?

Actually, I don't know. I've seen it before and fixed it the same way. It might be a permission issue with the file being owned by root:root but I don't have a v5 bare metal to verify the correct permissions at the moment.

Mine is v5 on a Pi 3B+ and this is what I have for reference. I think the poster's debug log showed the same file permissions.

$ pihole -v
Pi-hole version is v5.17.2 (Latest: v5.17.2)
web version is v5.20.2 (Latest: v5.20.2)
FTL version is v5.23 (Latest: v5.23)

$ ls -l /etc/pihole/versions
-rw-r--r-- 1 root root 325 Nov 6 17:25 /etc/pihole/versions
1 Like

I had the same problem.
This fixed it:

cd /etc/pihole
sudo mv versions versions.bak
pihole updatechecker

In case it's of any use in identifying the root cause here is a dump of my "before" (versions.bak) and "after" (versions) files:

t95x@aml-s9xx-box:/etc/pihole$ ls -l versions*
-rw-r--r-- 1 root root 325 Nov 10 09:58 versions
-rw-r--r-- 1 root root 650 Nov 10 09:55 versions.bak

t95x@aml-s9xx-box:/etc/pihole$ hd versions.bak
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000140  00 00 00 00 00 43 4f 52  45 5f 56 45 52 53 49 4f  |.....CORE_VERSIO|
00000150  4e 3d 76 35 2e 31 37 2e  32 0a 43 4f 52 45 5f 42  |N=v5.17.2.CORE_B|
00000160  52 41 4e 43 48 3d 6d 61  73 74 65 72 0a 43 4f 52  |RANCH=master.COR|
00000170  45 5f 48 41 53 48 3d 36  30 62 36 61 31 30 31 0a  |E_HASH=60b6a101.|
00000180  47 49 54 48 55 42 5f 43  4f 52 45 5f 56 45 52 53  |GITHUB_CORE_VERS|
00000190  49 4f 4e 3d 76 35 2e 31  37 2e 32 0a 47 49 54 48  |ION=v5.17.2.GITH|
000001a0  55 42 5f 43 4f 52 45 5f  48 41 53 48 3d 36 30 62  |UB_CORE_HASH=60b|
000001b0  36 61 31 30 31 0a 57 45  42 5f 56 45 52 53 49 4f  |6a101.WEB_VERSIO|
000001c0  4e 3d 76 35 2e 32 30 2e  32 0a 57 45 42 5f 42 52  |N=v5.20.2.WEB_BR|
000001d0  41 4e 43 48 3d 6d 61 73  74 65 72 0a 57 45 42 5f  |ANCH=master.WEB_|
000001e0  48 41 53 48 3d 33 64 64  35 37 35 32 32 0a 47 49  |HASH=3dd57522.GI|
000001f0  54 48 55 42 5f 57 45 42  5f 56 45 52 53 49 4f 4e  |THUB_WEB_VERSION|
00000200  3d 76 35 2e 32 30 2e 32  0a 47 49 54 48 55 42 5f  |=v5.20.2.GITHUB_|
00000210  57 45 42 5f 48 41 53 48  3d 33 64 64 35 37 35 32  |WEB_HASH=3dd5752|
00000220  32 0a 46 54 4c 5f 56 45  52 53 49 4f 4e 3d 76 35  |2.FTL_VERSION=v5|
00000230  2e 32 33 0a 46 54 4c 5f  42 52 41 4e 43 48 3d 6d  |.23.FTL_BRANCH=m|
00000240  61 73 74 65 72 0a 46 54  4c 5f 48 41 53 48 3d 64  |aster.FTL_HASH=d|
00000250  32 30 31 37 37 36 65 0a  47 49 54 48 55 42 5f 46  |201776e.GITHUB_F|
00000260  54 4c 5f 56 45 52 53 49  4f 4e 3d 76 35 2e 32 33  |TL_VERSION=v5.23|
00000270  0a 47 49 54 48 55 42 5f  46 54 4c 5f 48 41 53 48  |.GITHUB_FTL_HASH|
00000280  3d 31 61 31 31 34 31 33  33 0a                    |=1a114133.|
0000028a

t95x@aml-s9xx-box:/etc/pihole$ hd versions
00000000  43 4f 52 45 5f 56 45 52  53 49 4f 4e 3d 76 35 2e  |CORE_VERSION=v5.|
00000010  31 37 2e 32 0a 43 4f 52  45 5f 42 52 41 4e 43 48  |17.2.CORE_BRANCH|
00000020  3d 6d 61 73 74 65 72 0a  43 4f 52 45 5f 48 41 53  |=master.CORE_HAS|
00000030  48 3d 36 30 62 36 61 31  30 31 0a 47 49 54 48 55  |H=60b6a101.GITHU|
00000040  42 5f 43 4f 52 45 5f 56  45 52 53 49 4f 4e 3d 76  |B_CORE_VERSION=v|
00000050  35 2e 31 37 2e 32 0a 47  49 54 48 55 42 5f 43 4f  |5.17.2.GITHUB_CO|
00000060  52 45 5f 48 41 53 48 3d  36 30 62 36 61 31 30 31  |RE_HASH=60b6a101|
00000070  0a 57 45 42 5f 56 45 52  53 49 4f 4e 3d 76 35 2e  |.WEB_VERSION=v5.|
00000080  32 30 2e 32 0a 57 45 42  5f 42 52 41 4e 43 48 3d  |20.2.WEB_BRANCH=|
00000090  6d 61 73 74 65 72 0a 57  45 42 5f 48 41 53 48 3d  |master.WEB_HASH=|
000000a0  33 64 64 35 37 35 32 32  0a 47 49 54 48 55 42 5f  |3dd57522.GITHUB_|
000000b0  57 45 42 5f 56 45 52 53  49 4f 4e 3d 76 35 2e 32  |WEB_VERSION=v5.2|
000000c0  30 2e 32 0a 47 49 54 48  55 42 5f 57 45 42 5f 48  |0.2.GITHUB_WEB_H|
000000d0  41 53 48 3d 33 64 64 35  37 35 32 32 0a 46 54 4c  |ASH=3dd57522.FTL|
000000e0  5f 56 45 52 53 49 4f 4e  3d 76 35 2e 32 33 0a 46  |_VERSION=v5.23.F|
000000f0  54 4c 5f 42 52 41 4e 43  48 3d 6d 61 73 74 65 72  |TL_BRANCH=master|
00000100  0a 46 54 4c 5f 48 41 53  48 3d 64 32 30 31 37 37  |.FTL_HASH=d20177|
00000110  36 65 0a 47 49 54 48 55  42 5f 46 54 4c 5f 56 45  |6e.GITHUB_FTL_VE|
00000120  52 53 49 4f 4e 3d 76 35  2e 32 33 0a 47 49 54 48  |RSION=v5.23.GITH|
00000130  55 42 5f 46 54 4c 5f 48  41 53 48 3d 31 61 31 31  |UB_FTL_HASH=1a11|
00000140  34 31 33 33 0a                                    |4133.|
00000145

Do the 325 NUL characters at the start of versions.bak indicate any problem perhaps?

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