Pi-Hole update process

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
slimbrick
Posts: 6
Joined: Fri Dec 29, 2017 7:07 pm

Pi-Hole update process

Post by slimbrick »

I have a Raspberry Pi 2 that, using DietPi, I run both Pi-Hole and a Plex Server on. Through the Pi-Hole web administration interface, I see there is a pending update to Pi-Hole. The command to perform this update is "pihole -up" from the command line. I had a problem with this once and had to reinstall everything. So, before I try updating Pi-Hole through the command line again, I'd like to ask if it will work given I installed the Pi-Hole using dietpi-software?

Thanks
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Pi-Hole update process

Post by johnvick »

All I can say is it works for me. Not too hard to reinstall if it doesn't work?

John
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Pi-Hole update process

Post by novitibo »

same here in v159
Pihole command pihole -up returns error
something about path var/www/pihole ... ../admin
I had to reinstall
gpioneer
Posts: 9
Joined: Sun Dec 24, 2017 11:27 am

Re: Pi-Hole update process

Post by gpioneer »

Yup, happened to me too a few days ago. It was a pretty fresh install with only pihole and Kodi so wasn't a big deal to reinstall, and I have no idea what happened, but pihole's web interface wasn't working anymore and I also couldn't use the -up command as above

According to Pi-hole Details
Updating PiHole:

PiHole overwrites the lighttpd.conf during updates, so please backup your lighttpd.conf before updating:

Backup lighttpd.conf

Code: Select all

mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bak 
PiHole can then be updated by running

Code: Select all

pihole -up
Restore lighttpd.conf

Code: Select all

mv /etc/lighttpd/lighttpd.conf.bak /etc/lighttpd/lighttpd.conf
so maybe that was the problem?
slimbrick
Posts: 6
Joined: Fri Dec 29, 2017 7:07 pm

Re: Pi-Hole update process

Post by slimbrick »

I actually performed the steps in gpioneer's reply to backup lighttpd.conf prior to updating. I ran pihole -up and I get the following errors about five minutes into the update:

Error: Could not update local repository. Contact support.

Unable to complete update, please contact Pi-hole Support


Pihole, including the web interface, is left in working order, but the update is not complete. It's a little frustrating and definitely confusing given that Pihole is such well-designed software that the update process doesn't quite work smoothly. I haven't yet tried to uninstall and reinstall through dietpi-software, but I think that is the next step.
User avatar
novitibo
Posts: 86
Joined: Mon Feb 29, 2016 5:11 pm

Re: Pi-Hole update process

Post by novitibo »

Same error here.
slimbrick
Posts: 6
Joined: Fri Dec 29, 2017 7:07 pm

Re: Pi-Hole update process

Post by slimbrick »

I sorted out how to do the pi-hole update with dietpi without error. I posted the info on a different forum (Pi-hole forum). Here is the link:
https://discourse.pi-hole.net/t/on-upda ... ory/6283/3

The process is straightforward and works.
Post Reply