operating-system: Failed to Update from HA OS 8.1 to 8.2
Describe the issue you are experiencing
Updating from HA OS 8.1 to 8.2 from the UI stops without presenting any errors on screen. Here’s a log snapshot from Supervisor:
22-06-14 17:15:25 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Installation error: Failed marking slot kernel.0 non-bootable: Failed marking ‘kernel.0’ as bad: Failed to run grub-editenv: Child process exited with code 1
What operating system image do you use?
generic-x86-64 (Generic UEFI capable x86-64 systems)
What version of Home Assistant Operating System is installed?
8.1
Did you upgrade the Operating System.
No
Steps to reproduce the issue
- Once Home Assistant Update notifications appears, click on Settings and navigate to the notification
- Hit Install and wait
- About 2 minutes later, the “Installing” status clears up with no errors, but HA is still on old version (8.1) …
Anything in the Supervisor logs that might be useful for us?
22-06-14 17:14:52 INFO (MainThread) [supervisor.os.manager] Fetch OTA update from https://github.com/home-assistant/operating-system/releases/download/8.2/haos_generic-x86-64-8.2.raucb
22-06-14 17:14:55 INFO (MainThread) [supervisor.host.info] Updating local host information
22-06-14 17:14:56 INFO (MainThread) [supervisor.host.services] Updating service information
22-06-14 17:14:56 INFO (MainThread) [supervisor.host.network] Updating local network information
22-06-14 17:14:57 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-06-14 17:14:57 INFO (MainThread) [supervisor.host.manager] Host information reload completed
22-06-14 17:15:23 INFO (MainThread) [supervisor.os.manager] Completed download of OTA update file /data/tmp/hassos-8.2.raucb
22-06-14 17:15:25 ERROR (MainThread) [supervisor.os.manager] Home Assistant Operating System update failed with: Installation error: Failed marking slot kernel.0 non-bootable: Failed marking 'kernel.0' as bad: Failed to run grub-editenv: Child process exited with code 1
Anything in the Host logs that might be useful for us?
nope. Just repetitive lines:
[896672.789023] loop0: detected capacity change from 0 to 448826
[896672.794188] loop0: detected capacity change from 448826 to 448824
[896852.500261] loop0: detected capacity change from 0 to 448826
[896852.509336] loop0: detected capacity change from 448826 to 448824
[897017.528835] loop0: detected capacity change from 0 to 448826
[897017.533953] loop0: detected capacity change from 448826 to 448824
[897044.948195] audit: type=1334 audit(1655241295.712:1262): prog-id=513 op=LOAD
[897044.948317] audit: type=1334 audit(1655241295.712:1263): prog-id=514 op=LOAD
[897045.456066] audit: type=1334 audit(1655241296.220:1264): prog-id=515 op=LOAD
[897045.456124] audit: type=1334 audit(1655241296.220:1265): prog-id=516 op=LOAD
[897075.099182] loop0: detected capacity change from 0 to 448826
[897075.107075] loop0: detected capacity change from 448826 to 448824
[897075.518114] audit: type=1334 audit(1655241326.283:1266): prog-id=0 op=UNLOAD
[897075.518128] audit: type=1334 audit(1655241326.283:1267): prog-id=0 op=UNLOAD
[897075.865103] audit: type=1334 audit(1655241326.630:1268): prog-id=0 op=UNLOAD
[897075.865118] audit: type=1334 audit(1655241326.630:1269): prog-id=0 op=UNLOAD
System Health information
System Health
| version | core-2022.6.5 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.9.12 |
| os_name | Linux |
| os_version | 5.15.41 |
| arch | x86_64 |
| timezone | America/Iqaluit |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 4978 |
| Installed Version | 1.25.5 |
| Stage | running |
| Available Repositories | 1113 |
| Downloaded Repositories | 3 |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 8.1 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2022.05.3 |
| agent_version | 1.2.1 |
| docker_version | 20.10.14 |
| disk_total | 219.4 GB |
| disk_used | 4.6 GB |
| healthy | true |
| supported | true |
| board | generic-x86-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | SSH & Web Terminal (11.0.1), Mosquitto broker (6.1.2), File editor (5.3.3), Samba share (9.7.0), Zigbee2MQTT (1.25.2-1), AdGuard Home (4.6.0) |
Dashboards
| dashboards | 1 |
|---|---|
| resources | 0 |
| views | 5 |
| mode | storage |
Recorder
| oldest_recorder_run | June 9, 2022 at 2:13 PM |
|---|---|
| current_recorder_run | June 14, 2022 at 12:33 PM |
| estimated_db_size | 100.02 MiB |
| database_engine | sqlite |
| database_version | 3.34.1 |
Additional information
My host is Dell Wyse 7020. Runs HA comfortably with less than 10% utilization. My upgrades post 7.6 experience have been quite bumpy.
Going from 7.6 to 8.0. I got hit by the GRUB2 bugs and my instance had to be scraped and restored from backup. Naturally, I skipped 8.0, and updated from 7.6 > 8.1. This was fine, but anytime I reboot, GRUB defaults to “Slot A” which contained 7.6, and I had to manually hook a monitor to the box to select Slot B for 8.1 to load
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 18 (2 by maintainers)
I managed to fix it based on the comments from agners in 2031