Pihole XU4 v141

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Pihole XU4 v141

Post by Fourdee »

johnvick wrote:Thanks Fourdee - I'll maybe take you up on this but I've got some more testing to do first as last night I found that the Pi3 has a similar problem now - in short, if I uninstall a working pihole and reinstall, it stops working. Same on the two devices. I'll test this on the Banana Pi later today and see if the same happens on this.

John
Hi John,

Yep, no worries, just let me know.

The uninstall code for PiHole uses the PiHole binary and their uninstall function (and a few extras):
https://github.com/Fourdee/DietPi/blob/ ... 9283-L9293

It may be worth running pihole uninstall manually, and seeing if any errors occur:
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.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Pihole XU4 v141

Post by johnvick »

Further testing on Orange Pi Zero and Banana Pi M1 - pihole uninstalled and reinstalled and is working fine on both. So something wrong with XU4 and Pi3. The Pi3 is for mucking around with so no loss. I think I'll need to reflash the XU4 and start again given your recent comments about file corruption on this image.

If I take this route would backing up the system, reflashing and then restoring the backup be of any use or would this simply restore the corrupted files?

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

Re: Pihole XU4 v141

Post by johnvick »

Just got it working if not entirely sure how. I saw on the screen that php-cgi wasn't installed (I was sure it was) so I updated all the php7.0 components. I installed by the curl method but same result. I uninstalled by pihole uninstall. I then tried another install using dietpi-software and it ran to the end this time.

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

Re: Pihole XU4 v141

Post by Fourdee »

johnvick wrote:Just got it working if not entirely sure how. I saw on the screen that php-cgi wasn't installed (I was sure it was) so I updated all the php7.0 components. I installed by the curl method but same result. I uninstalled by pihole uninstall. I then tried another install using dietpi-software and it ran to the end this time.

John
Hi John,

Didn't think to check php7 packages, good find!. Great to hear its now working.

Ah yes, PiHole installs php-cgi but that doesn't exist on Jessie, its php5-cli. On RPi Stretch, php7.0-cli gets pulled in with php-cgi.

Odroid C2:

Code: Select all

root@DietPi:~# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@DietPi:~# apt-cache search php-cli
php-google-api-php-client - Google APIs client library for PHP
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.
Post Reply