HA Raspberry Pi 4 - Install Deleted Itself Overnight?

Hello,

I’ve just started with HA and was hoping to get a little help narrowing down an issue.

After setting up some integrations and creating my first Automation (which was set to turn on some lights overnight so my Roomba wouldn’t get lost), I noticed the next morning the Automation did not finish (turn off the lights after a 2 hour delay).

I checked HA and there was a message about the automation not being in the conf file. YAML check failed, couldn’t find config file. Attempted HA restart which failed. Power cycled RPi and I’ve looking at the “Preparing HA” screen for 2 hours. SSH into RPi failes. The RPi is connected to network with the reserved IP I assigned to it on setup.

I’m trying to figure out if:

  1. Did I brick my RPi? Or, is my storage media faulty?
  2. Did I “hurt” HA while setting it up?

I installed the following Integrations/AddOns:

Foscam
ecobee
Tuya
HACS → localTuya
SSH/Terminal

I created 2 custom dashboards:

Pretty basic, with one Manual → surveillance-card

WinSCP:

Copied backup TAR’s to LAN Storage
Backed up /config/.storage/core.config_entries → core.config_entries_230507 (I left the backup in the storage folder)
Edited core.config_entries to change the Foscam RS ports from 554 to 88

I stopped HA Core before making changes to core.config_entries and restarted; everything worked fine all day.

There were no active SSH connections to the RPi overnight.

Any thoughts? Other than wishing I had made a backup later in the day yesterday :slight_smile:

UPDATE: I have the following error in the install logs

23-05-08 10:52:13 ERROR (SyncWorker_2) [supervisor.docker.interface] Can’t install ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2023.5.2: 500 Server Error for http+docker://localhost/v1.42/images/ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2023.5.2/json: Internal Server Error (“layer does not exist”)

My assumption would be a failing SD card, or if you’re on an SSD then you didn’t provide external power to the SSD.

1 Like

I’m sure you’re right.

I’m going to reset it up using an Intel box and chunk the RPi and SD.

I got an error similar to yours:

23-05-10 19:52:53 ERROR (SyncWorker_4) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2023.5.2: 500 Server Error for http+docker://localhost/v1.42/images/create?tag=2023.5.2&fromImage=ghcr.io%2Fhome-assistant%2Fraspberrypi4-64-homeassistant&platform=linux%2Farm64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
23-05-10 19:52:53 WARNING (MainThread) [supervisor.homeassistant.core] Updating Home Assistant image failed

Please for support!!!
I use Home Assistant OS (Home Assistant Core - Installed version 2023.4.6). Since then I have not been able to update any new versions of cores or components :frowning:

I did a lot of research on this and there are multiple posts referencing SD card failure. I removed the SD care and put it into an external reader, and it was toast. It was brand-new, 3 days old and a high-quality maker.

Since I had just started setting up HA, I started fresh with an old Intel i3 “pizza-box” PC that was sitting in the closet and it’s working really well. I installed with the generic X86 package. I installed a fresh Crucial SSD into the box.

HA seems to be responding more quickly under this setup too.

I wasn’t able to find any suggestions other than a fresh install to overcome the error :frowning:

2 Likes

Anyway thank you for the answer :frowning:

1 Like