HassIO upgrade lost all config

Hey there,

My Homeassistant install has been broken for a few weeks now, and I’ve finally managed to find some time this evening to take a look.
I’ve forced an upgrade from “0.103.5” to “0.108.3” this evening via the CLI. However upon rebooting, Homeassistant appears to have been reset to default, and I was prompted with the new user registration screen.

Looking in my “/data/hassio/homeassistant” directory, I can see all my config files still present, and the most recently updated files are “home-assistant.log” and “home-assistant_v2.db”.

I’ve also got a full snapshot backup on Google Drive from a month or so ago, which would be fine as I’ve not made any changes for a while…

Any ideas on how I go about recovering my previous config?

Thanks in advance.

Gavin

In new HA, install SSH or Samba addon. Use that to copy your snapshot back onto HA. Wipe and restore from snapshot.

Where would I need to put the snapshot for it to be visible within Homeassistant WebUI?

They should be placed in the /backup directory.

So I just copied the file into /data/hassio/backup, however it’s not listed in the snapshot screen…

Interestingly there were 4 other backups in the same folder already…

Ahh, ok… So I just created a backup via the UI, and it didn’t store in the same folder.

So it looks like the data dir has been reset to /usr/share/hassio rather than /data/hassio.

Any ideas on how I switch back?

Config files for Home Assistant - Supervised (no longer called Hass.io) should be in /usr/share/hassio/homeassistant and Snapshots (backups) in /usr/share/hassio/backup.

If you want to restore a previous Snapshot, you will need to copy it to /usr/share/hassio/backup, then reboot your machine. After the reboot, HA will see the file and let you restore.

So is overriding the DATA_SHARE dir no longer supported?

I’ve used /data/hassio as I’ve got a 2nd HDD mounted at that path… Remounting to /usr/share/hassio would be another option I guess…

I’ve never had the need to use another directory, so can’t comment, but my advice would be to use the default and create a new mount.