RPi5 restart fails - only power unplug / replug works

Hi all - strange issue here. Have HAOS installed on an RPi5 for a while - with no issues, latest prod. For a few days in a row, whenever I do something that requires Home Assistant restart, I lose connection to home assistant.local for what feels like way longer than normal. It feels like the restart has crashed somewhere. Only way for me to get HAOS back up is to unplug from power and plug back in - then it starts with no issue.

Looking at Supervisor logs, I think the portion that’s relevant is here, though I would need your help decoding if there is anything here that would give clue as to what’s happening.

2024-12-11 21:28:40.913 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-12-11 21:28:40.913 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-12-11 21:28:40.913 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon2024-12-11 21:28:40.956 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-12-11 21:28:40.957 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-12-11 21:28:40.957 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-12-11 21:28:40.957 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-12-11 21:28:40.958 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-12-11 21:28:40.958 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-12-11 21:28:40.963 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-12-11 21:28:40.963 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-12-11 21:28:40.964 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-12-11 21:28:40.964 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-12-11 21:28:40.964 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-12-11 21:28:41.043 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-12-11 21:28:41.043 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-12-11 21:28:41.044 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-12-11 21:31:03.347 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-12-11 21:31:06.582 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/music-assistant/home-assistant-addon repository
2024-12-11 21:31:06.585 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/matt8707/addon-ha-fusion repository
2024-12-11 21:31:06.588 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/thomasmauerer/hassio-addons repository
2024-12-11 21:31:06.591 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
2024-12-11 21:31:06.601 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/albertogeniola/ha-meross-local-broker repository
2024-12-11 21:31:06.613 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/wez/govee2mqtt repository
2024-12-11 21:31:06.618 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
2024-12-11 21:31:06.620 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
2024-12-11 21:31:07.439 INFO (MainThread) [supervisor.store] Loading add-ons from store: 84 all - 0 new - 0 remove
2024-12-11 21:31:07.439 INFO (MainThread) [supervisor.store] Loading add-ons from store: 84 all - 0 new - 0 remove
2024-12-11 22:01:03.485 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-12-11 22:21:34.902 INFO (SyncWorker_4) [supervisor.docker.manager] Restarting homeassistant
2024-12-11 22:21:51.939 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2024-12-11 22:21:56.942 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!
2024-12-11 22:22:13.048 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/ttyACM0 - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2659838-if00
2024-12-11 22:22:13.058 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/bus/usb/001/004 - None
2024-12-11 22:22:15.518 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/bus/usb/001/005 - None
2024-12-11 22:22:15.540 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/ttyACM0 - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2659838-if002024-12-11 22:22:16.924 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/ttyACM0 - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2659838-if00
2024-12-11 22:22:16.931 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/bus/usb/001/005 - None
2024-12-11 22:22:19.426 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/bus/usb/001/006 - None
2024-12-11 22:22:19.446 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/ttyACM0 - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2659838-if00
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: startingcont-init: info: running /etc/cont-init.d/udev.sh[03:29:16] INFO: Using udev information from hostcont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully starteds6-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)[03:29:16] INFO: Starting local supervisor watchdog...
s6-rc: info: service legacy-services successfully started
2024-12-12 03:29:18.763 INFO (MainThread) [__main__] Initializing Supervisor setup
2024-12-11 22:29:18.864 INFO (MainThread) [supervisor.bootstrap] Setting up coresys for machine: raspberrypi5-64
2024-12-11 22:29:18.868 INFO (MainThread) [supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/aarch64-hassio-supervisor with version
2024.11.42024-12-11 22:29:18.884 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state initialize
2024-12-11 22:29:18.886 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-12-11 22:29:18.886 INFO (MainThread) [__main__] Setting up Supervisor

Many thanks for your help

Does this happen when you restart HA or when you restart the HA host? For me, I can’t restart the host system without unplugging my powered USB hub because it back-powers the pi making it unable to shut down so I have to pull the power.

When I’m just restarting HA it is fine.

It happens when I restart HA (which I presume is restarting HAOS?) My RPi5 is fully dedicated to HAOS - it’s not in a docker.

So for example when I go to Settings > System > power icon > “Restart Homeassistant” the problem occurs. I assume this is the restart HA you’re talking about. Host would be if I selected “reboot” from the same menu? I just did that, and it restarted without issue - which I suppose makes sense because that’s the same as unplug - replug.

You should try to extract and read the homeassistant.log.1 file from the config directory.
It is the log file from the previous run.

Alright, so I did that!
The results are here - fresh from another crash - I also updated to the latest December prod. update: https://pastebin.com/P7pmw0rk