PiHole 5.0, Limited Web Interface

The issue I am facing:
The Web Interface is not displaying correctly:

Edit: DNS resolution and ad blocking seem to be working on multiple devices but I am also not seeing any stats - they are all blank (including number of domains in the block-list).

Debug token: https://tricorder.pi-hole.net/k9kctpgooi

I've confirmed Apache/Apache2 is not installed. I've also tried reinstalling Lighttpd and repairing Pi-Hole.

Details about my system:
Server: Pi Zero W (headless), Raspberry PI OS
Client: Windows 10, Chrome, Brave, IE

What I have changed since installing Pi-hole:

  • Previous SD card died
  • Fresh install of Raspberry Pi OS, Pi-hole 5.0, Log2Ram
  • Updated and upgraded Raspberry Pi OS
  • Added MAXDBDAYS=365, DBINTERVAL=30 to pihole-FTL

Are there any errors in
/var/log/lighttpd/error.log?

Debug log looks fine. Try F12 or developer mode on the browser and see if you can find why the CSS is not being used.

Thanks for the help!

Here is the full log since my install last night:

2020-06-30 22:28:09: (server.c.1464) server started (lighttpd/1.4.53)
2020-06-30 22:30:54: (server.c.2059) server stopped by UID = 0 PID = 1
2020-06-30 22:30:56: (server.c.1464) server started (lighttpd/1.4.53)
2020-06-30 22:37:16: (server.c.2059) server stopped by UID = 0 PID = 1
2020-06-30 22:42:24: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 08:33:24: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 08:33:53: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 08:43:19: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 08:43:21: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 08:54:46: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 08:56:10: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 08:58:43: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 08:58:44: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:05:30: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:05:32: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:12:41: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:12:42: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:13:53: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:15:27: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:16:49: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:18:23: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:18:24: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:18:26: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:19:09: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:19:11: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 09:24:22: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
2020-07-01 09:24:22: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
2020-07-01 09:24:24: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
2020-07-01 09:24:24: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
2020-07-01 09:53:55: (server.c.2059) server stopped by UID = 0 PID = 1
2020-07-01 09:53:55: (server.c.428) unlink failed for: /var/run/lighttpd.pid 2 No such file or directory
2020-07-01 09:53:57: (server.c.1464) server started (lighttpd/1.4.53)
2020-07-01 10:00:48: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
2020-07-01 10:00:48: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
2020-07-01 10:00:50: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice:  Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
2020-07-01 10:00:50: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206

The same turned up here, but without solution (and using another OS)

Good idea. I disabled all extensions in Chrome just in case. I am not getting any errors in the Dev console. But I am also not seeing any stats - they are all blank (including number of domains in the block-list).

Is the DNS resolution working? And the blocking?

Yes, DNS resolution and ad blocking seem to be working on multiple devices. It seems like the error is limited to Lighttpd?

Perhaps I should roll back to prior versions of Pi-Hole or Lighttpd?

Do you have a backup of an old pihole installation? Because there is no way back to v4.x if v5 is installed.

No, the last SD card failed so I did a fresh install on a new card. I was going to clone the image this time around.

I can install fresh again if that is the best way out of this. One odd note: The the console looked fine last while I was setting it up. "Somehow" that changed once I refreshed this morning.

Strange...
If it's not a big deal, try to set it up again.
Good luck.

Thanks for the help! I'll report back either way to close this out.

Are you really starting and stopping lighttpd that frequently?

Not intentionally? I thought it was odd too. But I wasn't logged in during those times.

That UID/PID is the init system. systemd in your case. It may be running out of resources, or your Log2Ram modifications are not fully correct.

Look over sudo systemctl status --full --no-pager lighttpd.service for anything that is out of the ordinary.

Hmm thank you. It's a 32GB card and only thing running on the Pi Zero W is PiHole + Raspberry OS. I am reinstalling now, and will leave out Log2Ram for now.

Thanks everyone for your help, this is now resolved. It may be something to do with Log2Ram - I thought I tried uninstalling it (while testing) but perhaps I didn't do it properly. I'm not going to troubleshoot further for now. Here are my steps for a clean install and I can't seem to replicate the issue.

Flashed Raspberry Pi OS

  • 2020-05-27-raspios-buster-lite-armhf.img onto Sandisk 32GB SDHC with balenaEtcher
  • Remounted SD card, moved a blank 'SSH' file into base directory to enable SSH access

Logged onto Pi Zero W with connected kb and monitor (user: pi, pwd: raspberry)
Set new password, host name, wifi settings, keyboard layout (to enable pipe key)
Setup Pi-Hole using default settings
Updated Raspberry PI OS
Added Pi-Hole database tweaks

  • sudo raspi-config
  • sudo curl -ssl https://install.pi-hole.net | bash
  • sudo apt-get update && sudo apt-get upgrade -y
  • sudi nano /etc/pihole/pihole-FTL.conf
  • Added MAXDBDAYS=180, DBINTERVAL=30

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