Newbie... Right after install: 500 Internal Server Error Server got itself in trouble

Newbie here…
April 20206…

I used a Pi 4 and imaged with Raspberry Pi Imager using Home Assistant image.

Simple. Just worked.

A couple of days later after it did some updates when I restarted the Pi it was in a boot loop. Had no idea how to recover from that.

I started fresh. Reimaged. Set up again, was fine, did all updates. Rebooted and was fine… figured it was a one time bug… configured backups and took a few and had it do some automatic backups… I am all set now I figured… even if it corrupts again I can restore.

It corrupted again. I imaged a new micro SD card… but I also used EASEUS to check the old card, no issues…

With the new SD card I tried to upload from a backup from the web console as the first thing I did after it finished its setup. 500 Internal Server Error Server got itself in trouble… So I created a whole new server instead of restoring and once restored THEN I was able to upload from my backup.

Few days later I am getting errors on my monitor attached to the system that searches imply issue on SD card.

I imaged a USB drive this time rather than an SD card… booted up first time, once I was functional I opted to restore from backup…

500 Internal Server Error Server got itself in trouble

So I joined this forum to look into this and the Installation Category says:
Home Assistant turns your Raspberry Pi (or other device) into the ultimate Home Automation hub. It takes away all the hassle of installing Home Assistant and related applications and keeping them up to date.

That certainly has NOT been my experience… and I do not think I am doing anything particulary abnormal nor do I think I am doing anything wrong… but I am shocked at how poorly this is starting out…

Happy if someone pointed out what I am doing wrong here…

1 Like

I would suspect a bad SD card. You need really good ones to run HA on.,…
Otherwise: How to Troubleshoot Raspberry Pi Crashing

Well, I just discovered a solution…

So on first boot trying to restore from a backup (which IS one of the options… create new or restore from backup…) fails with 500 error…

This time rather than go through all the steps to create a new home and then restore from backup, I rebooted and tried to restore from backup and then it worked…

But it should work from the first install without error and it doesn’t address the original issue of why it keeps corrupting.

Also, backup… my settings which include my network storage location for backup, every time I restore I have to redo my storage settings. I am backing up settings, why isn’t storage setting being backed up???

Two micro SD cards and one USB drive all do the same. SD card was run through EASEUS Partition Master disk verify utility that reads and writes every sector. I don’t think its a bad SD card really… see followup post…

Did you read the link posted? If so first thing to check is SD card and the second thing is power supply. So as you have checked the first it’s now time to check the psu.

Youndo not mention how big a SD card you use.

Backups stored locally, which is the standard way, if you do not do any extra configuration, can eat quite some storage space.

If you have chatty devices or many devices then an unconfigured recorder and history can eat up storage too and this will also add to the backups above.

Out of stoeage can cause crashes and that can cause soft corruption in the file system too.