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.
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.
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.