HA Crash, rebuilt supervisor (ha command), no dice, help?

Last week power loss killed my HA running on Virtualbox. It seems to boot but web gui isn’t coming up. ALL network aspects have been vetted - it is there. Observer responds on http and reports OK. On console, I looked at core and supervisor. Core implies container is not running. I tried running supervisor repair and then core again but does not help. Here is supervisor log.
worst case, is there a way to get a backup and install on a new one or anyone think this is recoverable? My SAMBA shares ARE accessible and there is a snapshot from last week before this happened. Thanks

Start by copying those, to another disk ;), while your “there”

remove FTP-ADDON
uncommend ALL automations/scripts/bullock and devices etc, that you have in configuration.yaml … try reboot again (REBOOT not restart)

Thanks,
tried that - hardly anything in my configuration.yaml file to begin with. not doing too much. I did find this on reboot in home-assistant.log - next post. was having issues getting formatted in this post.

2023-03-07 15:47:49.409 ERROR (SyncWorker_0) [homeassistant.util.json] Could not parse JSON content: /config/.storage/core.config_entries
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 39, in load_json
    return orjson.loads(fdesc.read())  # type: ignore[no-any-return]
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)
2023-03-07 15:47:49.410 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 39, in load_json
    return orjson.loads(fdesc.read())  # type: ignore[no-any-return]
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 226, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 214, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 128, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/usr/src/homeassistant/homeassistant/runner.py", line 109, in setup_and_run_hass
    hass = await bootstrap.async_setup_hass(runtime_config)
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 151, in async_setup_hass
    await async_from_config_dict(config_dict, hass) is not None
  File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 259, in async_from_config_dict
    await hass.config_entries.async_initialize()
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1098, in async_initialize
    config = await storage.async_migrator(
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 44, in async_migrator
    if (store_data := await store.async_load()) is not None:
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 117, in async_load
    return await self._load_task
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 126, in _async_load
    return await self._async_load_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 144, in _async_load_data
    data = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 45, in load_json
    raise HomeAssistantError(error) from error
homeassistant.exceptions.HomeAssistantError: unexpected character: line 1 column 1 (char 0)

hmmm, yeah i tend to agree with your initial statement

if core.config_entries is corrupt you are better of installing a new HA, and hope you can use your backup, thou as you have access to Samba share, you can copy all your Views, automations etc.etc.

thanks. luckily sometime ago i setup the backup to google drive. installed new, restored backup and i am good.

1 Like