"Unknown error, see supervisor" error when updating Home Assisatnt Operating System from v7.1 to v.7.2

Hi all,

When attempting to update the OS from v7.1 to v7.2, I’m seeing a generic error “Unknown error, see supervisor”. The error is nebulous; and it doesn’t really give much info to work with. I tried looking at the logs, but again, I’m not able to determine where the problem lies.

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:120
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 11:02:25 PM (2 occurrences)
Last logged: 11:43:37 PM

Failed to to call /os/update - Unknown error, see supervisor

Have you checked supervisor logs?

https://your_server/hassio/system

I was able to get this just now from the logs:

22-02-06 22:43:03 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Installation error: Failed updating slot rootfs.0: Opening output device /dev/disk/by-partlabel/hassos-system0 failed: Device or resource busy

I rebooted the VM in VirtualBox and started seeing a bunch of errno=-5 errors that prevented the VM from completing the boot process.

After updating VirtualBox and its extensions and rebooting again, HA was able to start back up. However, I’m seeing this now in the HA logs:

bad sha1 file: .git/objects/0c/libbz2.so.1
bad sha1 file: .git/objects/0c/libbz2.so.1.0.8
bad sha1 file: .git/objects/0c/libexpat.so.1
bad sha1 file: .git/objects/0c/libexpat.so.1.8.1
bad sha1 file: .git/objects/0c/libffi.so.7
bad sha1 file: .git/objects/0c/libffi.so.7.1.0
bad sha1 file: .git/objects/0c/libgcc_s.so.1
bad sha1 file: .git/objects/0c/libgdbm.so.6
bad sha1 file: .git/objects/0c/libgdbm.so.6.0.0
bad sha1 file: .git/objects/0c/libgdbm_compat.so.4
bad sha1 file: .git/objects/0c/libgdbm_compat.so.4.0.0
bad sha1 file: .git/objects/0c/libintl.so.8
bad sha1 file: .git/objects/0c/libintl.so.8.2.0
bad sha1 file: .git/objects/0c/libnsl.so.2
bad sha1 file: .git/objects/0c/libnsl.so.2.0.1
bad sha1 file: .git/objects/0c/libsqlite3.so.0
bad sha1 file: .git/objects/0c/libsqlite3.so.0.8.6
bad sha1 file: .git/objects/0c/libstdc++.so.6
bad sha1 file: .git/objects/0c/libstdc++.so.6.0.28
bad sha1 file: .git/objects/0c/libtirpc.so.3
bad sha1 file: .git/objects/0c/libtirpc.so.3.0.0
bad sha1 file: .git/objects/0c/bin
bad sha1 file: .git/objects/0c/include
bad sha1 file: .git/objects/0c/lib
bad sha1 file: .git/objects/0c/share
error: unable to mmap .git/objects/0c/d8bcb63fe769a0fd37dbd5eb65583f0a5ed5ae: Bad message
error: 0cd8bcb63fe769a0fd37dbd5eb65583f0a5ed5ae: object corrupt or missing: .git/objects/0c/d8bcb63fe769a0fd37dbd5eb65583f0a5ed5ae
error: unable to mmap .git/objects/0c/ccaa68c4bb5490b0747c284e26713448b2adbb: Bad message
error: 0cccaa68c4bb5490b0747c284e26713448b2adbb: object corrupt or missing: .git/objects/0c/ccaa68c4bb5490b0747c284e26713448b2adbb
error: unable to mmap .git/objects/0c/56bf15e13dfd3048ea1b7fe3014283bc787e52: Bad message
error: 0c56bf15e13dfd3048ea1b7fe3014283bc787e52: object corrupt or missing: .git/objects/0c/56bf15e13dfd3048ea1b7fe3014283bc787e52
error: unable to mmap .git/objects/0c/9df7afa7dce0a2a12a8cbf8dc413e91e0aec3b: Bad message
error: 0c9df7afa7dce0a2a12a8cbf8dc413e91e0aec3b: object corrupt or missing: .git/objects/0c/9df7afa7dce0a2a12a8cbf8dc413e91e0aec3b
error: unable to mmap .git/objects/0c/d6840d50bbc7f397fa20167df422c70ac0d508: Bad message
error: 0cd6840d50bbc7f397fa20167df422c70ac0d508: object corrupt or missing: .git/objects/0c/d6840d50bbc7f397fa20167df422c70ac0d508
error: unable to mmap .git/objects/0c/5f4b0405698dc1ddee650cdb32f12bf6101075: Bad message
error: 0c5f4b0405698dc1ddee650cdb32f12bf6101075: object corrupt or missing: .git/objects/0c/5f4b0405698dc1ddee650cdb32f12bf6101075
error: unable to mmap .git/objects/0c/a4763780b709c658cf73f3a26db1a0ab64a76a: Bad message
error: 0ca4763780b709c658cf73f3a26db1a0ab64a76a: object corrupt or missing: .git/objects/0c/a4763780b709c658cf73f3a26db1a0ab64a76a
error: unable to mmap .git/objects/0c/ee44b30e4dd8f1489c143466ac07b5b37acf47: Bad message
error: 0cee44b30e4dd8f1489c143466ac07b5b37acf47: object corrupt or missing: .git/objects/0c/ee44b30e4dd8f1489c143466ac07b5b37acf47
error: unable to mmap .git/objects/0c/31620e87c008818404658740489744ae539596: Bad message
error: 0c31620e87c008818404658740489744ae539596: object corrupt or missing: .git/objects/0c/31620e87c008818404658740489744ae539596
error: unable to mmap .git/objects/0c/4cd9ef13bf3f6068e61fd10fe38cad2baf7d23: Bad message
error: 0c4cd9ef13bf3f6068e61fd10fe38cad2baf7d23: object corrupt or missing: .git/objects/0c/4cd9ef13bf3f6068e61fd10fe38cad2baf7d23
error: unable to mmap .git/objects/0c/5293fd835d48eb222b95109ca9717da9ad1f5e: Bad message
error: 0c5293fd835d48eb222b95109ca9717da9ad1f5e: object corrupt or missing: .git/objects/0c/5293fd835d48eb222b95109ca9717da9ad1f5e
error: unable to mmap .git/objects/0c/2fb01fec4818694619f07464d719456df15132: Bad message
error: 0c2fb01fec4818694619f07464d719456df15132: object corrupt or missing: .git/objects/0c/2fb01fec4818694619f07464d719456df15132
error: unable to mmap .git/objects/0c/dfa45e187b8790375646a1b82f12bbbd9e7230: Bad message
error: 0cdfa45e187b8790375646a1b82f12bbbd9e7230: object corrupt or missing: .git/objects/0c/dfa45e187b8790375646a1b82f12bbbd9e7230
error: unable to mmap .git/objects/0c/ee7a4ec30823a1009fb3dec4806a1ce069298a: Bad message
error: 0cee7a4ec30823a1009fb3dec4806a1ce069298a: object corrupt or missing: .git/objects/0c/ee7a4ec30823a1009fb3dec4806a1ce069298a
error: unable to mmap .git/objects/0c/189181228942989cf71d0623c19f1dc13aaf09: Bad message
error: 0c189181228942989cf71d0623c19f1dc13aaf09: object corrupt or missing: .git/objects/0c/189181228942989cf71d0623c19f1dc13aaf09
error: unable to mmap .git/objects/0c/a69361980a8229e7eb072d0b528e625db72f9f: Bad message
error: 0ca69361980a8229e7eb072d0b528e625db72f9f: object corrupt or missing: .git/objects/0c/a69361980a8229e7eb072d0b528e625db72f9f
error: unable to mmap .git/objects/0c/fd6a049b94a6f33abc9f0351923a3ef7644bef: Bad message
error: 0cfd6a049b94a6f33abc9f0351923a3ef7644bef: object corrupt or missing: .git/objects/0c/fd6a049b94a6f33abc9f0351923a3ef7644bef
error: unable to mmap .git/objects/0c/cb45daa475354e4f4f25353adf07e000f6042a: Bad message
error: 0ccb45daa475354e4f4f25353adf07e000f6042a: object corrupt or missing: .git/objects/0c/cb45daa475354e4f4f25353adf07e000f6042a
error: unable to mmap .git/objects/0c/9b813d1fae9f35adf215f44f9d292e5c56ff23: Bad message
error: 0c9b813d1fae9f35adf215f44f9d292e5c56ff23: object corrupt or missing: .git/objects/0c/9b813d1fae9f35adf215f44f9d292e5c56ff23
error: unable to mmap .git/objects/0c/d6e2e1887f5d3037af83f372348ea48e0a430b: Bad message
error: 0cd6e2e1887f5d3037af83f372348ea48e0a430b: object corrupt or missing: .git/objects/0c/d6e2e1887f5d3037af83f372348ea48e0a430b
error: unable to mmap .git/objects/0c/20b0c31a7ea48d0fe54b16979d864329f3751b: Bad message
error: 0c20b0c31a7ea48d0fe54b16979d864329f3751b: object corrupt or missing: .git/objects/0c/20b0c31a7ea48d0fe54b16979d864329f3751b
error: unable to mmap .git/objects/0c/0d781349d983ee99004d22d3082711ec67a044: Bad message
error: 0c0d781349d983ee99004d22d3082711ec67a044: object corrupt or missing: .git/objects/0c/0d781349d983ee99004d22d3082711ec67a044
error: unable to mmap .git/objects/0c/e65bb5e0fbc3340e5695781d43b883ad8e00c9: Bad message
error: 0ce65bb5e0fbc3340e5695781d43b883ad8e00c9: object corrupt or missing: .git/objects/0c/e65bb5e0fbc3340e5695781d43b883ad8e00c9'.
22-02-07 00:33:13 ERROR (MainThread) [supervisor.store] Can't load data from repository https://github.com/hassio-addons/repository
22-02-07 00:33:20 CRITICAL (SyncWorker_0) [supervisor.store.data] Can't process a0d7b954 because of Filesystem issues: [Errno 74] Bad message: '/data/addons/git/a0d7b954/.git/objects/0c/diff'

And this:

rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/settings.json': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/workspaceStorage': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/globalStorage': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/customBuiltinExtensionsCache.json': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/snippets': Bad message
22-02-07 00:34:11 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/caches': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/diff': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/link': Bad message
22-02-07 00:34:11 INFO (MainThread) [supervisor.host.manager] Host information reload completed
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/work': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/lower': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/committed': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/.dockerenv': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/etc': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/dev': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/hosts': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/hostname': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/resolv.conf': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/mtab': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/diff': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/link': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/work': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/lower': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/merged': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/run': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/etc': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/work': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/mount-id': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/init-id': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/parent': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/checkpoints': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/hosts': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/resolv.conf': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/hostconfig.json': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/config.v2.json': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/resolv.conf.hash': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/hostname': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/mounts': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/docker.sock': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/s6': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/container_environment': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/env-stage1': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/env-stage2': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/env-stage3': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/services': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/etc': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/vscode': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/options.json': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/.ssh': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/.zsh_history': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/git': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/pulse.sock': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/8034f7cfe2054bda8e560b5e3de2c6e4-device-volumes.tdb': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/8034f7cfe2054bda8e560b5e3de2c6e4-stream-volumes.tdb': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/8034f7cfe2054bda8e560b5e3de2c6e4-card-database.tdb': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/8034f7cfe2054bda8e560b5e3de2c6e4-default-sink': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/8034f7cfe2054bda8e560b5e3de2c6e4-default-source': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/services.d': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/observer': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/run': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/1b680029e00853c6f1edcd6c5cbfbfdec26fa4': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/b09f5d1efc138a6b69b045f72969a7ce58c62e': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/e65d7adaee969229c555ce7bd52f9ff8ae59b1': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/18a117c6c1e3bff7a2f2927d39384c4c6a3818': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/automation': Bad message
rm: can't stat '/data/addons/git/a0d7b954/.git/objects/0c/script': Bad message
22-02-07 00:34:11 ERROR (MainThread) [supervisor.utils] Can't remove folder /data/addons/git/a0d7b954: None
22-02-07 00:34:11 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
22-02-07 00:34:11 ERROR (MainThread) [supervisor.store.git] Can't load /data/addons/git/a0d7b954

And this in the VirtualBox console:

Update: HA is “technically” working now, although I’m seeing an error that Supervisor is in an unhealthy state.

image

Logs are showing this. Not quite sure what the issue is or how to fix it. I’ve reloaded and restarted supervisor, but the errors persist.

22-02-07 23:18:45 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 7.2 / BootSlot A
22-02-07 23:18:51 CRITICAL (MainThread) [supervisor.core] Fatal error happening on load Task <coroutine object StoreManager.load at 0x7f9bb0b87840>: [Errno 74] Bad message: '/data/addons/git/a0d7b954/.git/objects/0c/diff'
22-02-07 23:18:51 INFO (MainThread) [supervisor.addons] Found 2 installed add-ons
22-02-07 23:18:51 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/vscode/amd64 with version 4.1.0
22-02-07 23:18:51 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-ssh with version 9.3.0
22-02-07 23:18:51 INFO (MainThread) [supervisor.backups.manager] Found 16 backup files
22-02-07 23:18:51 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
22-02-07 23:18:51 INFO (MainThread) [supervisor.ingress] Loaded 1 ingress sessions
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-02-07 23:18:51 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not healthy
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
22-02-07 23:18:51 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-02-07 23:18:51 INFO (MainThread) [__main__] Running Supervisor
22-02-07 23:18:51 CRITICAL (MainThread) [supervisor.core] System is running in an unhealthy state and needs manual intervention!
22-02-07 23:18:51 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
22-02-07 23:18:51 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
22-02-07 23:18:51 INFO (MainThread) [supervisor.core] Supervisor reboot detected
22-02-07 23:18:51 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
22-02-07 23:18:51 INFO (MainThread) [supervisor.core] Supervisor is up and running
22-02-07 23:18:51 INFO (MainThread) [supervisor.host.info] Updating local host information

Take a look here: https://github.com/home-assistant/supervisor/issues/3048

Thanks. I took a look but don’t think I have any rogue code. Everything was working fine until I updated supervisor to v7.2.

When I rebooted again, I was seeing a lot of messages referencing git code/addon. After looking through the addons, I found a0d7b954 was the Visual Studio Code addon. I uninstalled it and rebooted, but I’m still getting the errors.

I SSHed into HA and tried to find the /data/addons/git/a0d7b954 directory, but I’m unable find it anywhere. /data/addons does not have a git folder. find / -name “git” does not return a path that’s even close.

Any insight? I have this generic reason for the supervisor’s unhealthy state. I followed instructions in the link but it did not resolve the issue.

This is in the logs as well:

22-02-10 11:29:22 CRITICAL (MainThread) [supervisor.core] Fatal error happening on load Task <coroutine object StoreManager.load at 0x7fe6f6ef07c0>: [Errno 74] Bad message: '/data/addons/git/a0d7b954/.git/objects/0c/diff'

Rather than chase this issue and go down a seemingly endless rabbit hole, I opted to create a new HA VM and start from scratch again. I have folder backups downloaded from WinSCP and will reload my config from there. Thanks everyone for your help on this!