Please follow the below template, it will help us to help you!
Tried to update with pihole -up
Expected Behaviour:
I expected pihole to update
Actual Behaviour:
FTL and Web interface didn't update but core did.
Tried to update with pihole -up
I expected pihole to update
FTL and Web interface didn't update but core did.
In your debug log, core and FTL are latest, and web is not the latest:
*** [ DIAGNOSING ]: Core version
[i] Core: v4.4 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.4-0-g9e49077
*** [ DIAGNOSING ]: Web version
[i] Web: v4.3.2 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
[i] Branch: master
[i] Commit: v4.3.2-0-g38d8e77f
*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.3.1
Please post the output of pihole -up
pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: update available
curl: (22) The requested URL returned error: 404 Not Found
[i] FTL: update available
[i] Pi-hole Web Admin files out of date, updating local repo.
[✓] Check for existing repository in /var/www/html/admin
[i] Update repo in /var/www/html/admin...
: Could not update local repository. Contact support.
Can you get the output from the below?
cd /var/www/html/admin
sudo git status
sudo git branch -a
sudo git status
On branch master
Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working tree clean
:/var/www/html/admin $ sudo git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Thanks for the help by the way. Also, I've seen some advice to delete /etc/.pihole/.git/index.lock but I was unable to do so.
Try:
cd /var/www/html/admin
sudo git fetch
sudo git merge
pi@UniFiPi:/var/www/html/admin $ cd /var/www/html/admin
pi@UniFiPi:/var/www/html/admin $ sudo git fetch
pi@UniFiPi:/var/www/html/admin $ sudo git merge
Updating 38d8e77f..62f2ffc8
pi@UniFiPi:/var/www/html/admin $ pihole -up
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: update available
curl: (22) The requested URL returned error: 404 Not Found
[i] FTL: update available
[i] Pi-hole Web Admin files out of date, updating local repo.
[✓] Check for existing repository in /var/www/html/admin
[i] Update repo in /var/www/html/admin...
: Could not update local repository. Contact support.
Okay, try:
cd /var/www/html/admin
sudo git remote -v
That will tell us the remote URLs.
Does a second try at git fetch
and git merge
show the same Updating 38d8e77f…62f2ffc8
output?
origin GitHub - pi-hole/web: Pi-hole Dashboard for stats and more (fetch)
origin GitHub - pi-hole/web: Pi-hole Dashboard for stats and more (push)
Yes, updating same.
Okay, then something has caused a read-only situation. You can check with sudo mount | grep '(ro'
to see if anything is showing as mounted read-only.
We've seen this same exact situation before at Pihole -up not updating pihole
The solution there may be the one for you as well.
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
Try the instructions from PromoFaux in the linked issue.
something is wrong in this formatting- GitHub - pi-hole/web: Pi-hole Dashboard for stats and more /var/www/html/admin
sudo git clone GitHub - pi-hole/web: Pi-hole Dashboard for stats and more
fatal: could not create work tree dir 'adminlte': No such file or directory
The command you should be running is:
sudo git clone https://github.com/pi-hole/adminlte /var/www/html/admin
Ok that did it! Thanks to you both.
Update Complete!
Current Pi-hole version is v4.4
Current AdminLTE version is v4.3.3
Current FTL version is v4.3.1
pi@UniFiPi:~ $ pihole -up
[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!
For anyone who follows behind-
sudo rm -rf /var/www/html/admin
sudo git clone https://github.com/pi-hole/adminlte /var/www/html/admin
pihole -up
Between those first two, I also did sudo apt-get update and sudo apt-get upgrade and sudo apt autoremove, but not sure if any of that was necessary.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.