Pihole v5.0 Errors

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

CentOS 7
RPI4
Pihole install works installs without error. I should be seeing in the Web Interface Active and FTL is Online.

Actual Behaviour:

Status in Web Interface is unknown.
FTL is Offline.
DNS service is not running.

Debug Token:

https://tricorder.pi-hole.net/gspye21u35

Have you configured your firewall?

see: Prerequisites - Pi-hole documentation

Using iptables ipv4:

:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [2593:381228]
:DOCKER - [0:0]
:DOCKER-ISOLATION - [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j LOG --log-level 7 --log-prefix "Accept Related, Established"
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m multiport --dports 80,443 -j LOG --log-level 7 --log-prefix "HTTP/S"
-A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
-A INPUT -i tun0 -p tcp --dport 53 -j LOG --log-level 7 --log-prefix "DNS TCP"
-A INPUT -i tun0 -p tcp --dport 53 -j ACCEPT
-A INPUT -i tun0 -p udp --dport 53 -j LOG --log-level 7 --log-prefix "DNS UDP"
-A INPUT -i tun0 -p udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2222 -j LOG --log-level 7 --log-prefix "Accept SSH"
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2222 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10050 -j LOG --log-level 7 --log-prefix "Zabbix Agent"
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10051 -j LOG --log-level 7 --log-prefix "Zabbix Server"
-A INPUT -p tcp -m tcp --dport 10051 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8/0 -j LOG --log-level 7 --log-prefix "Accept Ping"
-A INPUT -p icmp -m icmp --icmp-type 8/0 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 11/0 -j LOG --log-level 7 --log-prefix "Accept time icmp"
-A INPUT -p icmp -m icmp --icmp-type 11/0 -j ACCEPT
-A INPUT -j LOG --log-level 7 --log-prefix "DROP all else"
-A INPUT -j DROP
-A FORWARD -j DOCKER-ISOLATION
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A DOCKER-ISOLATION -j RETURN
COMMIT

My appologies, I missed the obvious. CentOS is only supported on x86_64

see: Prerequisites - Pi-hole documentation

So is that it?

The install was able to find arm packages for everything and I got to the point of signing into the Web Interface.

The only thing that is left is working out why it cannot save setting changes, be viewed as active, FTL offline and DNS service not running.

Not officially supported does not mean it will not work.. but may require additional tweaks and manual edits which is beyond the scope if support in most cases.

With reviewing your debug log, the next logical step I would recommend is getting your PHP version updated to a version that is not EOL. You are on PHP 5.4.16 which has been end-of-life since Sept. 2015.

I would try to get into the PHP 7.x versions if possible.

if you review your logs at /var/log/lighttpd/error.log you will notice some PHP errors that are most likely related to your PHP version being very out of date.

Hope this helps.

That is where I am stuck.

I am on a version of Zabbix that will break /not supported if I upgrade to PHP7.X.

(mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: file(http://127.0.0.1:80/admin/scripts/pi-hole/php/queryads.php?domain=localhost&bp): failed to open stream: HTTP request failed! in /var/www/html/pihole/index.php on line 147
2020-06-23 14:55:03: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 148
2020-06-23 14:55:03: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 148
2020-06-23 14:56:20: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 278
2020-06-23 14:56:20: (mod_fastcgi.c.421) FastCGI-stderr: PHP Fatal error: require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/zabbix/include/classes/core/ZBase.php on line 278

In that situation my recommendation would be to purchase another pi with a wired connection and install one of the supported ARM distro I have linked above. Likely cheaper than your Zabbix support.

EDIT: you could run cli-only if you can live without the frontend.

Is the front end the only part you think will be the issue or should I still expect issues without the Web Interface?

The frontend is the web interface. By cli-only I mean command line only.

Right. I guess would you still anticipate install problems if I only went cli-only?

Other than the web interface.. is the project working?
see: Post-Install - Pi-hole documentation

also some cli docs: Redirecting...

Am I right in seeing there is no cli documentation for the dhcp portion?

Correct. I am going to mark this as solved.