HA supervisor crashes when restoring a Core backup

I just did a fresh install of HA supervisor and want to restore my quite simple Core backup, as I want to use the addons for Zigbee2MQTT.
Every time I try to restore the backup, HA crashes and I’ve no easy way to fix it without reinstalling HA again (since there’s no home-assistant.service running).

Is the supervisor version incapable of restoring a Core backup?

Jul 08 20:39:08 OrdroidN2Plus homeassistant[10219]: 2024/07/08 18:39:08 Start mDNS broadcast
Jul 08 20:39:08 OrdroidN2Plus homeassistant[10219]: 2024/07/08 18:39:08 Publish http://192.168.1.3:8123 to _home-assistant._tcp
Jul 08 20:39:08 OrdroidN2Plus homeassistant[10219]: 2024/07/08 18:39:08 Start webserver on http://0.0.0.0:8123
Jul 08 20:39:08 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:08.867 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/odroid-n2-homeassistant with version landingpage
Jul 08 20:39:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:09.925 WARNING (MainThread) [supervisor.resolution.evaluations.base] Docker cgroup version 2 is not supported! {'1'} (more-info: https://www.home-assistant.io/more-info/unsupported/cgroup_version)
Jul 08 20:39:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:09.947 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant setup
Jul 08 20:39:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:09.948 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/odroid-n2-homeassistant:landingpage to ghcr.io/home-assistant/odroid-n2-homeassistant:2024.7.1
Jul 08 20:39:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:09.948 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/odroid-n2-homeassistant with tag 2024.7.1.
Jul 08 20:39:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:39:09.950 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
Jul 08 20:43:50 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:43:50.104 INFO (SyncWorker_8) [supervisor.docker.manager] Stopping homeassistant application
Jul 08 20:44:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:09.895 INFO (SyncWorker_8) [supervisor.docker.manager] Cleaning homeassistant application
Jul 08 20:44:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:09.954 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant docker now installed
Jul 08 20:44:09 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:09.974 INFO (MainThread) [supervisor.homeassistant.core] Starting Home Assistant
Jul 08 20:44:10 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:10.006 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
Jul 08 20:44:10 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:10.515 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/odroid-n2-homeassistant with version 2024.7.1
Jul 08 20:44:10 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:10.515 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner: starting
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner successfully started
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs: starting
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs successfully started
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init: starting
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init successfully started
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services: starting
Jul 08 20:44:10 OrdroidN2Plus homeassistant[10219]: services-up: info: copying legacy longrun home-assistant (no readiness notification)
Jul 08 20:44:11 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services successfully started
Jul 08 20:44:25 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:25.588 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
Jul 08 20:44:25 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:25.594 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to NOT_RUNNING
Jul 08 20:44:27 OrdroidN2Plus dbus-daemon[1330]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.163' (uid=0 pid=12274 comm="python3 -m homeassistant --config /config ")
Jul 08 20:44:45 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:45.703 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to RUNNING
Jul 08 20:44:45 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:45.704 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
Jul 08 20:44:45 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:44:45.754 INFO (SyncWorker_7) [supervisor.docker.manager] Cleanup images: ['ghcr.io/home-assistant/odroid-n2-homeassistant:landingpage']
Jul 08 20:46:35 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:35.577 INFO (MainThread) [supervisor.backups.manager] Restore 1a7d558d starting stage home_assistant
Jul 08 20:46:35 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:35.597 INFO (SyncWorker_8) [supervisor.docker.manager] Stopping homeassistant application
Jul 08 20:46:35 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services: stopping
Jul 08 20:46:46 OrdroidN2Plus homeassistant[10219]: Unable to find configuration. Creating default one in /config
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: [18:46:48] INFO: Home Assistant Core finish process exit code 0
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: [18:46:48] INFO: Home Assistant Core service shutdown
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services successfully stopped
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init: stopping
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init successfully stopped
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs: stopping
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs successfully stopped
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner: stopping
Jul 08 20:46:48 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner successfully stopped
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.118 INFO (MainThread) [supervisor.homeassistant.module] Restore Home Assistant Core config folder
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.629 INFO (MainThread) [supervisor.homeassistant.module] Restore Home Assistant Core config folder done
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.731 INFO (MainThread) [supervisor.backups.manager] Restore 1a7d558d starting stage await_home_assistant_restart
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.745 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2024.4.3
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.746 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/odroid-n2-homeassistant:2024.7.1 to ghcr.io/home-assistant/odroid-n2-homeassistant:2024.4.3
Jul 08 20:46:54 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:46:54.747 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/odroid-n2-homeassistant with tag 2024.4.3.
Jul 08 20:52:05 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:05.318 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning homeassistant application
Jul 08 20:52:05 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:05.938 INFO (MainThread) [supervisor.homeassistant.core] Successfully started Home Assistant 2024.4.3
Jul 08 20:52:06 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:06.042 INFO (SyncWorker_6) [supervisor.docker.manager] Cleanup images: ['ghcr.io/home-assistant/odroid-n2-homeassistant:2024.7.1']
Jul 08 20:52:38 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:38.672 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config: Cannot connect to host 172.30.32.1:8123 ssl:False [Connect call failed ('172.30.32.1', 8123)]
Jul 08 20:52:38 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:38.683 INFO (MainThread) [supervisor.backups.manager] Restore 1a7d558d starting stage check_home_assistant
Jul 08 20:52:38 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:38.793 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
Jul 08 20:52:40 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:40.233 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/odroid-n2-homeassistant with version 2024.4.3
Jul 08 20:52:40 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:40.234 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner: starting
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner successfully started
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs: starting
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs successfully started
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init: starting
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init successfully started
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services: starting
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: services-up: info: copying legacy longrun home-assistant (no readiness notification)
Jul 08 20:52:40 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services successfully started
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: Fatal Error: Unable to create library directory /config/deps: [Errno 17] File exists: '/config/deps'
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: [18:52:45] INFO: Home Assistant Core finish process exit code 1
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: [18:52:45] INFO: Home Assistant Core service shutdown
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services: stopping
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-services successfully stopped
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init: stopping
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service legacy-cont-init successfully stopped
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs: stopping
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service fix-attrs successfully stopped
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner: stopping
Jul 08 20:52:45 OrdroidN2Plus homeassistant[10219]: s6-rc: info: service s6rc-oneshot-runner successfully stopped
Jul 08 20:52:50 OrdroidN2Plus hassio_supervisor[10219]: 2024-07-08 20:52:50.254 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!

So you had a core install and want to restore a backup from this to a Home Assistant OS install?

That should be possible, if for some reason it is not you can open an issue here: Issues · home-assistant/operating-system · GitHub

However if you want to get up and running now:

  1. Install a fresh copy of HA OS.
  2. Do the on onboarding steps, create any throwaway user account (it will be overwritten)
  3. Install the SAMBA or SSH addon.
  4. Open your backup with 7zip or similar and extract everything from homeassistant.tar/data/config (I don’t have access to a backup at the moment to check the actual path but it is something like that)
  5. Copy everything from your backup /config folder to your system /config folder using SAMBA or SSH
  6. Restart Home Assistant
  7. Log in with your old credentials.

Hi Tom,

No, I don’t want to restore the backup on HA OS, I want to upgrade the core installation (that’s available in the DietPI OS ‘storefront’) to the supervisor version so that I can use the addon store.

I did read in the backup integration that restoring is only an option for HA OS. If I’d want to restore on core or supervisor, I’d have to manually move over the files.

Unfortunately, CGroup version is also often forced to v2 and rerunning the supervisor installer as shown here doesn’t really solve the issue, so it’s a bit tedious to set up the supervisor version.

Note: if I knew earlier that I wanted to run HA, I’d have chosen HA OS, but I currently have dietpi with quite some things running (plex mediaserver, radarr, sonarr, etc) that would take a lot of time to set up again (I never really “distro hopped” before and done a backup + restore).

Just change step 1 to your supervised version then.