500 Internal Server Error

Expected Behaviour:

Not crashing on RPI Zero V2 using Raspberry PI lite OS 64 bit

Issue:

The system ran stable for a year. Around 3 weeks ago it crashed with " 500 Internal Server Error" on admin UI and ssh access timed out.
Restart helped for several hours.
I was not able to find the cause:

  • CPU and RAM was not overloaded
  • External tool reported SD card to be ok.
  • Enough storage space
  • Nothing obvious in logs
  • PI Hole updates did not help

So I fully reinstalled the system. It was stable for ~3 weeks and now started crashing again every few hours.

Addition:
I run two instances of Pi Hole, another one is on RPI Zero V1. It also started reporting same 500 error at the same time ~ 3 weeks ago. It was also fully reinstalled (difference is 32bit RPI OS there). It is still running.

Debug Token:

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

This indicates the issue is not related to DNS.

This is a connectivity issue or a local OS issue.

If the problem keeps reappearing for no apparent reason, I suspect a faulty SD card (even if an external tool reported otherwise).

1 Like

Does below one show any Under-voltage messages?

sudo journalctl --full --no-hostname --pager-end --grep voltage

If so, have a look below:

If you see warnings, switch to a higher quality power supply and cable. Low quality power supplies can corrupt storage or cause unpredictable behaviour within the Raspberry Pi.

https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#power-supply-warnings

Oh blast, it says "except the Zero range".
Well the power supply and cable can still be a source of "corrupt storage or cause unpredictable behaviour".

EDIT: You could browse the systemd journal for the current --boot to inspect for errors/warnings:

sudo journalctl --full --no-hostname --boot

Or two boots back (-2):

sudo journalctl --full --no-hostname --boot -2

List boots:

sudo journalctl --list-boots

But if those are not Pi-hole related, you might have better luck on the Raspi forums.

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