Package Details: pi-hole-server 4.3.2-7

Git Clone URL: https://aur.archlinux.org/pi-hole-server.git (read-only, click to copy)
Package Base: pi-hole-server
Description: The Pi-hole is an advertising-aware DNS/Web server. Arch adaptation for lan wide DNS server.
Upstream URL: https://github.com/pi-hole/pi-hole
Keywords: ad block pi-hole
Licenses: EUPL-1.1
Conflicts: pi-hole-standalone
Submitter: max.bra
Maintainer: max.bra (graysky)
Last Packager: max.bra
Votes: 60
Popularity: 0.59
First Submitted: 2016-01-13 12:50
Last Updated: 2020-02-18 20:03

Pinned Comments

max.bra commented on 2019-10-16 15:28

Since switching to pihole user for pihole-FTL - long term data is not retained on my machine.

sir_randomuser said: For some reason account http has expired, which was the root cause. Seems to be due to a recent systemd change: https://bugs.archlinux.org/task/63704
Checking /etc/shadow, the user http had a trailing 1:

$ sudo cat /etc/shadow | grep http
http:!!:18174::::::1:

Removing the expiration date has resolved it:

$ sudo chage --expiredate -1 http

max.bra commented on 2018-02-09 16:45

ArchLinux Pi-hole is not officially supported by Pi-hole project. In case of bugs and malfunctions please DO NOT file a report upstream.

First of all check if the wiki (https://wiki.archlinux.org/index.php/Pi-hole) can help then ask here for assistance and tips.
When it will be excluded that the problem does not depend on ArchLinux we will file a bug upstream.

tdkl commented on 2016-02-18 11:01

@max.bra : it seems the main issue is that in my locale:

[tdkl@pogo ~]$ date "+%b %e"
feb 18

Gives out month name started with a non-capital letter.

While the ones in pihole.log are started with the capital letter for the short name of the month :

Feb 18 11:59:43 dnsmasq[239]: cached pool.ntp.org is 46.54.225.12

So I'd have to change the date output somehow to put out the capital letter to avoid changing the date locale.

Linux ¯\_(ツ)_/¯

tdkl commented on 2016-02-18 10:56

@max.bra : bingo, I think you've found the issue.

[tdkl@pogo log]$ cat "/run/log/pihole.log" | grep "$today" | awk '/query/ {print $6}' | wc -l

Although I derped and forgot to change the variable for $today to an actual value when testing in terminal, just as for pihole.log, this didn't result in 0 value. But if I use the date on my machine :

[tdkl@pogo ~]$ date "+%b %e"
feb 18

Which is a result of my locale. I changed locales a bit when setting up subliminal package, so I guess I need to change the date one back to UTF8.en.

Thanks for the time and the tip :]

max.bra commented on 2016-02-18 10:49

@tdkl (second-last)
given this:
> [tdkl@pogo log]$ cat "/run/log/pihole.log" | grep "$today" | awk '/query/ {print $6}' | wc -l
> 4000

it is definitely a bc rounding problem, but why?
your locale/locale conf?

max.bra commented on 2016-02-18 10:41

@tdkl (last one)
I saw an excessive filtration and was considering removing the latest updates of the list; given the reporting and the commits I do it as soon as possible.

tdkl commented on 2016-02-18 10:32

@max.bra: Wanted to report this separately, there were 2 commits who remove 2 default lists. One of them is empty, but one of them breaks sites. I was wondering why http://feedly.com was suddenly down for couple days, but didn't thought it could be the pihole blocking it. After removing the site, I could access it again. So IMHO those two commits should be pushed as an update.

Empty list: https://github.com/pi-hole/pi-hole/commit/c4fc2e089d78daef76a10fb60eb10f568013b956

Blocks extra content: https://github.com/pi-hole/pi-hole/commit/f8897942f3e7e13335247af7a7ada666349a000f

tdkl commented on 2016-02-18 10:31

@max.bra : Nope, queries are logged fine to /run/log/pihole.log

[tdkl@pogo log]$ tail -n5 pihole.log
Feb 18 11:12:00 dnsmasq[239]: query[A] vortex-win.data.microsoft.com from 192.168.1.20
Feb 18 11:12:00 dnsmasq[239]: /etc/pihole/gravity.list vortex-win.data.microsoft.com is 192.168.1.2
Feb 18 11:12:02 dnsmasq[239]: query[A] pool.ntp.org from 192.168.1.50
Feb 18 11:12:02 dnsmasq[239]: cached pool.ntp.org is 93.103.22.152
Feb 18 11:12:02 dnsmasq[239]: cached pool.ntp.org is 46.54.225.12

Also nothing changed regarding dnsmasq.conf. I use an additional .conf for pihole, so I've added this at the end of dnsmasq.conf:

# Include another lot of configuration options.
conf-dir=/etc/dnsmasq.d

Then have a special pihole.conf there:

[tdkl@pogo log]$ cat /etc/dnsmasq.d/pihole.conf
addn-hosts=/etc/pihole/gravity.list
cache-size=10000
log-queries
log-facility=/run/log/pihole.log
log-async

So no clue. I've checked the chronometer.sh and piLog var is set to /run/log/pihole.log. Running the part of the function CalcQueriesToday() manually gives out proper result:

[tdkl@pogo log]$ cat "/run/log/pihole.log" | grep "$today" | awk '/query/ {print $6}' | wc -l
4000

Function CalcPercentBlockedToday() gives out 0, because apparently $queriesToday calculated in upper function is 0.

But running the chronometer.sh gives out 0:

[tdkl@pogo ~]$ /usr/bin/chronometer.sh -j
{"domains_being_blocked":"145787","dns_queries_today":"0","ads_blocked_today":"240","ads_percentage_today":"0"}

Shouldn't also be a read permission issue for pihole.log:
-rw-r--r-- 1 dnsmasq root 1061770 feb 18 11:25 pihole.log

max.bra commented on 2016-02-17 21:41

weird... does your dnsmasq log queries to /run/log/pihole.log?
maybe an unintentional overwriting/modification of main .conf or include part?

tdkl commented on 2016-02-17 15:01

@max.bra : even after one day, those numbers are at zero, while the ads blocked indicator increments. Not a big deal though, will see how it behaves in the future.

max.bra commented on 2016-02-16 21:30

@tdkl: no, admin website regular here...
maybe your log was truncated at that precise moment?

tdkl commented on 2016-02-16 20:07

@max.bra: do you also have 0 dns queries and 0 traffic % displayed after the 2.5.2 update in the Pi-hole admin website ? Seems they played with the chronometer.sh a bit : https://github.com/pi-hole/pi-hole/commit/7116634739285197003dc01d02d76217d02418b3