Updating Home Assistant Core fails with vague "Unknown error, see supervisor" error

My attempt to update Home Assistant Core 2022.3.2 → 2022.3.3 constantly fails with vafue error message “Unknown error, see supervisor”.

Supervisor logs shows various errors but I cannot understand what exactly is the problem and how can be fixed.

22-03-10 07:56:02 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
22-03-10 07:56:02 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
22-03-10 07:56:02 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
22-03-10 07:56:02 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE
22-03-10 07:56:22 ERROR (MainThread) [supervisor.resolution.check] Error during processing IssueType.TRUST: 
22-03-10 07:56:22 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
22-03-10 07:56:23 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 35.168.17.115:443: i/o timeout"
22-03-10 07:56:42 ERROR (MainThread) [supervisor.resolution.check] Error during processing IssueType.TRUST: 
22-03-10 07:56:42 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
22-03-10 07:56:43 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 35.168.17.115:443: i/o timeout"
22-03-10 07:57:03 ERROR (MainThread) [supervisor.resolution.check] Error during processing IssueType.TRUST: 
22-03-10 07:57:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
22-03-10 07:57:03 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-03-10 07:57:03 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-03-10 07:57:03 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 35.168.17.115:443: i/o timeout"
22-03-10 07:57:23 WARNING (MainThread) [supervisor.utils.codenotary] rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 35.168.17.115:443: i/o timeout"
22-03-10 07:57:23 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-03-10 07:57:23 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-03-10 07:57:23 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
22-03-10 08:12:03 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 04ae961d
22-03-10 08:12:03 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
22-03-10 08:16:46 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
22-03-10 08:16:56 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug 04ae961d completed
22-03-10 08:16:56 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2022.3.3
22-03-10 08:16:56 INFO (SyncWorker_7) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/raspberrypi3-homeassistant:2022.3.2 to ghcr.io/home-assistant/raspberrypi3-homeassistant:2022.3.3
22-03-10 08:16:56 INFO (SyncWorker_7) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/raspberrypi3-homeassistant with tag 2022.3.3.
22-03-10 08:17:18 ERROR (MainThread) [supervisor.jobs] Unhandled exception: 
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
    return await self._method(*args, **kwargs)
  File "/usr/src/supervisor/supervisor/homeassistant/core.py", line 229, in update
    await _update(version)
  File "/usr/src/supervisor/supervisor/homeassistant/core.py", line 207, in _update
    await self.instance.update(
  File "/usr/src/supervisor/supervisor/utils/__init__.py", line 33, in wrap_api
    return await method(api, *args, **kwargs)
asyncio.exceptions.TimeoutError
22-03-10 08:17:28 ERROR (MainThread) [supervisor.utils.codenotary] Timeout while processing CodeNotary
22-03-10 08:18:58 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

System: Home Assistant 2022.3.2 on RPi3

Google does not help with advices.
Any suggestions?

Quite a few people seem to be having this issue:

I experienced the same timeout error earlier too.

In my case though, it was not during an upgrade but after a fresh install on a new machine. It was stuck on the initial screen with the pulsating blue dot. When looking at the log, it kept showing this timeout error and it kept retrying every 30 seconds. I stopped it and closed everything.
I figured it was some kind of remote server issue.

Hopefully, that will be fixed tomorrow.
I will retry later to initialize and see how that goes.

Edit: I just remembered that after my fresh install, I saw in the log that it was downloading 2022.3.3 and tried to install it. That’s when the timeout error occurred. So I guess it’s similar to this upgrade problem.

Something similar. Upgrade ended up borking my perviously supported Debian 11 Supervised install into a Debian 11 Unsupervised Unsupported install. The reboot allowed me to upgrade Core successfully, but the Unsupported warning remains. Not sure what to do other than pull a backup and spend my weekend reinstalling Debian…then HA and hopefully reload from back-up.

Edit: corrected unsupervised to unsupported.

There is no such thing.

It takes less than an hour to install Debian and restore a HA backup. I’m not sure what you are doing that you need to dedicate a weekend to it.

Unsupported I meant to say (not Unsupervised). And it may take you less than an hour to spin one up and get HA on it, but for the less linux oriented…if anything doesn’t work, it’s a significant amount of forum searching, rabbit holing, and last resort Googling. Not everyone on here lives completely in linux. I don’t set one of these up often enough to do it in my sleep.

If I’m nuking the OS anyway, I may take another stab at getting HA OS bare metal working and ditch Debian completely.

And neither do I.

This is why there are easy to follow guides to help you get it done.

If you are starting with a fresh a fresh install, I would recommend you use the generic HA OS instead of Supervised. If you are not very proficient with Linux, as you have stated, then running Supervised is not a recommended option.

I tried Generic HA OS last time, but couldn’t get it to boot, hence I fell back to a Debian Supervised which got me up & running. And, yeah I might just give it another shot…I have a spare SSD lying around so why not.

2 Likes

Update is now working fine without any change on my side.
HA bug resolved in scope of Supervisor 22.03.2: Timeout while processing CodeNotary · Issue #3495 · home-assistant/supervisor · GitHub