I was using home assisntant 2023.1 with out problems but one day I restarted my instances and it never started again.
I reinstaled the instance using home assisntant OS, and it started without problems, but as soon I load the backup, it has the same problem, Home assistant doesn’t start.
I reinstaled it again if a version from a month ago, and the same issue, not started.
I ran all the checks on the hardware and everything is ok (It’s running HA OS, not virtualized, on a lenovo notebook)
I has able to make it book into safe mode by introducing an intentional error on the configuration.yaml, from there I disable most of the devices and most of the addons, but again, when I fix the issue on the configuration.yaml it won’t start.
I tried using the Cli but the logs are not usefull
[core-ssh ~]$ ha core logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 111, in async_setup_entry
await zha_gateway.async_initialize()
File "/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
self.application_controller = await app_controller_cls.new(
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 151, in new
await app.startup(auto_form=auto_form)
File "/usr/local/lib/python3.10/site-packages/zigpy/application.py", line 131, in startup
await self.connect()
File "/usr/local/lib/python3.10/site-packages/bellows/zigbee/application.py", line 124, in connect
self._ezsp = await bellows.ezsp.EZSP.initialize(self.config)
File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 104, in initialize
await ezsp._startup_reset()
File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 95, in _startup_reset
await self.reset()
File "/usr/local/lib/python3.10/site-packages/bellows/ezsp/__init__.py", line 124, in reset
await self._gw.reset()
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 292, in _async_setup_component
await asyncio.gather(
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 97, in async_setup_component
return await task
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/runner.py", line 102, 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 291, in async_from_config_dict
await _async_set_up_integrations(hass, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 637, in _async_set_up_integrations
await async_setup_multi_components(hass, stage_2_domains, config)
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 504, in async_setup_multi_components
errors = [domain for domain in domains if futures[domain].exception()]
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 504, in <listcomp>
errors = [domain for domain in domains if futures[domain].exception()]
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
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 214, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 202, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 120, 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()
asyncio.exceptions.CancelledError
2023-02-02 00:05:11.506 ERROR (Thread-3 (_thread_main)) [paho.mqtt.client] Caught exception in on_message: Event loop is closed
2023-02-02 00:05:11.510 ERROR (Thread-3 (_thread_main)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3591, in _thread_main
self.loop_forever(retry_first_connection=True)
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1756, in loop_forever
rc = self._loop(timeout)
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1164, in _loop
rc = self.loop_read()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 1556, in loop_read
rc = self._packet_read()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 2439, in _packet_read
rc = self._packet_handle()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle
return self._handle_publish()
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish
self._handle_on_message(message)
File "/usr/local/lib/python3.10/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message
on_message(self, self._userdata, message)
File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 647, in _mqtt_on_message
self.hass.add_job(self._mqtt_handle_message, msg)
File "/usr/src/homeassistant/homeassistant/core.py", line 396, in add_job
self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 795, in call_soon_threadsafe
self._check_closed()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[core-ssh ~]$ ha supervisor logs
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.manager] Connected to system D-Bus.
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.agent] Load dbus interface io.hass.os
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
23-02-02 00:08:51 INFO (MainThread) [supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
23-02-02 00:08:51 INFO (MainThread) [supervisor.host.services] Updating service information
23-02-02 00:08:51 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-02-02 00:08:52 INFO (MainThread) [supervisor.host.network] Updating local network information
23-02-02 00:08:52 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
23-02-02 00:08:52 INFO (MainThread) [supervisor.docker.monitor] Started docker events monitor
23-02-02 00:08:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2022.11.0
23-02-02 00:08:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2022.04.1
23-02-02 00:08:52 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
23-02-02 00:08:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2022.07.0
23-02-02 00:08:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2021.10.0
23-02-02 00:08:52 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2022.02.0
23-02-02 00:08:52 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-02-02 00:08:54 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 15 Home Assistant secrets
23-02-02 00:08:54 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/generic-x86-64-homeassistant with version 2023.1.0
23-02-02 00:08:54 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 9.5 / BootSlot A
23-02-02 00:08:54 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
23-02-02 00:08:54 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/cebe7a76 repository
23-02-02 00:08:54 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
23-02-02 00:08:54 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
23-02-02 00:08:54 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 69 new - 0 remove
23-02-02 00:08:54 INFO (MainThread) [supervisor.addons] Found 11 installed add-ons
23-02-02 00:08:54 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to sabeechen/hassio-google-drive-backup-amd64 with version 0.109.2
23-02-02 00:08:54 INFO (SyncWorker_5) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-duckdns with version 1.15.0
23-02-02 00:08:54 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/vscode/amd64 with version 5.5.1
23-02-02 00:08:54 INFO (SyncWorker_6) [supervisor.docker.interface] Attaching to ccab4aaf/amd64-addon-frigate with version 2.3
23-02-02 00:08:54 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-check_config with version 3.11.0
23-02-02 00:08:54 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-mosquitto with version 6.1.3
23-02-02 00:08:55 INFO (SyncWorker_7) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-samba with version 10.0.0
23-02-02 00:08:55 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/appdaemon/amd64 with version 0.11.0
23-02-02 00:08:55 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/esphome/esphome-hassio-amd64 with version 2022.12.3
23-02-02 00:08:55 INFO (SyncWorker_5) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-ssh with version 9.6.1
23-02-02 00:08:55 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-nginx_proxy with version 3.2.0
23-02-02 00:08:55 INFO (MainThread) [supervisor.backups.manager] Found 0 backup files
23-02-02 00:08:55 INFO (MainThread) [supervisor.discovery] Loaded 1 messages
23-02-02 00:08:55 INFO (MainThread) [supervisor.ingress] Loaded 10 ingress sessions
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-02-02 00:08:55 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-02-02 00:08:55 INFO (MainThread) [__main__] Running Supervisor
23-02-02 00:08:55 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
23-02-02 00:08:55 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
23-02-02 00:08:55 INFO (MainThread) [supervisor.core] Supervisor reboot detected
23-02-02 00:08:55 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
23-02-02 00:08:55 INFO (MainThread) [supervisor.core] Supervisor is up and running
23-02-02 00:08:55 INFO (MainThread) [supervisor.host.info] Updating local host information
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.NO_CURRENT_BACKUP/ContextType.SYSTEM
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.CREATE_FULL_BACKUP - ContextType.SYSTEM / None
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.NO_CURRENT_BACKUP - ContextType.SYSTEM / None
23-02-02 00:08:55 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-02-02 00:08:55 INFO (MainThread) [supervisor.host.services] Updating service information
23-02-02 00:08:55 INFO (MainThread) [supervisor.host.network] Updating local network information
23-02-02 00:08:55 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-02-02 00:08:56 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-02-02 00:08:56 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-02-02 00:08:56 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-02-02 00:08:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-02-02 00:08:57 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-02-02 00:08:57 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-02-02 00:08:57 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-02-02 00:08:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-02-02 00:08:58 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-02-02 00:08:58 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-02-02 00:09:52 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:10:23 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:10:54 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:11:25 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:11:56 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:12:27 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:12:58 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:13:29 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:14:00 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:14:31 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:15:02 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:15:33 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:16:04 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:16:35 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:17:06 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:17:37 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:18:08 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:18:39 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:19:10 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-02-02 00:19:22 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from core_ssh
Also I’m not sure if this is normal or not but when I want to restart HA from the cli I need to reset the supervisor first
[core-ssh ~]$ ha core restart
Processing... Done.
Error: Unknown error, see supervisor
[core-ssh ~]$ ha supervisor restart
Command completed successfully.
[core-ssh ~]$ ha core restart
⣯ Processing...
What could be the problem?
How can I get more logs from the problem?