Update not showing latest version

I the Pi-Hole UI I have a message that "Pi-Hole: Update available", so I run pihole -up from console. This gives the following:

$ 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!

but, if I then run

$ pihole -v
  Pi-hole version is v5.17.3 (Latest: v5.18.2)
  web version is v5.21 (Latest: v5.21)
  FTL version is v5.25.2 (Latest: v5.25.2)

and even after a reboot, the Pi-Hole UI says the update is available

have run pihole -d and log is at https://tricorder.pi-hole.net/MKKeDWwJ/

installed on a Raspberry Pi 3 running bullseye, and everything seems to be working fine, so not particularly concerned

Your debug log shows Pi-hole is actually up to date:

*** [ DIAGNOSING ]: Core version
[✓] Version: v5.18.2
(...)

*** [ DIAGNOSING ]: Web version
[✓] Version: v5.21
(...)

*** [ DIAGNOSING ]: FTL version
[✓] Version: v5.25.2
(...)

But for some reason the file /etc/pihole/versions wasn't updated.

On the console, run pihole updatechecker, then try pihole -v again.

even weirder:

jc@pi3:~ $ pihole updatechecker
jc@pi3:~ $ pihole -v
  Pi-hole version is v5.17.3 (Latest: v5.18.2)
  web version is v5.21 (Latest: v5.21)
  FTL version is v5.25.2 (Latest: v5.25.2)

but looking at the versions file:

ORE_BRANCH=master
CORE_HASH=5490a6ea
GITHUB_CORE_VERSION=v5.18.2
GITHUB_CORE_HASH=5490a6ea

so pihole -v is lying, even after a reboot

I'll wait for 5.19.x and see if that fixes!

This post from april talks about the same issue. Sandeep_Asrani had the following fix.

https://discourse.pi-hole.net/t/pihole-up-wont-update-past-core-5-17-2/69315/3

Sandeep_Asrani

Apr 21

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

This fixed it for me.

1 Like

fixed it for me as well, thanks (my search-fu failed me, I was obviously looking for the wrong things)

Something is wrong with your versions file.

Looking at the file, I noticed its size is 620 bytes:

-rw-r--r-- 1 root root 620 May 26 14:18 /etc/pihole/versions

The contents are:

CORE_VERSION=v5.17.3
CORE_BRANCH=master
CORE_HASH=5490a6ea
GITHUB_CORE_VERSION=v5.18.2
GITHUB_CORE_HASH=5490a6ea
WEB_VERSION=v5.21
WEB_BRANCH=master
WEB_HASH=be05b0f6
GITHUB_WEB_VERSION=v5.21
GITHUB_WEB_HASH=be05b0f6
FTL_VERSION=v5.25.2
FTL_BRANCH=master
FTL_HASH=8943e260
GITHUB_FTL_VERSION=v5.25.2
GITHUB_FTL_HASH=8943e260

(in this case, the file size should be around 325 bytes)

Try the steps suggested above by CallMeCurious to move the old file and create a new one.

1 Like

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