Some pages no longer show after OS upgrade

I upgraded my Pi from Stretch to Buster and it seems it installed nginx.
I removed nginx and ran a pihole -r and selected to re install everything.

Some of the pages work but not all. The Dashboard still wants to download to the broswer and wont run.

Here is my token.https://tricorder.pi-hole.net/n6mu92hnm5

Thanks for a super cool tool.

Which pages work and which pages do not?

The Pi-hole self tests all show lighttpd working:

*** [ DIAGNOSING ]: Dashboard and block page
[βœ“] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
[βœ“] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

There is an issue with the networking and IPv4 addresses:

*** [ DIAGNOSING ]: Networking
[βœ“] IPv4 address(es) bound to the eth0 interface:
   10.64.9.242/24 matches the IP found in /etc/pihole/setupVars.conf

[i] Default IPv4 gateway: 10.64.9.20
10.64.9.20
   * Pinging 10.64.9.20
10.64.9.20...
[βœ—] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)

Hi. I can ping the router on the pi.

pi@thingsboard:~ $ ping 10.64.9.20
PING 10.64.9.20 (10.64.9.20) 56(84) bytes of data.
64 bytes from 10.64.9.20: icmp_seq=1 ttl=64 time=0.423 ms
64 bytes from 10.64.9.20: icmp_seq=2 ttl=64 time=0.390 ms
64 bytes from 10.64.9.20: icmp_seq=3 ttl=64 time=0.390 ms
64 bytes from 10.64.9.20: icmp_seq=4 ttl=64 time=0.384 ms
64 bytes from 10.64.9.20: icmp_seq=5 ttl=64 time=0.356 ms
64 bytes from 10.64.9.20: icmp_seq=6 ttl=64 time=0.399 ms

The Index.php , settings.php pages dont work. The rest all seems to work fine.

What shows in the browser when you visit those pages?

It downloads the page code as text

image

Run sudo lighty-enable-mod fastcgi fastcgi-php

I did. I still get the same.

image

What does the /var/log/lighttpd/error.log show?

unknown config-key

Something is keeping lighttpd and php from rendering the contents and instead sending it across as an attachment. It may be something that was installed or configured during the upgrade and that’s why Raspberry Pi highly suggests you not upgrade but instead install new.

curl -I http://localhost/admin/index.php looks fine and shows the proper X-Headers that we add.
curl -s http://localhost/admin/index.php | head -n 20 should show <!DOCTYPE html> if php is functioning correctly.

Dude you wont believe it but it was my Firefox browser. It is still caching the old page. I used Chrome and all is working. I am so sorry for wasting your time. I am also in IT and hate it when people dont check everything before calling support. Thanks for your help. You rock !!!

image

1 Like