Help! Home Assistant PC died
Author
Discussion

clockworks

Original Poster:

7,004 posts

166 months

Thursday
quotequote all
My Home Assistant PC died with all the power cuts tonight. Was running "bare metal" HAOS, automatic backups every night to the internal SSD, and to my NAS. The PC is not showing on my network at all.

I've got a HA Green that was last used about 9 months ago.
I would like to restore the backup from last night onto the Green, before I start messing about fault-finding the Mini PC and potentially killing it for good.

Can I just connect the the HA Green to my network, copy the .tar backup file from the NAS onto a USB stick, connect my tablet to it using the companion app, and use the restore function from the tablet?

Or, is it more complicated than that?

jesusbuiltmycar

5,028 posts

275 months

Yesterday (07:56)
quotequote all
Is the PC completly dead or hanging on boot? After a powercut mine was hanging on bootup - I had to connect a screen and a keyboard and manually tell it to boot.

Have you tried connecting a screen and having lookup at the messages as it boots?

In my case the cause was a USB flash drive I had plugged in (for backups) and the fix was to adjust the fstab rules.


Griffith4ever

6,137 posts

56 months

Yesterday (08:09)
quotequote all
The core update released yesterday causes my installation (on an NUC) to crach and then reboot and roll back. I'm waiting for the next release. My NUC is hanging off a small UPS....

The restor process is well documented and actually easy to do. I moved mine from a NAS VM to a standalone HAOS fresh image with the restore utility - it was painless.

clockworks

Original Poster:

7,004 posts

166 months

Yesterday (08:22)
quotequote all
Was going to try a screen on it this morning, but we now have no power and no water

ARH

1,459 posts

260 months

Yesterday (08:24)
quotequote all
No need to copy the backup file to a stick. Just flash a new install on your green, then on the onboarding page just pick the restore function and point it towards your backup file on the nas.

clockworks

Original Poster:

7,004 posts

166 months

Yesterday (14:18)
quotequote all
Looks like I got lucky.

When the power came back, I plugged in a monitor and keyboard. PC was stopping towards the end of booting HAOS, displaying "ctrl D for maintenance". I did that, fixed itself, loaded up fine.

Moral is, unplug the PC when faced with 50+ very short power cuts in 2 hours.

Griffith4ever

6,137 posts

56 months

Yesterday (14:27)
quotequote all
clockworks said:
Looks like I got lucky.

When the power came back, I plugged in a monitor and keyboard. PC was stopping towards the end of booting HAOS, displaying "ctrl D for maintenance". I did that, fixed itself, loaded up fine.

Moral is, unplug the PC when faced with 50+ very short power cuts in 2 hours.
https://www.amazon.co.uk/Tecnoware-ERA-PLUS-TOGETHER-Uninterruptible/dp/B0BN7XLMB5/ref=sr_1_4?adgrpid=189428750154&dib=eyJ2IjoiMSJ9.xaEbxCv0NmRmlMeVXZzOVqxeYQQOjom4mDUP555KHhs04V5SLVN8YRgNTogsk1Ove6nLHnEqCSy5ffjqnp1NS2OE4xoh4PLacLsSYZ1K6rQ7gKahOU7q8JctufaApsaem_IHiVEe_nMEnP-lBl7SZyKhzt_JkdbTwz6gSQSyZCK56_RaMWKi780kEf9QVYlL6Z98MbaHlWCxwcOMuqMJ6TQ1bF-c6kbICLIw8MAtUNs.5YhbEgq8_8K5b5GIFbh2sfpk57hm711VULNJWaZHaXs&dib_tag=se&gad_source=1&hvadid=779280259426&hvdev=c&hvexpln=0&hvlocphy=1006563&hvnetw=g&hvocijid=2347384738151646154--&hvqmt=e&hvrand=2347384738151646154&hvtargid=kwd-298636812458&hydadcr=5897_2464517_355084&keywords=small%2Bups&mcid=3b079429a52e387498f34cff5b9c5683&qid=1767968795&sr=8-4&ufe=app_do%3Aamzn1.fos.95fd378e-6299-4723-b1f1-3952ffba15af&th=1

I have my NAS, router and Intel NUC (HA) hanging off a slightly larger one (used to hang my PC off it too)

clockworks

Original Poster:

7,004 posts

166 months

Yesterday (15:26)
quotequote all
I've considered getting a UPS, but I get really confused looking at the specifications.

My HA mini PC says 15watts. WiFi mesh base unit says up to 10 watts. I've already got a BT-supplied UPS on the router.

Looking at the specs for a <£75 UPS, they may say 800VA, but a runtime at 40 or 50 watts of just an hour. Why so short, for what looks like it should be an 800watt UPS, but can only supply 50 watt hours?

What looks like the equivalent to the BT-supplied Cyberpower UPS states 800VA, 400watts, but a runtime of 30 minutes at 60 watts.

Are the inverters for the AC outlets just ridiculously inefficient?

The BT units had a good workout last night. The one powering the hub managed 5 hours before the "45% left" alarm went off. Hub specs say 10 to 15 watts power consumption, but it supplies direct DC to the router, no inverter.

Digger

16,036 posts

212 months

Yesterday (15:47)
quotequote all
Griffith4ever said:
clockworks said:
Looks like I got lucky.

When the power came back, I plugged in a monitor and keyboard. PC was stopping towards the end of booting HAOS, displaying "ctrl D for maintenance". I did that, fixed itself, loaded up fine.

Moral is, unplug the PC when faced with 50+ very short power cuts in 2 hours.
https://www.amazon.co.uk/Tecnoware-ERA-PLUS-TOGETH...

I have my NAS, router and Intel NUC (HA) hanging off a slightly larger one (used to hang my PC off it too)
Just an fyi all you need for an Amazon link is the short random string of characters after the /dp/ . . . nothing required after.

Griffith4ever

6,137 posts

56 months

Yesterday (17:33)
quotequote all
clockworks said:
I've considered getting a UPS, but I get really confused looking at the specifications.

My HA mini PC says 15watts. WiFi mesh base unit says up to 10 watts. I've already got a BT-supplied UPS on the router.

Looking at the specs for a <£75 UPS, they may say 800VA, but a runtime at 40 or 50 watts of just an hour. Why so short, for what looks like it should be an 800watt UPS, but can only supply 50 watt hours?

What looks like the equivalent to the BT-supplied Cyberpower UPS states 800VA, 400watts, but a runtime of 30 minutes at 60 watts.

Are the inverters for the AC outlets just ridiculously inefficient?

The BT units had a good workout last night. The one powering the hub managed 5 hours before the "45% left" alarm went off. Hub specs say 10 to 15 watts power consumption, but it supplies direct DC to the router, no inverter.
Don't get too wrapped up in all the specs, just look at the VA (Volt Amps). That tells you the size.

Routers and the likes are almost nothing in terms of UPS draw. They are designed to run a PC and monitor normally. I have a 1500VA UPS and that can run my gaming PC, the ultrawide OLED, my table lamp, my Raid NAS, 5G router, and Intel NUC for 15 minutes easily. Without the PC it will easily go for a couple of hours.

UPSs are designed to get you through short power cuts, hence they list conservative run times. You are expected to be running the companion app on your PC that will give you time to save your documents etc, then give you fair warning before gracefully shutting down your PC. If it's just running your network kit it'll get you through pretty much all the usual power cuts. They really are not designed to get you through long term power outages. They are designed to allow you to finish what you were doing.

Saying that, I now don't have my PC connected to the UPS because

a) it's in a different room
b) new place, we get our power blips in the wee hours it seems. Not in the day time.

It's more important my 5G router has a good run time so I can carry on with my laptop and tablet

.:ian:.

2,730 posts

224 months

Yesterday (21:42)
quotequote all
clockworks said:
I've considered getting a UPS, but I get really confused looking at the specifications.

My HA mini PC says 15watts. WiFi mesh base unit says up to 10 watts. I've already got a BT-supplied UPS on the router.

Looking at the specs for a <£75 UPS, they may say 800VA, but a runtime at 40 or 50 watts of just an hour. Why so short, for what looks like it should be an 800watt UPS, but can only supply 50 watt hours?

What looks like the equivalent to the BT-supplied Cyberpower UPS states 800VA, 400watts, but a runtime of 30 minutes at 60 watts.

Are the inverters for the AC outlets just ridiculously inefficient?

The BT units had a good workout last night. The one powering the hub managed 5 hours before the "45% left" alarm went off. Hub specs say 10 to 15 watts power consumption, but it supplies direct DC to the router, no inverter.
The ones that supply 12v dc are much more efficient, it cuts out an whole dc-ac-dc conversion.