PiHole Dashboard fails to load

Expected Behaviour:

Dashboard supposed to load properly

Actual Behaviour:

Blank screen is loaded

Debug Token:

https://tricorder.pi-hole.net/0itpXFUA/

I recently updated PiHole using the built-in update command and the web interface has been broken since, I'm assuming it worked before but to be honest I hadn't checked in a while.

This is the error in Chrome Dev Tools

GET http://192.168.100.91/admin/ net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)

Tired opening the webpage in Firefox, the page partially loads.

I have tried using pihole -r to reconfigure and reset PiHole. I have also tried completely reinstalling PiHole too. It's still the same.

Can anyone help regarding this? Any steps I could take? I'm unable to do anything since most of the admin tool have been taken to the web ui, even the blocklist list.

Please provide a fresh debug token. Your old token has expired.

https://tricorder.pi-hole.net/3YyVOy3u/

You have errors showing in your lighttpd log. I don't know the cause, but I'll post them here and perhaps another team member or user will have some insight:

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r--r-- 1 www-data www-data 590 May 17 20:06 /var/log/lighttpd/error.log
   -----head of error.log------
   2022-05-15 00:00:03: (server.c.1759) logfiles cycled UID = 0 PID = 18944 
   2022-05-17 20:06:23: (http-header-glue.c.1250) read(): Connection reset by peer 6 10 
   2022-05-17 20:06:23: (gw_backend.c.2149) response not received, request sent: 488 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, closing connection 
   2022-05-17 20:06:23: (http-header-glue.c.1250) read(): Connection reset by peer 6 10 
   2022-05-17 20:06:23: (gw_backend.c.2149) response not received, request sent: 488 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, closing connection 

   -----tail of error.log------
   2022-05-15 00:00:03: (server.c.1759) logfiles cycled UID = 0 PID = 18944 
   2022-05-17 20:06:23: (http-header-glue.c.1250) read(): Connection reset by peer 6 10 
   2022-05-17 20:06:23: (gw_backend.c.2149) response not received, request sent: 488 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, closing connection 
   2022-05-17 20:06:23: (http-header-glue.c.1250) read(): Connection reset by peer 6 10 
   2022-05-17 20:06:23: (gw_backend.c.2149) response not received, request sent: 488 on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, closing connection 

Thank you.
I'd also like to mention, sometimes a different error message shows up

   2022-05-17 20:15:50: (gw_backend.c.2154) response already sent out, but backend returned error on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, terminating connection
   2022-05-17 20:16:26: (http-header-glue.c.1250) read(): Connection reset by peer 6 13
   2022-05-17 20:16:26: (gw_backend.c.2154) response already sent out, but backend returned error on socket: unix:/var/run/lighttpd/php.socket-0 for /admin/index.php?, terminating connection

Probably reinstalling PHP works:

apt install --reinstall $(dpkg --get-selections 'php*' | awk '{print $1}')
systemctl restart lighttpd
1 Like

Hi, I ran these commands and reinstalled PHP. The web interface is still broken.

If reinstalling doesnt work, you could try purge/uninstall them all including lighttpd with below:

sudo apt purge $(dpkg --get-selections 'php*' | awk '{print $1}') lighttpd

Run below one and select repair to have them installed again:

pihole -r

Still didn't work. It's the exact same.

lsb_release -d

apt policy $(dpkg --get-selections 'php*' | awk '{print $1}') lighttpd

???

Description:    Raspbian GNU/Linux 10 (buster)

Device is a Raspberry Pi Zero W.

Summary
php-cgi:
  Installed: 2:7.3+69
  Candidate: 2:7.3+69
  Version table:
 *** 2:7.3+69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php-common:
  Installed: 2:69
  Candidate: 2:69
  Version table:
 *** 2:69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php-intl:
  Installed: 2:7.3+69
  Candidate: 2:7.3+69
  Version table:
 *** 2:7.3+69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php-json:
  Installed: 2:7.3+69
  Candidate: 2:7.3+69
  Version table:
 *** 2:7.3+69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php-sqlite3:
  Installed: 2:7.3+69
  Candidate: 2:7.3+69
  Version table:
 *** 2:7.3+69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php-xml:
  Installed: 2:7.3+69
  Candidate: 2:7.3+69
  Version table:
 *** 2:7.3+69 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-cgi:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-cli:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-common:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-intl:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-json:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-opcache:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-readline:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-sqlite3:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
php7.3-xml:
  Installed: 7.3.31-1~deb10u1
  Candidate: 7.3.31-1~deb10u1
  Version table:
 *** 7.3.31-1~deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
lighttpd:
  Installed: 1.4.53-4+deb10u2
  Candidate: 1.4.53-4+deb10u2
  Version table:
 *** 1.4.53-4+deb10u2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status

Check if your experiencing under-voltage/brownouts:

No output for the first two commands. The last output was the same as in the thread.

throttled=0x0

Another thing to mention, everytime something is installed using apt, it is killed at the Processing triggers for man-db (2.8.5-2) part, presumably due to lack of memory. Shouldn't be relevant but thought I'd mention it.

If suspect lack of memory, also check below for OOM and other kernel messages:

There are quite a few kills due to the out of memory error, but its all related to mandb. I have increased the swap size to 1gig. I'll try to reduce video memory.

You can probably tweak the memory split as well for your Zero to free some more RAM to be used by the OS (if you dont run a desktop or other graphical applications):

Not sure if apt will complete the operations successfully if this part fails.

Now that I've added additional swap, should I try reinstalling PHP again?