Package Details: pi-hole-server 4.3.2-6

Git Clone URL: https://aur.archlinux.org/pi-hole-server.git (read-only)
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: 62
Popularity: 2.91
First Submitted: 2016-01-13 12:50
Last Updated: 2019-10-05 17:59

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.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

beedaddy commented on 2019-12-03 07:52

I have a problem with a fresh installation on AArch64 using nginx as web server. The status on the admin page is "unknown" and it is not possible to save changes in settings. I set it up step by step according to the pi-hole Arch Wiki page.

The pihole-FTL service starts without problems. Also, the http user is fine (not in expired state).

The only error I noticed in journal log is:

[error] 448#448: *2498 FastCGI sent in stderr: "PHP message: PHP Notice  Trying to access array offset on value of type null /srv/http/pihole/admin/settings.php on line 23PHP message: PHP Notice:  Trying to access array offset on value of type null in /srv/http/pihole/admin/settings.php on line 23" while reading upstream, client: 192.168.178.202, server: _, request: "GET /admin/settings.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "myhost.local.net", referrer: "http://myhost.local.net/admin/"

Perhaps it's a problem with php 7.4?

EDIT: Indeed, downgrading to php 7.3 resolves the issue.

max.bra commented on 2019-11-19 10:06

so, assuming you have also done this (https://wiki.archlinux.org/index.php/Pi-hole#Set-up_PHP) and this (https://wiki.archlinux.org/index.php/Pi-hole#Set-up_lighttpd) you should only need to restart lighttpd...

DNAblue2112 commented on 2019-11-19 10:01

yes, I have installed and reinstalled them both in my troubleshooting efforts

EDIT: it seems to have started working, I was just restarting services and something must have reloaded its config or something because its all working fine now.

max.bra commented on 2019-11-19 09:50

mmm, are sqlite AND php-sqlite installed?

DNAblue2112 commented on 2019-11-19 09:44

I checked the permissions, they all look good.

It seems that it is an SQLite issue, I have followed the guide at https://wiki.archlinux.org/index.php/PHP#Sqlite yet I still found this error

Nov 19 20:11:36 server lighttpd-angel[268]: 2019-11-19 20:11:36: (mod_fastcgi.c.421) FastCGI-stderr: PHP Fatal error: Uncaught Error: Class 'SQLite3' not found in /srv/http/pihole/admin/api_db.php:71

Nov 19 20:11:36 server lighttpd-angel[268]: 2019-11-19 20:11:36: (mod_fastcgi.c.421) FastCGI-stderr: Stack trace:

Nov 19 20:11:36 server lighttpd-angel[268]: 2019-11-19 20:11:36: (mod_fastcgi.c.421) FastCGI-stderr: #0 /srv/http/pihole/admin/api_db.php(86): SQLite3_connect(true)

Nov 19 20:11:36 server lighttpd-angel[268]: 2019-11-19 20:11:36: (mod_fastcgi.c.421) FastCGI-stderr: #1 {main}

Nov 19 20:11:36 server lighttpd-angel[268]: 2019-11-19 20:11:36: (mod_fastcgi.c.421) FastCGI-stderr: thrown in /srv/http/pihole/admin/api_db.php on line 71

max.bra commented on 2019-11-19 09:38

hi DNAblue2112, seems a permission problem. check /etc/pihole/* for files that are not owned by pihole user.
'journalctl -b' should provide any useful information.

DNAblue2112 commented on 2019-11-19 09:27

I receive an error whenever I attempt to access the networks tab or the long term data query log. Both errors are because of a 500 response from api_db.php In chrome console the error is as follows: api_db.php?network&_=1574155379457:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error) I have made sure that SQLite is installed and enabled in PHP. Most functionality works so its not a massive problem but it would be nice to be able to use all of the features. What other error logs can I provide to help resolve this?

alephZer0 commented on 2019-10-16 21:57

Thank you so much @Prakkie and @max.bra, the problem is solved now!

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

hi alephZer0, please check the first pinned comment on this page.

If it's not your case, can you pastebin (or any other service) this?

    ls -l /etc/pihole

Prakkie commented on 2019-10-16 15:29

@alephZero, did you happen to check pinned comment and try?

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