PiHole update throwing errors

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

PiHole update throwing errors

Post by Zombievirus »

Hi,

I am running PiHole on a Raspberry Pi 1. The sole purpose of this Pi is to block ads so there is nothing else installed on this Pi.

I installed PiHole using dietpi-software not the official method. I am currently on v143.

On the Web Interface of PiHole i saw that updates were available. apt-get upgrade and dietpi-update didn't update the PiHole installation so i decided to update using the official method pihole -up

This method did update the PiHole Core but not the Web Interface. Here is the output:

1st try:

Code: Select all

root@DietPi:~# pihole -up
::: Checking for updates...
::: Pi-hole Core:   update available
::: Web Interface:  update available
:::
::: Updating Everything
:::
::: Checking for existing repository...
:::     Updating repository in /etc/.pihole... done!
:::
::: You are root.
::: --unattended passed to install script, no whiptail dialogs will be displayed
::: Verifying free disk space...
:::
::: Updating local cache of available packages... done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Pi-hole installation...
:::    Checking for apt-utils... installed!
:::    Checking for debconf... installed!
:::    Checking for dhcpcd5... installed!
:::    Checking for git... installed!
:::    Checking for whiptail... installed!
:::
::: Checking for existing repository...
:::    Updating repo in /etc/.pihole... done!
:::
::: Checking for existing repository...
:::    Updating repo in /var/www/html/admin...!!! Unable to clone https://github                                                                                                                                                             .com/pi-hole/AdminLTE.git into /var/www/html/admin, unable to continue.
Unable to complete update, contact Pi-hole

2nd try (different output):

Code: Select all

root@DietPi:~# pihole -up
::: Checking for updates...
::: Pi-hole Core:   up to date
::: Web Interface:  update available
:::
::: Pi-hole Web Admin files out of date
:::
::: Checking for existing repository...
:::     Updating repository in /var/www/html/admin...
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@DietPi.(none)')
Cannot save the current index state
error: Your local changes to the following files would be overwritten by merge:
        README.md
        api.php
        help.php
        list.php
        queries.php
        scripts/pi-hole/js/footer.js
        scripts/pi-hole/js/gravity.js
        scripts/pi-hole/js/index.js
        scripts/pi-hole/js/list.js
        scripts/pi-hole/js/queries.js
        scripts/pi-hole/js/queryads.js
        scripts/pi-hole/js/settings.js
        scripts/pi-hole/php/add.php
        scripts/pi-hole/php/auth.php
        scripts/pi-hole/php/data.php
        scripts/pi-hole/php/get.php
        scripts/pi-hole/php/header.php
        scripts/pi-hole/php/loginpage.php
        scripts/pi-hole/php/password.php
        scripts/pi-hole/php/queryads.php
        scripts/pi-hole/php/savesettings.php
        scripts/pi-hole/php/sub.php
        settings.php
Please, commit your changes or stash them before you can merge.
Aborting
 done!
:::
::: Web Admin version is now at v2.3.1
::: If you had made any changes in '/var/www/html/admin/', they have been stashed using 'git stash'

root@DietPi:~#

I think this happens because of the Lighttpd adjustements that DietPi makes after the PiHole installation but it's just a guess.

Can you guys help me get rid of this problem?

How can i update the Web Interface version?

Thank You.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiHole update throwing errors

Post by Fourdee »

Zombievirus wrote:I think this happens because of the Lighttpd adjustements that DietPi makes after the PiHole installation but it's just a guess.
This is exactly why the DietPi-Software installation has been modified. PiHole wants to overwrite the lighttpd.conf, , and set it for sole use with PiHole:
https://github.com/pi-hole/pi-hole/blob ... ll.sh#L646

This breaks other web based programs you may wish to use (eg: nextcloud etc).

Zombie, I think a uninstall > reinstall of PiHole in dietpi-software should resolve this. If not, let me know and i'll replicate your installation and attempt a solution.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

Re: PiHole update throwing errors

Post by Zombievirus »

Hi FourDee,

Yes, reinstalling PiHole fixes the issue.

But what if one has setup PiHole in a specific way using the PiHole Settings or has Black/Whitelisted sites?

This unistall/reinstall method will force them to setup PiHole all over again i guess as i wasn't able to find any "Backup Settings" option.

Please also check my Thread DietPi Improvements where i have listed a few things the DietPi community can definitely benefit from.

Regards
Post Reply