Pihole -g works, but not using GUI

pihole -g works, but not using GUI

[✗] Unable to move blacklist.txt to /etc/pihole
[✗] Unable to move pihole.3.accretionDisc.txt from /etc/pihole
mv: cannot stat '/etc/pihole/pihole.3.accretionDisc.txt': No such file or directory

Debug token needed.

[root@ArchPiHole pihole]# pihole -d
Pi-hole debug options are disabled.

ArchLinux distribution of Pi-hole is not supported by official project and this debug report CAN NOT be uploaded to their debug team.
Follow instructions carefully on the project wiki page (https://wiki.archlinux.org/index.php/Pi-hole) and please refer to AUR package web page for support and debugging (https://aur.archlinux.org/packages/pi-hole-server).

Follow these directions.

1 Like

I followed direction from AUR (en) - pi-hole-server with exception that I am running PiHole as nonroot user.

I keep getting an error related to webservice unable to update anything in /etc/pihole directory.
[root@ArchPiHole ~]# tail -f /var/log/nginx/error.log
2020/03/25 09:28:15 [error] 307#307: *13 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(../custom_disable_timer): failed to open stream: Permission denied in /srv/http/pihole/admin/api.php on line 67" while reading response header from upstream, client: 192.168.10.90, server: _, request: "GET /admin/api.php?disable=10&token=03M0JsTs07cXRq8%2B4zUvHW1ZQCSPdl4rOR6pWp1aanI%3D HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.10.189", referrer: "http://192.168.10.189/admin/index.php"
2020/03/25 09:28:15 [error] 307#307: *13 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(../custom_disable_timer): failed to open stream: Permission denied in /srv/http/pihole/admin/api.php on line 67" while reading response header from upstream, client: 192.168.10.90, server: _, request: "GET /admin/api.php?disable=10&token=03M0JsTs07cXRq8%2B4zUvHW1ZQCSPdl4rOR6pWp1aanI%3D HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.10.189", referrer: "http://192.168.10.189/admin/index.php"
2020/03/25 09:28:15 [error] 307#307: *13 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(../custom_disable_timer): failed to open stream: Permission denied in /srv/http/pihole/admin/api.php on line 67" while reading response header from upstream, client: 192.168.10.90, server: _, request: "GET /admin/api.php?disable=10&token=03M0JsTs07cXRq8%2B4zUvHW1ZQCSPdl4rOR6pWp1aanI%3D HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.10.189", referrer: "http://192.168.10.189/admin/index.php"

How to do permission php-fpm correctly to allow changes to /etc/pihole directory and logfiles in /var/log/nginx/ directory?

Support for the Arch Linux distribution is done by the Arch Linux folks, not by the Pi-hole team.

1 Like

Ask the AUR maintainer.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.