[Solved] Pi-hole version on the fritz after lastupdate

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Pi-hole version on the fritz after last Diet-pi update

Post by johnvick »

kaptain_zero wrote:I'll have a look later, however another issue has cropped up.

I am not getting any statistics showing in the web consol. Perhaps this is related to my allowing the un-install to delete things, but I would have thought that Pi-Hole has started to write new logs?

I did not notice this yesterday, as I am used to having zero stats when it first starts up.... but today, things are still at zero, including the number of domains being blocked which shows as zero, yet in use, ADs are being blocked, so Pi-Hole must be working.
The stats can take forever to show if the log file gets too big. Delete the log and they should reappear.
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Pi-hole version on the fritz after last Diet-pi update

Post by kaptain_zero »

Everything in /var/log is empty... the file names are there, but zero data inside the logs.... this goes for ALL the logs....
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Pi-hole version on the fritz after last Diet-pi update

Post by Fourdee »

kaptain_zero wrote:Everything in /var/log is empty... the file names are there, but zero data inside the logs.... this goes for ALL the logs....
DietPi by default has Ramlog installed. All log files are mounted to RAM and cleared every hour.
http://dietpi.com/phpbb/viewtopic.php?f ... art=20#p68

The PiHole log files have an exclusion to the above Ramlog (/var/log/pihole), they are only cleared daily. So its most likely incorrect permissions on the file.

Check permissions with (should be www-data:www-data):

Code: Select all

ls -lha /var/log/pihole.log
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
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Pi-hole version on the fritz after last Diet-pi update

Post by kaptain_zero »

Permissions are:

root@DietPi:/var/log# ls -l pihole.log
-rwxrwxr-x 1 www-data www-data 0 Nov 10 14:27 pihole.log

Just to quickly get this done I did:

root@DietPi:/var/log# chmod 777 pihole.log

And after chmod it reads:

root@DietPi:/var/log# ls -l pihole.log
-rwxrwxrwx 1 www-data www-data 0 Nov 10 14:27 pihole.log

chmod appears to have had no effect on the problem. I wonder if I should just do a fresh install and get things back to normal? That would seem to be the "easy" way......


edit: I forgot to mention, it's not just the log... it's every data listing in the web consol:

0 Ads blocked today; 0 DNS inquiries; 0.0% of today's traffic is ads; 0 Domains being blocked
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Pi-hole version on the fritz after last Diet-pi update

Post by Fourdee »

I wonder if I should just do a fresh install and get things back to normal? That would seem to be the "easy" way......
Yep, never fails :)
kaptain_zero wrote: edit: I forgot to mention, it's not just the log... it's every data listing in the web consol:

0 Ads blocked today; 0 DNS inquiries; 0.0% of today's traffic is ads; 0 Domains being blocked
PiHole updates those stats by reading the logfile. So, possible the log file is not being updated correctly by dnsmasq.

Check the contents of /etc/dnsmasq.d/01-pihole.conf for logfile entry as per : https://github.com/pi-hole/pi-hole/blob ... e.conf#L45

Also, check dnsmasq is running with:

Code: Select all

systemctl status dnsmasq -l
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
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Pi-hole version on the fritz after last Diet-pi update

Post by kaptain_zero »

Hmmm... me thinks this does not look good.

root@DietPi:~# systemctl status dsnmasq -l
● dsnmasq.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
root@DietPi:~#
User avatar
kaptain_zero
Posts: 39
Joined: Tue Apr 12, 2016 2:51 am

Re: Pi-hole version on the fritz after last Diet-pi update

Post by kaptain_zero »

Argh.... it was all my fault in the first place!

Update to Dietpi V137 has come along and I reluctantly installed it but I uninstalled Pi-Hole first (which probably had no bearing on this). I updated to 137 and then selected Pi-Hole for installation. On the last update, things appeared to break, leaving me with a limping system, which, by the way, I did not fix, but simply left it limping until today.

During the installation of Pi-Hole, a screen pops up that asks you to select the network interface.... the last time I was updating I figured there was no point, as nothing had changed, and my ip address was set in the router etc, but in fact, hitting OK instead of cancel took me to new screens which had additional selections of DNS choice etc. and after following the bouncing ball, I was left with a perfectly working Pi-hole! The Web consol works correctly, all my stats show up as they should, and my chosen DNS is actually being used.

So I'm afraid, all that trouble earlier on can be blamed squarely on me and not Dietpi.

Regards

Kaptain "Doh....." Zero
Post Reply