Expected Behaviour:
[Expect the pihole to be tallying the number of DNS requests]
Actual Behaviour:
[The pi.hole/admin site is blank and every category (total queries, queries blocked, percent block) just shows "---" in the text. I think maybe the issue is with dnsmasq or lighttpd, but I don't know how to troubleshoot or fix that. Thanks in advance for any insights and help.]
Debug Token:
[https://tricorder.pi-hole.net/8hep2h9unh ]
jfb
October 10, 2020, 4:36am
2
Your debug log shows problems with your gravity database. Run the following commands from the Pi terminal and see if the problem resolves.
pihole -g -r
pihole restartdns
Thank you. That fixed the pihole working, however the dashboard is still broken, still showing "---" in the categories. Here is a new debug token: https://tricorder.pi-hole.net/mze65k82lz
jfb
October 10, 2020, 2:45pm
4
Are you running any browser ad blockers? If so, disable them for the web admin URL.
I had adblock plus. I disabled it and hard refreshed but still nothing. It also doesn't work on Mozilla or Edge, where I have no add-ons installed.
jfb
October 10, 2020, 3:18pm
6
Run the following command: sudo service lighttpd start
The run the following from the Pi terminal and post the complete output:
sudo systemctl status --full --no-pager lighttpd
jfb, thank you for your help, btw. Here's the output:
pi@raspberrypi:~ $ sudo service lighttpd start
pi@raspberrypi:~ $ sudo systemctl status --full --no-pager lighttpd
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-10-09 19:58:18 CDT; 14h ago
Main PID: 1612 (lighttpd)
Tasks: 6 (limit: 2200)
Memory: 16.9M
CGroup: /system.slice/lighttpd.service
├─1612 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
├─1625 /usr/bin/php-cgi
├─1641 /usr/bin/php-cgi
├─1642 /usr/bin/php-cgi
├─1643 /usr/bin/php-cgi
└─1644 /usr/bin/php-cgi
Oct 10 10:18:31 raspberrypi sudo[28035]: pam_unix(sudo:session): session closed for user root
Oct 10 10:18:33 raspberrypi sudo[28048]: www-data : TTY=unknown ; PWD=/var/www/h tml/admin ; USER=root ; COMMAND=/usr/local/bin/pihole enable
Oct 10 10:18:33 raspberrypi sudo[28048]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 10 10:18:33 raspberrypi sudo[28048]: pam_unix(sudo:session): session closed for user root
Oct 10 10:18:33 raspberrypi sudo[28061]: www-data : TTY=unknown ; PWD=/var/www/h tml/admin ; USER=root ; COMMAND=/usr/local/bin/pihole enable
Oct 10 10:18:33 raspberrypi sudo[28061]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 10 10:18:33 raspberrypi sudo[28061]: pam_unix(sudo:session): session closed for user root
Oct 10 10:18:35 raspberrypi sudo[28078]: www-data : TTY=unknown ; PWD=/var/www/h tml/admin ; USER=root ; COMMAND=/usr/local/bin/pihole status web
Oct 10 10:18:35 raspberrypi sudo[28078]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 10 10:18:35 raspberrypi sudo[28078]: pam_unix(sudo:session): session closed for user root
pi@raspberrypi:~ $
If it helps, when I click on the query log from the admin console, I get this error:
jfb
October 10, 2020, 3:51pm
9
Let's try a simple fix that may work - run pihole -r and select the "repair" option.
Unfortunately no change, even with a cache clear and hard refresh afterwards.
Check if the php-json package is installed.
I’m a bit inexperienced—what do I type to check that?
Okay, I think I've determined that I don't have php installed. How do I install it?
Scratch that. Running "sudo apt list --installed" returned this, which I think means that I do have php installed. Any ideas?
Yes, it looks like, php 7.3 is installed.
I don't know why it says json_encode is undefined.
Run php -m to see which modules are loaded.
Output of "php -m":
pi@raspberrypi:~ $ php -m
[PHP Modules]
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
intl
libxml
openssl
pcntl
pcre
PDO
Phar
posix
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
(I modified you reply for better readability. Use </> from the menu to insert shell output.)
Noticed that json is missing?! (I have it listed on my system)
I'm not sure how to make php aware of the package, maybe try to purge the php7.3-json package and re-install it?
I ran "sudo dpkg -P php7.3-json" and got this message:
Bump, any other ideas @jfb , @yubiuser ?