Crash upon OS/Core Update

Hello,

I’m running HA OS on a RPI 3B+ on a SD card. I’ve had the issue for a while that especially updating HA Core to a newer version either takes forever (multiple hours/a day) or it fails and makes my HA instances inaccessbile. Sometimes, it randomly comes back up after a day or so and is updated, and sometimes it isn’t updated.

I have started an update from 2022.9.0 to 9.2 about 1,5h ago and it just keeps going and going. The HA Observer states that the Supervisor is online, unsupported and unhealthy. Supervisor logs aren’t loading.

Here the HA Core logs:

It of course might be a corrupt SD card, but I’d like to determine that somehow before I replace it. Is there any way of doing so?

Edir: The Supervisor Log after rebooting the system. I pressed the reboot button, nothing happened, a few minutes later it rebooted and is now on 9.2.

 raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.10/site-packages/urllib3/packages/six.py", line 770, in reraise
    raise value
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 451, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=900)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/docker/interface.py", line 296, in _is_running
    docker_container = self.sys_docker.containers.get(self.name)
  File "/usr/local/lib/python3.10/site-packages/docker/models/containers.py", line 924, in get
    resp = self.client.api.inspect_container(container_id)
  File "/usr/local/lib/python3.10/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/docker/api/container.py", line 784, in inspect_container
    self._get(self._url("/containers/{0}/json", container)), True
  File "/usr/local/lib/python3.10/site-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 578, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=900)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/misc/scheduler.py", line 62, in _wrap_task
    await task.coro_callback()
  File "/usr/src/supervisor/supervisor/misc/tasks.py", line 145, in _watchdog_homeassistant_api
    if not await self.sys_homeassistant.core.is_running():
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/docker/interface.py", line 302, in _is_running
    raise DockerRequestError() from err
supervisor.exceptions.DockerRequestError
22-09-13 17:16:59 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /auth
22-09-13 17:20:09 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /supervisor/info
22-09-13 17:20:09 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /supervisor/info
22-09-13 17:22:19 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /auth
22-09-13 17:23:42 ERROR (MainThread) [supervisor.utils] Can't execute restart while a task is in progress
22-09-13 17:27:11 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /auth
22-09-13 17:28:53 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
22-09-13 17:28:53 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_ssh
22-09-13 17:28:53 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_ssh
22-09-13 17:28:53 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from core_ssh
22-09-13 17:31:53 INFO (SyncWorker_5) [supervisor.docker.interface] Stopping homeassistant application
22-09-13 17:32:19 INFO (SyncWorker_5) [supervisor.docker.interface] Cleaning homeassistant application
22-09-13 17:32:19 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
22-09-13 17:32:21 INFO (SyncWorker_4) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/raspberrypi3-64-homeassistant with version 2022.9.2
22-09-13 17:32:21 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-09-13 17:32:41 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /auth
22-09-13 17:32:46 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-09-13 17:32:48 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-09-13 17:32:50 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-09-13 17:32:50 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
22-09-13 17:32:50 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-09-13 17:32:50 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/mKeRix/hassio-repo repository
22-09-13 17:32:50 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-09-13 17:32:50 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/Sebclem/sebclem-hassio-addon-repository repository
22-09-13 17:32:56 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
22-09-13 17:32:56 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
22-09-13 17:34:31 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-09-13 17:34:31 INFO (MainThread) [supervisor.homeassistant.core] Successfully started Home Assistant 2022.9.2
22-09-13 17:34:32 INFO (SyncWorker_5) [supervisor.docker.interface] Cleanup images: ['ghcr.io/home-assistant/raspberrypi3-64-homeassistant:2022.9.0']
22-09-13 17:35:46 INFO (SyncWorker_7) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi3-64-homeassistant
22-09-13 17:36:05 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-09-13 17:36:27 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-09-13 17:36:28 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-09-13 17:36:32 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-09-13 17:36:32 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
22-09-13 17:36:32 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-09-13 17:36:32 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-09-13 17:36:32 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/mKeRix/hassio-repo repository
22-09-13 17:36:32 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/Sebclem/sebclem-hassio-addon-repository repository
22-09-13 17:36:38 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
22-09-13 17:36:38 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
22-09-13 17:37:27 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /auth
22-09-13 17:37:58 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-09-13 17:40:01 INFO (SyncWorker_4) [supervisor.docker.interface] Cleaning addon_core_deconz application
22-09-13 17:40:07 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-deconz with version 6.15.0
22-09-13 17:40:07 WARNING (MainThread) [supervisor.addons.addon] core_deconz is already running!
22-09-13 17:41:51 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json

The supervisor is still unhealthy and unsupported.

1 Like

I get exactly the same.

Sorry for necro… Ever figure this out?