Versions file error ? Pihole 5.14.1 on Raspi

Expected Behaviour:

Hello,
I've had Pihole on a Raspberry Pi for few years which work perfectly. But since a few I have the "Pi-hole · Update available!" message on the web panel.
I did an apt update & upgrade + pihole -up + reboot but it did not change anything

Hardware/System:
Raspberry pi 2B
Rasbian 10
Pihole 5.14.1

Actual Behaviour:


*u@pihole:~ $ pihole -v*
/usr/local/bin/pihole: line 31 : source: /etc/pihole/versions : *Can not execute the binary file [translated from "ne peut exécuter le fichier binaire"]*
  Pi-hole version is v5.14.1 (Latest: v5.17.2)
  web version is v5.20.2 (Latest: v5.20.2)
  FTL version is v5.23 (Latest: v5.23)

*u@pihole:~ $ sudo pihole -v*
/usr/local/bin/pihole: line  31 : source: /etc/pihole/versions : *Can not execute the binary file [translated from "ne peut exécuter le fichier binaire"]*
  Pi-hole version is v5.14.1 (Latest: v5.17.2)
  web version is v5.20.2 (Latest: v5.20.2)
  FTL version is v5.23 (Latest: v5.23)

The version file:


*u@pihole:~ $ ls -al /etc/pihole/versions*
-rw-r--r-- 1 root root 921 nov.   3 15:05 /etc/pihole/versions

*u@pihole:~ $ more /etc/pihole/versions*
***[blank line]***
***[blank line]***
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

Any idea ? Note that everything work fine, but I want to get rid of this update message :slight_smile:
Thanks for all.

Please follow our help template. In particular, the requested debug token.

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

Hello

Sorry, there is the debug file https://tricorder.pi-hole.net/0r97UqOj/

try pihole updatechecker ?

Hello,

I dont know what should be the expected output but I got this :


u@pihole:~ $ pihole updatechecker
/usr/local/bin/pihole: line 31 : source: /etc/pihole/versions : *Can not execute the binary file [translated from "ne peut exécuter le fichier binaire"]*
/usr/local/bin/pihole: line 31 : source: /etc/pihole/versions : *Can not execute the binary file [translated from "ne peut exécuter le fichier binaire"]*
u@pihole:~ $ sudo pihole updatechecker
/usr/local/bin/pihole: line 31 : source: /etc/pihole/versions : *Can not execute the binary file [translated from "ne peut exécuter le fichier binaire"]*

And I still have the "Pi-hole · Update available!" message on the web panel.

If it executes correctly, there should be no output.

Looks like your /etc/pihole/versions is corrupted and for some reason it's being read as a binary file.

Try to remove /etc/pihole/versions and run pihole updatechecker again.

Hello,

Thanks, it seems to work (or to removing the error message and the update message too).

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