home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
5.1k stars 994 forks source link

HomeAssistant Update does not work #1582

Closed Baggerfahrer closed 3 years ago

Baggerfahrer commented 3 years ago

Hardware Environment

Home Assistant OS release:

Baggerfahrer commented 3 years ago

No one an Idea?

agners commented 3 years ago

HAOS uses a A/B style update. If booting with the updated system fails, it falls back to the other system instance. It seems this is what is happening in your case: The system fails to boot the newly installed 6.4, and falls back to 5.13.

The question is why does booting 6.4 fails in your case.

Can you get the logs of our update system rauc using the OS level SSH access?

journalctl -u rauc.service

Also logs of a failed update attempt is interesting. Try to update the system again, when it comes back up again check the current system state and get the logs from the previous boot attempt:

# ha os info
# ha os update --version 6.4
...
# ha os info (verify that update failed)
# journalctl --list-boots
(see lists of boot, get the hash after previous boot id, column starting with `-1`)
# journalctl -b <previsous-boot-hash>
agners commented 3 years ago

Do you happen to have an Arduino Mega connected? Then it might be related to #1544. Or maybe other USB devices?

Baggerfahrer commented 3 years ago

Do you happen to have an Arduino Mega connected? Then it might be related to #1544. Or maybe other USB devices?

i think this did the trick! i disconnected all the attached usb devices and started the update again. i did not use an arduino, but maybe something else did the problem.

Many thanks!