Package Details: pi-hole-server 4.3.2-7

Git Clone URL: (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:
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:
Checking /etc/shadow, the user http had a trailing 1:

$ sudo cat /etc/shadow | grep http

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 ( 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 is

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 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:

Blocks extra content:

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] from
Feb 18 11:12:00 dnsmasq[239]: /etc/pihole/gravity.list is
Feb 18 11:12:02 dnsmasq[239]: query[A] from
Feb 18 11:12:02 dnsmasq[239]: cached is
Feb 18 11:12:02 dnsmasq[239]: cached is

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.

Then have a special pihole.conf there:

[tdkl@pogo log]$ cat /etc/dnsmasq.d/pihole.conf

So no clue. I've checked the 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

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

But running the gives out 0:

[tdkl@pogo ~]$ /usr/bin/ -j

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 a bit :