HASSio doesn't come back after a snapshot restore

Was running Hassio on an Ubuntu 18 VM well. Something borked the OS when I tried to do an update and it wouldn’t come back.

I’ve build a new Ubuntu 19 VM and had a fresh install of Hassio running. I was backing up the snapshots using the Google Drive addon so I reinstalled the addon on the new instance and “uploaded” the last good snapshot from the orginal install down to Hassio.

After going to Supervisor -> Snapshots and restoring that snap with a "Wipe and Restore it looks to have restored all my config, database etc but the hassio GUI won’t come up with a connection refused. All sorts of errors in the log file so I’m not sure where to even start.

Anyone have any protips for anything else that needs to be done after a snapshot restore?

Log (sorry for the spam):

2020-04-20 14:54:08 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for unifiprotect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-20 14:54:08 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-20 14:54:09 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=355 from 2020-04-20 18:45:22.399834)
2020-04-20 14:54:16 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for trakt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-20 14:54:16 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plex_recently_added which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-20 14:54:19 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonarr_upcoming_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-20 14:54:22 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2020-04-20 14:54:22 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2020-04-20 14:54:24 WARNING (MainThread) [homeassistant.setup] Setup of group is taking over 10 seconds.
2020-04-20 14:54:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for adguard not ready yet. Retrying in 5 seconds.
2020-04-20 14:54:24 ERROR (MainThread) [aioharmony.hubconnector] 172.16.13.52: Exception on post: Connection timeout to host http://172.16.13.52:8088/
2020-04-20 14:54:24 ERROR (MainThread) [aioharmony.hubconnector] 172.16.13.52: Unable to retrieve HUB id
2020-04-20 14:54:24 WARNING (MainThread) [homeassistant.components.harmony.remote] Family Room Harmony: Unable to connect to HUB.
2020-04-20 14:54:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for harmony not ready yet. Retrying in 5 seconds.
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tautulli platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.setup] Error during setup of component zeroconf
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 175, in _async_setup_component
    component.setup, hass, processed_config  # type: ignore
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (SyncWorker_2) [homeassistant.core] Error doing job: Unclosed client session
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
 File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
 File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
 File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 249, in async_setup_platform
    platform_config, discovery_info
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 138, in async_setup
    await self._async_setup_platform(async_create_setup_task)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/trakt/sensor.py", line 81, in setup_platform
    continue_setup_platform(hass, config, token, add_devices, discovery_info)
  File "/config/custom_components/trakt/sensor.py", line 89, in continue_setup_platform
    add_devices([TraktUpcomingCalendarSensor(hass, config, token)], True)
  File "/config/custom_components/trakt/sensor.py", line 127, in __init__
    self.update()
  File "/config/custom_components/trakt/sensor.py", line 144, in update
    calendar = MyShowCalendar(days=self._days)
  File "/usr/local/lib/python3.7/site-packages/trakt/calendar.py", line 31, in __init__
    self._get()
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 455, in inner
    json_data = self._handle_request('get', url)
  File "/usr/local/lib/python3.7/site-packages/trakt/core.py", line 432, in _handle_request
    raise self.error_map[response.status_code]()
trakt.errors.OAuthException: Unauthorized - OAuth must be provided

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in async_device_update
    await self.parallel_updates.acquire()
  File "/usr/local/lib/python3.7/asyncio/locks.py", line 474, in acquire
    await fut
concurrent.futures._base.CancelledError
2020-04-20 14:54:25 ERROR (MainThread) [homeassistant.components.sensor] darksky: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()

Well, I think what’s happend is I’m trying to restore from a bad backup. The latest snapshot occured after the db took a crap so no use in restoring a bad backup.

Luckily I have a backup from a few days ago when I KNOW Hass.io was alive…Unfortunately for some reason when I restore that snapshot it’s not restoring any of my configuration files. It says it’s complete but neither a simple restore or a wipe and restore are actually restoring the config files at all!

The first exception is for the trakt custom component. Perhaps try restoring without the local addons and see what happens.

Might be related to this old issue: https://github.com/home-assistant/supervisor/issues/779

I’ve removed several of the components it’s complaining about but it still doesn’t fire up…at least reliably…going to have to spend some more time troubleshooting but pretty annoyed that it’s not as simple as it’s supposed to be.

I managed to get it back up and running again. I used the backup with the bad database bud I had to delete my database and start fresh as well as basically enable all my configuration files one at time. I still don’t know exactly why it wasn’t coming up after restore even after starting with a fresh database.

Well I don’t know what’s going on here…

Things were working mostly fine. I shut down the VM to increase the memory and give it an extra CPU and after Hassio doesn’t come up anymore. Don’t know why things are so unstable lately.

root@hassio:/usr/share/hassio/homeassistant# cat home-assistant.log
2020-04-21 16:12:05 ERROR (MainThread) [aiounifi.websocket] Unexpected error 
2020-04-21 16:12:05 ERROR (MainThread) [homeassistant.components.unifi] Lost connection to UniFi
2020-04-21 16:12:05 ERROR (MainThread) [homeassistant.components.switch] Error while setting up adguard platform for switch
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 202, in _async_setup_component
    await entry.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/config/custom_components/hacs/__init__.py", line 84, in async_setup_entry
    startup_result = await hacs_startup()
  File "/config/custom_components/hacs/__init__.py", line 144, in hacs_startup
    can_update = await get_fetch_updates_for(hacs.github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 19, in get_fetch_updates_for
    limit = await remaining(github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 8, in remaining
    ratelimits = await github.get_ratelimit()
  File "/usr/local/lib/python3.7/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/aiogithubapi/aiogithub.py", line 148, in get_ratelimit
    raise AIOGitHubException(f"GitHub returned {response.status} for {url}")
aiogithubapi.exceptions.AIOGitHubException: GitHub returned 502 for https://api.github.com/rate_limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 186, in _async_setup_platform
    await asyncio.gather(*pending)
concurrent.futures._base.CancelledError
2020-04-21 16:12:05 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Family Room Harmony for harmony
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 202, in _async_setup_component
    await entry.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/config/custom_components/hacs/__init__.py", line 84, in async_setup_entry
    startup_result = await hacs_startup()
  File "/config/custom_components/hacs/__init__.py", line 144, in hacs_startup
    can_update = await get_fetch_updates_for(hacs.github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 19, in get_fetch_updates_for
    limit = await remaining(github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 8, in remaining
    ratelimits = await github.get_ratelimit()
  File "/usr/local/lib/python3.7/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/aiogithubapi/aiogithub.py", line 148, in get_ratelimit
    raise AIOGitHubException(f"GitHub returned {response.status} for {url}")
aiogithubapi.exceptions.AIOGitHubException: GitHub returned 502 for https://api.github.com/rate_limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/harmony/__init__.py", line 47, in async_setup_entry
    connected_ok = await device.connect()
  File "/usr/src/homeassistant/homeassistant/components/harmony/remote.py", line 276, in connect
    if not await self._client.connect():
  File "/usr/local/lib/python3.7/site-packages/aioharmony/harmonyapi.py", line 140, in connect
    return await self._harmony_client.connect()
  File "/usr/local/lib/python3.7/site-packages/aioharmony/harmonyclient.py", line 143, in connect
    return_exceptions=True
concurrent.futures._base.CancelledError
2020-04-21 16:12:05 ERROR (MainThread) [homeassistant.setup] Error during setup of component remote
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 574, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 541, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1786, in _run_once
    handle._run()
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 202, in _async_setup_component
    await entry.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/config/custom_components/hacs/__init__.py", line 84, in async_setup_entry
    startup_result = await hacs_startup()
  File "/config/custom_components/hacs/__init__.py", line 144, in hacs_startup
    can_update = await get_fetch_updates_for(hacs.github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 19, in get_fetch_updates_for
    limit = await remaining(github)
  File "/config/custom_components/hacs/helpers/remaining_github_calls.py", line 8, in remaining
    ratelimits = await github.get_ratelimit()
  File "/usr/local/lib/python3.7/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/aiogithubapi/aiogithub.py", line 148, in get_ratelimit
    raise AIOGitHubException(f"GitHub returned {response.status} for {url}")
aiogithubapi.exceptions.AIOGitHubException: GitHub returned 502 for https://api.github.com/rate_limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 171, in _async_setup_component
    hass, processed_config
  File "/usr/src/homeassistant/homeassistant/components/remote/__init__.py", line 73, in async_setup
    await component.async_setup(config)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 131, in async_setup
    await asyncio.gather(*tasks)
concurrent.futures._base.CancelledError

Think a lot of this is related to this.