phad icon indicating copy to clipboard operation
phad copied to clipboard

Phad not showing pihole as updated

Open ghost opened this issue 4 years ago • 6 comments

Today’s pihole 5.1 update isn’t showing as installed on screen still showing 5.0 as installed versions for web/FTL/pihole

ghost avatar Jul 16 '20 03:07 ghost

What does the output of pihole -v -f show?

bpennypacker avatar Jul 16 '20 13:07 bpennypacker

FTL version is v5.1 (Latest: v5.1)

ghost avatar Jul 16 '20 13:07 ghost

That should be reflected by phad, eventually. The version information is only checked once every 24 hours as it's something that doesn't change very often, and it also queries https://github.com/bpennypacker/phad/releases/latest for checking the latest version of phad itself. I suppose I could change that so that the pihole version is checked more often, like every hour, and github is only checked every 24 hours.

If it's still showing the old version for you and you want to force it to refresh, you can delete the file where phad keeps the version information (what data_file in phad.conf points to, /tmp/pihole.dat by default). If you do that then it should update the version the next time it cycles through fetching all the data from pihole.

bpennypacker avatar Jul 16 '20 13:07 bpennypacker

Ok in my config it says that file is in ./phad.dat so it’s in install dir not tmp I have removed the .dat file and it’s now correct on screen

ghost avatar Jul 16 '20 13:07 ghost

Great. I'll definitely look into refactoring the version checks to avoid this sort of confusion in the future.

bpennypacker avatar Jul 16 '20 13:07 bpennypacker

Great thank you! Appreciate the help

ghost avatar Jul 16 '20 14:07 ghost