Errors after power cycle

Hi guys,

I’m new to Home Assistant. I have a RPi 3+ running the latest version of Hass.io. Everything was installed and working perfectly. I wanted to setup my ESP32CAM with Home Assistant. I installed the ESPHome repository but didnt get further as I got busy. A few hours later I was going to continue, but I could not get into the Configurator, so I decided to cycle the power of the RPi.

As soon as I did that I was unable to connect to Home Assistant anymore. I cannot SSH into the Pi. I can ping the IP address for a short while, but after about 2min I lose network activity. Tried WinSCP to get to the files, but also fails to connect.

See the screenshot for the errors I get when I plug a screen into the Pi. Ignore the white section. That is a problem with the monitor.

Please can someone assist me. I do not feel like reloading Hass.io and losing all my configurations I’ve typed in as I dont have a backup.

This bad. Don’t do this. It will lead to SD card corruption. There is a shudown host button on the Hassio System page you should use.

I have some bad news and maybe some good news.

Bad: you are going to have to reinstall HA.

Good (maybe): depending on how badly corrupted your SD card is you may be able to recover the configuration files by directly reading the SD card using a PC or software capable of reading Linux partitions. You can use any Linux live boot CD/USB stick or in the case of windows software there are some options here: https://www.howtogeek.com/112888/3-ways-to-access-your-linux-partitions-from-windows/

Thanks for your response. I was not able to Restart. I did try, but clicking the Restart button yielded no results. I read an article says its better to install Rasbian, then add Home Assistant on to it, rather than using Hass.io. Is this true?

So you are saying everytime someone has a power outage they have to reload Home Assistant? Surely not! This is poor coding if so.

Probably, this depends on the SD card, not on HA.
You can place it under an UPS, if you have it.

I am using a 32Gb Class 10 U1 Micro SD card.

UPS will be a bit big. Not really convenient

Not every time but it’s like playing Russian roulette. Someone is going to lose sooner or later.

A UPS (or 5V battery bank for a Pi) is worthwhile insurance.

You can install Hassio on Raspbian. I am running Hassio on Raspbian Lite.I used SD Formatter to wipe the card and then installed Raspbian Lite using NOOBS Lite.
If you wish, I can post the instructions here. They official ones are a little scattered.

I mean, if you already have one for other stuff… :wink:

2 Likes

Yes please that will be great.

Follow the Raspberry Pi instructions to format the card, install NOOBS Lite & Raspbian Lite.

https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/3

sudo -i

apt-get install software-properties-common

apt-get update

apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat

curl -fsSL get.docker.com | sh

curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3

Modified from

and