home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.55k stars 939 forks source link

"A start job is running for HAOS swap" - takes forever #3182

Closed tweety88 closed 4 months ago

tweety88 commented 4 months ago

Describe the issue you are experiencing

I am trying to freshly install HAOS on flash drive or SSD and run it on Raspberry Pi 5 8Gb. I tried fresh install on 2 different storages - USB 3.0 Flash Drive and on SSD connected via cable to USB 3.0. The image was created through 2 different ways - using the Raspberry Imager and the existing there HA option and via manually downloading the HA image and use it (tried with 11.5 and even 12.0). In all those cases, when I start the Pi 5, it stops on the step of "running for HAOS swap" and doesn't continue.

After many restarts and tries, it happens to skip the problematic step and to continue. Then, I managed to run and configure properly the HA. At that moment I tried to restart it several times, and it was properly working during every try. After having the Raspberry off for few days and I turned it on, the situation was the same - same message and doesn't continue. I have no idea what I can do and what other information I can extract.

image

What operating system image do you use?

rpi5-64 (Raspberry Pi 5 64-bit OS)

What version of Home Assistant Operating System is installed?

11.5

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Open Raspberry Imager
  2. Select Raspberry 5
  3. Select HA
  4. Select SSD storage
  5. Write the image to the SSD
  6. Connect the SSD to the Raspberry and turn it on ...

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

I cannot start the OS

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

I cannot start the OS

System information

No response

Additional information

No response

tweety88 commented 4 months ago

it seems as normal. I tested with:

humantex commented 3 months ago

I'm also running into this same issue after explicitly following the install steps for x86 installations. I started by downloading both the latest '.xy' image file and Etcher last night, then today, I flashed a 64GB Verbatim ToughMax thumb drive (USB 3.0) with the image, and tried the setup on an HP ProDesk 400 G2 mini, with a 256GB SSD & 8GB ram.

21 minutes later and still showing the process

20240312_163131

At 25+ minutes, it finally continued to load -then- "Waiting for the Home Assistant CLI to be ready...", and after several minutes...

"[WARN] Home Assistant CLI not starting! Jump into emergency console...", following with a root prompt. This is a first time install for me, and no idea how to proceed from here.

I do see HA is on the network and assigned an IP, but it presents an error screen when accessed.

HA-error-screen

Downloaded logs.txt:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/udev.sh
[20:38:16] INFO: Using udev information from host
cont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun supervisor (no readiness notification)
services-up: info: copying legacy longrun watchdog (no readiness notification)
[20:38:16] INFO: Starting local supervisor watchdog...
s6-rc: info: service legacy-services successfully started
24-03-12 20:38:27 INFO (MainThread) [__main__] Initializing Supervisor setup
24-03-12 20:38:27 INFO (MainThread) [supervisor.docker.network] Can't find Supervisor network, creating a new network
24-03-12 20:38:28 INFO (MainThread) [supervisor.bootstrap] Setting up coresys for machine: generic-x86-64
24-03-12 20:38:28 INFO (MainThread) [supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/amd64-hassio-supervisor with version 2024.02.0
24-03-12 20:38:28 INFO (MainThread) [supervisor.docker.supervisor] Connecting Supervisor to hassio-network
24-03-12 20:38:28 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state initialize
24-03-12 20:38:28 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-03-12 20:38:28 INFO (MainThread) [__main__] Setting up Supervisor
24-03-12 20:38:29 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
24-03-12 20:38:29 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.manager] Connected to system D-Bus.
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.agent] Load dbus interface io.hass.os
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
24-03-12 20:38:29 INFO (MainThread) [supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
24-03-12 20:38:29 INFO (MainThread) [supervisor.host.services] Updating service information
24-03-12 20:38:29 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
24-03-12 20:38:29 WARNING (SyncWorker_0) [supervisor.host.sound] Can't update PulseAudio data: Failed to connect to pulseaudio server
24-03-12 20:38:29 INFO (MainThread) [supervisor.host.network] Updating local network information
24-03-12 20:38:29 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
24-03-12 16:38:30 INFO (MainThread) [supervisor.docker.monitor] Started docker events monitor
24-03-12 16:38:30 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
24-03-12 16:38:30 INFO (MainThread) [supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-cli versions: [<AwesomeVersion CalVer '2023.11.0'>]
24-03-12 16:38:30 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2023.11.0
24-03-12 16:38:30 INFO (MainThread) [supervisor.plugins.cli] Starting CLI plugin
24-03-12 16:39:12 INFO (MainThread) [supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/amd64-hassio-cli with version 2023.11.0 - 172.30.32.5
24-03-12 16:39:12 INFO (MainThread) [supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-dns versions: [<AwesomeVersion CalVer '2023.06.2'>]
24-03-12 16:39:12 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2023.06.2
24-03-12 16:39:12 INFO (MainThread) [supervisor.plugins.dns] Starting CoreDNS plugin
24-03-12 16:40:02 INFO (MainThread) [supervisor.docker.dns] Starting DNS ghcr.io/home-assistant/amd64-hassio-dns with version 2023.06.2 - 172.30.32.3
24-03-12 16:40:02 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
24-03-12 16:40:02 INFO (MainThread) [supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-audio versions: [<AwesomeVersion CalVer '2023.12.0'>]
24-03-12 16:40:02 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2023.12.0
24-03-12 16:40:02 INFO (MainThread) [supervisor.plugins.audio] Starting Audio plugin
24-03-12 16:41:04 INFO (MainThread) [supervisor.docker.audio] Starting Audio ghcr.io/home-assistant/amd64-hassio-audio with version 2023.12.0 - 172.30.32.4
24-03-12 16:41:04 INFO (MainThread) [supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-observer versions: [<AwesomeVersion CalVer '2023.06.0'>]
24-03-12 16:41:04 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2023.06.0
24-03-12 16:41:04 INFO (MainThread) [supervisor.plugins.observer] Starting observer plugin
24-03-12 16:42:24 INFO (MainThread) [supervisor.docker.observer] Starting Observer ghcr.io/home-assistant/amd64-hassio-observer with version 2023.06.0 - 172.30.32.6
24-03-12 16:42:24 INFO (MainThread) [supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-multicast versions: [<AwesomeVersion CalVer '2023.06.2'>]
24-03-12 16:42:24 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2023.06.2
24-03-12 16:42:24 INFO (MainThread) [supervisor.plugins.multicast] Starting Multicast plugin
24-03-12 16:43:32 INFO (MainThread) [supervisor.docker.multicast] Starting Multicast ghcr.io/home-assistant/amd64-hassio-multicast with version 2023.06.2 - Host
24-03-12 16:43:32 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 0 Home Assistant secrets
24-03-12 16:43:32 INFO (MainThread) [supervisor.docker.interface] No version found for ghcr.io/home-assistant/generic-x86-64-homeassistant
24-03-12 16:43:32 INFO (MainThread) [supervisor.homeassistant.core] No Home Assistant Docker image ghcr.io/home-assistant/generic-x86-64-homeassistant found.
24-03-12 16:43:32 INFO (MainThread) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/generic-x86-64-homeassistant with version landingpage
24-03-12 16:43:32 INFO (MainThread) [supervisor.homeassistant.core] Using preinstalled landingpage
24-03-12 16:43:32 INFO (MainThread) [supervisor.homeassistant.core] Starting HomeAssistant landingpage
24-03-12 16:43:32 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
24-03-12 16:44:13 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/generic-x86-64-homeassistant with version landingpage
24-03-12 16:44:13 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 12.0 / BootSlot A
24-03-12 16:44:13 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/home-assistant/addons repository
24-03-12 16:44:13 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/hassio-addons/repository repository
24-03-12 16:44:13 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/esphome/home-assistant-addon repository
24-03-12 16:44:58 INFO (MainThread) [supervisor.store] Loading add-ons from store: 77 all - 77 new - 0 remove
24-03-12 16:44:58 INFO (MainThread) [supervisor.addons.manager] Found 0 installed add-ons
24-03-12 16:44:58 INFO (MainThread) [supervisor.backups.manager] Found 0 backup files
24-03-12 16:44:58 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
24-03-12 16:44:58 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state setup
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.check] System checks complete
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-03-12 16:44:58 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - setup
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
24-03-12 16:44:58 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-03-12 16:44:58 INFO (MainThread) [__main__] Running Supervisor
24-03-12 16:44:59 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
24-03-12 16:44:59 INFO (MainThread) [supervisor.supervisor] Fetching AppArmor profile https://version.home-assistant.io/apparmor_stable.txt
24-03-12 16:45:00 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: hassio-supervisor
24-03-12 16:45:03 INFO (MainThread) [supervisor.supervisor] Update Supervisor to version 2024.03.0
24-03-12 16:45:03 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/amd64-hassio-supervisor with tag 2024.03.0.
24-03-12 16:45:19 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/amd64-hassio-supervisor:2024.03.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.03.0&fromImage=ghcr.io%2Fhome-assistant%2Famd64-hassio-supervisor&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: TLS handshake timeout")
24-03-12 16:45:19 INFO (MainThread) [supervisor.resolution.module] Create new issue update_failed - supervisor / None
24-03-12 16:45:19 ERROR (MainThread) [supervisor.supervisor] Update of Supervisor failed: Can't install ghcr.io/home-assistant/amd64-hassio-supervisor:2024.03.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.03.0&fromImage=ghcr.io%2Fhome-assistant%2Famd64-hassio-supervisor&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: TLS handshake timeout")
24-03-12 16:45:19 CRITICAL (MainThread) [supervisor.core] Can't update Supervisor! This will break some Add-ons or affect future versions of Home Assistant!
24-03-12 16:45:19 INFO (MainThread) [supervisor.addons.manager] Phase 'initialize' starting 0 add-ons
24-03-12 16:45:26 INFO (MainThread) [supervisor.addons.manager] Phase 'system' starting 0 add-ons
24-03-12 16:45:26 INFO (MainThread) [supervisor.addons.manager] Phase 'services' starting 0 add-ons
24-03-12 16:45:26 INFO (MainThread) [supervisor.core] Skipping start of Home Assistant
24-03-12 16:45:26 INFO (MainThread) [supervisor.addons.manager] Phase 'application' starting 0 add-ons
24-03-12 16:45:26 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
24-03-12 16:45:26 INFO (MainThread) [supervisor.core] Supervisor is up and running
24-03-12 16:45:26 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant setup
24-03-12 16:45:26 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/generic-x86-64-homeassistant:landingpage to ghcr.io/home-assistant/generic-x86-64-homeassistant:2024.3.0
24-03-12 16:45:26 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/generic-x86-64-homeassistant with tag 2024.3.0.
24-03-12 16:45:26 INFO (MainThread) [supervisor.host.info] Updating local host information
24-03-12 16:45:26 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.module] Create new suggestion create_full_backup - system / None
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.module] Create new issue no_current_backup - system / None
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.check] System checks complete
24-03-12 16:45:26 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
24-03-12 16:45:28 INFO (MainThread) [supervisor.host.services] Updating service information
24-03-12 16:45:28 INFO (MainThread) [supervisor.host.network] Updating local network information
24-03-12 16:45:28 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
24-03-12 16:45:30 INFO (MainThread) [supervisor.host.manager] Host information reload completed
24-03-12 16:49:00 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-03-12 16:49:00 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not healthy - supervisor
humantex commented 3 months ago

An update...

Flashing with Etcher directly to the SSD worked, without any extra steps. Total time to get running was under 10 minutes, including the time to flash and verify the image, physically install the SSD, and reboot/configure/run HA.

ssbarnea commented 2 months ago

I just flashed 12.5 using official rasberry imager on a mac, to a 64GB sd card, put it in rpi 5 and.... still waiting for swap to initialize.

AlixAbbasi commented 2 months ago

Same here. I just flashed it to Pi 5 and stuck here.

bjornpijnacker commented 1 week ago

I am also experiencing this. It continued after ~4 minutes and I'm experiencing exactly what @humantex describes with the "waiting for CLI".

OP @tweety88 would you consider re-opening this issue? Since multiple people have problems and there's clearly not a solution yet.

supershopping commented 1 week ago

Having same issue. Home assistant CLI not starting. Jump into emergency console.