HELP - Hassio is DEAD after power outage

I can’t bring up the Web interface, or connect via SSH or SSH to ROOT after a power outage.
The sonoff devices connect, as they are not blinking, but the UI and SSH interfaces appear to be DEAD.
Help!
The error I get is “Refused to connect”
How can I fix this without loosing Everything!!!

P.S. I found similar posts on this but no solution. Is Hassio that fragile that its just crap-toast if you lose power? That would not be acceptable At All…

1 Like

usually only wont start if your config has critical errors

for the record i have had several power outages to my HA server in the past few days alone, no issues… however my config doesn’t have errors in it :wink:

I can now get into ROOT. But have no idea how to get to my config backups so I can copy them off and rebuild.
Sill nothing on regular SSH or the web interface.
How to I clear Critical Errors?

P.S. There were No Errors in any of the configurations.

This is ‘interesting’ (ie: stupid):

hassio > ls
Error: unknown command “ls” for “hassio”
Run ‘hassio --help’ for usage.
FATA[0000] Error while executing rootCmd: unknown command “ls” for “hassio”

hassio > hassio --help
Error: unknown command “hassio” for “hassio”

Did you mean this?
hassos

Run ‘hassio --help’ for usage.
FATA[0000] Error while executing rootCmd: unknown command “hassio” for “hassio”

Did you mean this?
hassos

its not a ‘critical error’ by name, however it might be that you have code errors so bad that they prevent HA from properly starting.

They wouldn’t be my coding errors then. And I’ve rebooted it multiple times in the past with this configuration w/o issue.

Still, how does all that get me back up and running again?

CLI commands for hassio aren’t standard Linux stuff. From the CLI you would need to prefix with hassio for example (if I’m correct) so to restart for example is:

hassio ha restart

I found my snapshots with the ‘snapshots’ command (btw: don’t prefix anything with ‘hassio’, even though it lists it that way in the help - its doesn’t work).
But how do I get them off the SD card so I can rebuild this ‘thing’?

I’m sorry, but this product is Retarded.
It totally craps out from a power outage.
You can’t log in with SSH
If you had already set up ROOT SSH access, you can’t do sh1t with it.
Snapshots are totally NOT accessible on the SD card.
So you are basically screwed if anything goes wrong. And its been my experience over the past 3 months that it Goes.Wrong.Often.
This product isn’t even Alpha at this point.
definitely not worth a dime, or any time spent on it.
Ban me, I don’t care. No one should have to deal with this level if BS from ANY product - free or otherwise.

I don’t have this issue, nor do 1000’s of others. It is not the fault of HA.

@sparkydave has tried to help you, but your lack of willingness to spend some time to problem solve makes the product “retarded”? You only initially posted 40mins ago, everyone isn’t just sitting around waiting to help you, and you are far less likely to get anymore help with this sort of attitude.

Have you taken a backup of your system, i.e. Snapshot, and saved it somewhere safe? If so, wipe the SD card of your RasPi (assuming that is what you are using) re-flash HA and restore the snapshot. That will take all of about 20mins to complete and you’ll be back up and running.

You’re right, it’s far beyond Alpha and close to a 1.x RC

This is not the case at all, if you are experiencing a large number of issues, it’s a hardware problem, or, more likely your configuration.

Don’t blame the product, take some time to investigate your problem, stop being a reactionary brat.

As @kanga_who has already said, you are seriously overreacting. The system is rock solid IF you care to know:
a) How to code it correctly and CHECK YOUR CONFIG, BEFORE RESTARTING
b) Setup a method for accessing the files. ie: SSH, Samba
c) Setup / Enable Snapshot saving to another device / cloud storage (which HassIO has add-ons for)

You have clearly failed to do these things and are acting pathetic because you caused your own mess. I’m guessing by your rant that you aren’t very old, or at least don’t act it. GROW UP!

This software is FREE and works perfectly for thousands of people. If you have only been using it for three months then hopefully you haven’t lost too much IF you still can’t get to your Snapshots / config files. Given that you are able to use the CLI to find the Snapshots, surely you can figure out how to transfer them off to another device. Since you have been so friendly in your post, I don’t see you getting much help in doing so

I also had a power outage yesterday and the result was not nice.
After the power was back on everything seems to work ok in home assistant, but hassio is broken.
When trying to access the Hassio menu in sidebar I get an error saying “Unable to load the panel source: /api/hassio/app/entrypoint.js.” and in the logs I can see a lot of 403 errors.

2019-05-21 19:33:29 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/options return code 403.
2019-05-21 19:33:29 ERROR (MainThread) [homeassistant.components.hassio.handler] /supervisor/options return code 403.
2019-05-21 19:33:29 ERROR (MainThread) [homeassistant.components.hassio.handler] /homeassistant/info return code 403.
2019-05-21 19:33:29 WARNING (MainThread) [homeassistant.components.hassio] Can't read last version: 
2019-05-21 19:33:30 ERROR (MainThread) [homeassistant.components.hassio.handler] /ingress/panels return code 403.
2019-05-21 19:33:30 ERROR (MainThread) [homeassistant.components.hassio.addon_panel] Can't read panel info: 
2019-05-21 19:33:39 ERROR (MainThread) [homeassistant.components.hassio.handler] /discovery return code 403.
2019-05-21 19:33:39 ERROR (MainThread) [homeassistant.components.hassio.discovery] Can't read discover info: 

Strage this is that some addons are working, like Configurator, zigbee2mqtt, mqtt broker, but others are not working, like ssh server which kinda locks me outside.

Anyone has any idea how to fix these errors?

Generally a reboot will solve these sorts of things.

I always find after a power outage that some of my items can reboot and connect to WiFi before HA boots, and some don’t. The ones that are too slow do not get seen/loaded by HA, and throw errors. I then need to reboot.

Easy way around this is to create a simple automation that sends you a pushbullet / telegram / other message app to alert you that you HA has rebooted. You can then check everything has loaded and if not, perform a reboot.

I’ve tried rebooting but didn’t fixed the problem. HA works, Hass does not and I have the same errors in the log with 403 error code for some files. Also, any service that is related to hassio, like start / restart addon, restore snaphot, etc does not work and give just a dummy error "Error on Hass.io API: " without any further info.

The likely issue is a corrupted SD card or partially dead card. This isn’t a problem with Hassio. If the power dies while the SD card is being written to, this will corrupt the data, and could lead to unable to boot. A cheap SD card can also lead to sectors dying, which will make your pi unbootable.

Ways to prevent SD card corruption/death.

  1. Use a QUALITY SD Card. This will reduce likelyhood of card dying during general use.
  2. Run it off a UPS. You can get a UPS HAT for the Pi that you should be able to monitor the GPIO and run an automation to safely shutdown the Pi.

Another possible cause is the history database getting so large that the Pi can’t boot. I’ve had that - I had poorly configured it not to prune the database.

Addons are all in their own docker container. Each one runs independently, including hassio. That’s why some work and some don’t. Chances are, the ones that don’t will need to be reinstalled as something got corrupted. Just as a word of warning, whenever you cut power to any device during a write, you will corrupt said device if the write has not finished. It’s luck of the draw. The only recourse for corruptions is re-installation or deleting the configuration. Sometimes both is required, although re-installation is typically rare.

1 Like

it’s not a problem to reinstall the addons, but first I need to make hassio work again. Any idea how can I reinstall / fix hassio without a complete reinstall?

if you can get in with SSH, you can attempt to downgrade or upgrade hassio. That may fix the problems. This link has the correct syntax for SSH upgrade/downgrade to specific versions.

You should also make sure to have periodic snapshots or use a repository to store your configuration.

1 Like

@DaHai you need to learn how to control your temper. No one here is obligated to help you. When you make posts like this, all the people who are very versed in the software will ignore you. You’ve only been on this forum for 3 months and this is the second time you’ve littered a thread with swearing and complaining. Maybe open source home automation isn’t for you.

2 Likes