home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.8k stars 959 forks source link

HAOS 10.4 to 10.5 shows successful, reboots, stays on 10.4, suggests 10.5 upgrade #2766

Closed GR0DZ1LLA closed 8 months ago

GR0DZ1LLA commented 1 year ago

Describe the issue you are experiencing

On HAOS 10.4, Settings suggest upgrade to 10.5. I do it, it reboots itself, still asks for upgrade to 10.5. Tried many times. Have gotten some help on Discord getting logs.

[32m23-09-21 10:41:45 INFO (MainThread) [supervisor.os.manager] Fetch OTA update from https://github.com/home-assistant/operating-system/releases/download/10.5/haos_generic-x86-64-10.5.raucb 23-09-21 10:41:50 INFO (MainThread) [supervisor.os.manager] Completed download of OTA update file /data/tmp/hassos-10.5.raucb 23-09-21 10:42:07 INFO (MainThread) [supervisor.os.manager] Install of Home Assistant Operating System 10.5 success

Then after reboot: [32m23-09-21 10:44:12 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 10.4 / BootSlot A

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?

10.4

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Go to Settings
  2. Select update
  3. Select Install
  4. Allow system to reboot itself
  5. Log in and still on 10.4 with the update to 10.5 being suggested ...

Anything in the Supervisor logs that might be useful for us?

https://dpaste.org/AzRLW#L2932

[32m23-09-21 10:44:12 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 10.4 / BootSlot A
23-09-21 10:44:17 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
23-09-21 10:44:17 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
23-09-21 10:44:17 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
23-09-21 10:44:21 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 71 new - 0 remove
23-09-21 10:44:21 INFO (MainThread) [supervisor.addons] Found 3 installed add-ons
23-09-21 10:44:21 INFO (MainThread) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-zwave_js with version 0.1.90
23-09-21 10:44:21 INFO (MainThread) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-configurator with version 5.6.0
23-09-21 10:44:21 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/hassio-addons/ssh/amd64 with version 15.0.8
23-09-21 10:44:21 INFO (MainThread) [supervisor.backups.manager] Found 10 backup files
23-09-21 10:44:22 INFO (MainThread) [supervisor.discovery] Loaded 1 messages
23-09-21 10:44:22 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state setup
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-09-21 10:44:22 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - setup
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
23-09-21 10:44:22 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-09-21 10:44:22 INFO (MainThread) [__main__] Running Supervisor
23-09-21 10:44:22 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
23-09-21 10:44:22 INFO (MainThread) [supervisor.addons] Phase 'initialize' starting 0 add-ons
23-09-21 10:44:22 INFO (MainThread) [supervisor.addons] Phase 'system' starting 0 add-ons
23-09-21 10:44:22 INFO (MainThread) [supervisor.addons] Phase 'services' starting 2 add-ons
23-09-21 10:44:23 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-zwave_js with version 0.1.90
23-09-21 10:44:23 WARNING (MainThread) [supervisor.docker.addon] Advanced SSH & Web Terminal running with disabled protected mode!
23-09-21 10:44:24 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/ssh/amd64 with version 15.0.8
23-09-21 10:44:29 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from core_zwave_js
23-09-21 10:44:29 INFO (MainThread) [supervisor.core] Start Home Assistant Core
23-09-21 10:44:29 INFO (SyncWorker_3) [supervisor.docker.manager] Starting homeassistant
23-09-21 10:44:30 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-09-21 10:44:49 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state startup
23-09-21 10:44:49 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-09-21 10:44:51 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-09-21 10:44:52 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-09-21 10:44:52 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-09-21 10:44:52 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-09-21 10:44:52 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-09-21 10:45:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 0 new - 0 remove
23-09-21 10:45:04 INFO (MainThread) [supervisor.store] Loading add-ons from store: 71 all - 0 new - 0 remove
23-09-21 10:45:50 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
23-09-21 10:45:50 INFO (MainThread) [supervisor.addons] Phase 'application' starting 1 add-ons
23-09-21 10:45:52 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-configurator with version 5.6.0
23-09-21 10:46:23 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
23-09-21 10:46:23 INFO (MainThread) [supervisor.core] Supervisor is up and running
23-09-21 10:46:23 INFO (MainThread) [supervisor.host.info] Updating local host information
23-09-21 10:46:23 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-09-21 10:46:23 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
23-09-21 10:46:24 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-09-21 10:46:24 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
23-09-21 10:46:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-09-21 10:46:25 INFO (MainThread) [supervisor.host.services] Updating service information
23-09-21 10:46:25 INFO (MainThread) [supervisor.host.network] Updating local network information
23-09-21 10:46:25 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-09-21 10:46:25 INFO (MainThread) [supervisor.host.manager] Host information reload completed
23-09-21 10:48:53 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
23-09-21 10:48:53 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
23-09-21 10:48:53 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from a0d7b954_ssh
23-09-21 10:48:53 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
23-09-21 10:48:58 INFO (MainThread) [supervisor.api.middleware.security] /host/logs access from a0d7b954_ssh

Anything in the Host logs that might be useful for us?

https://dpaste.org/JMk0T

Not that I can tell.

System information

System Information

version core-2023.9.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.39
arch x86_64
timezone America/New_York
config_dir /config
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 10.4 -- | -- update_channel | stable supervisor_version | supervisor-2023.09.2 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 54.3 GB disk_used | 5.0 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Z-Wave JS (0.1.90), File editor (5.6.0), Advanced SSH & Web Terminal (15.0.8)
Dashboards dashboards | 1 -- | -- resources | 0 mode | auto-gen
Recorder oldest_recorder_run | September 12, 2023 at 11:43 PM -- | -- current_recorder_run | September 21, 2023 at 10:44 AM estimated_db_size | 16.86 MiB database_engine | sqlite database_version | 3.41.2

Additional information

No response

agners commented 12 months ago

After the update, when checking the screen of our system, do see if Home Assistant attempts to boot from "Slot B"? A boot menu should appear briefly with Slot B selected.

GR0DZ1LLA commented 12 months ago

Ok I see it. It tries to boot from Slot A. Should I manually try Slot B?

FYI, I run HAOS on an APU2 that is head-less. Over serial, I can see this boot menu. It says Booting 'Slot A (OK=0 TRY=0)'

I tried the upgrade again while watching watch the boot process and it only selects Slot A.

GR0DZ1LLA commented 12 months ago

Alright, I took a backup and then attempted the update again. When it went to reboot automatically, I interrupted the boot and manually selected Slot B and it worked. I now have 10.5 running. However, after a forced reboot, it booted Slot A automatically and I'm back to 10.4.

GR0DZ1LLA commented 11 months ago

@agners any further help on this considering what i was able to do?

agners commented 11 months ago

Ok I see it. It tries to boot from Slot A. Should I manually try Slot B?

FYI, I run HAOS on an APU2 that is head-less. Over serial, I can see this boot menu. It says Booting 'Slot A (OK=0 TRY=0)'

Hm I see, do you have a serial console in Home Assistant? Probably not, afaik the serial console for the generic-x86-64 image is not enabled :cry:

You can setup an SSH access via port 22222, see SSH access to the host.

Using the access, can you check this file?

# cat /mnt/boot/EFI/BOOT/grubenv
GR0DZ1LLA commented 11 months ago

➜ ~ cat /mnt/boot/EFI/BOOT/grubenv cat: can't open '/mnt/boot/EFI/BOOT/grubenv': No such file or directory ➜ ~

GR0DZ1LLA commented 11 months ago

@agners I did this a while ago and am just remembering that I had to do this to get it to work on the APU4:

Connect to the APU Serial to the box, power on

The APU will not see this on first boot. Need to enter into the settings, and exit out. Upon the next reboot the drive will appear.

mount /dev/sda1 /mnt

grub-install --boot-directory=/mnt/boot --force /dev/sda

nano /mnt/boot/grub/grub.cfg

set root=(hd0,gpt1) configfile (hd0,gpt1)/efi/boot/grub.cfg

umount /mnt

Is this why I can't get an upgrade to work effectively?

GR0DZ1LLA commented 11 months ago

https://community.home-assistant.io/t/add-support-for-apu-devices/449610/7

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.