I was on Core 2023.9.3 and OS 10.4 Wednesday afternoon, updated to the latest versions at the time and Home Assistant was no longer accessible. I couldn’t access it by my Cloudflare domain or HA’s IP address, so I plugged into the NUC and poked around with the CLI.
Checking the Supervisor logs, I see an error that shows up repeatedly. Error on call http://172.30.32.1:8123/api/core/state: [Errno 104] Connection reset by peer
Checking the Core logs, I see a warning referencing a database called home-assistant_v2.db.
INFO: Home Assistant Core process received signal 4
... A bunch of custom integration warnings ...
WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=176 from 2023-09-28 05:07:28.966858)
INFO: Home Assistant Core finish process exit code 256
I want to try and get rid of that database file, but I can’t because when I delete it, it instantly reappears. I assume this is happening because the core is still running, so I try to run core stop. This throws an error: Error: Another job is running for job group home_assistant_core
I tried core options --watchdog=false and restarting the system, hoping the core wouldn’t run at startup, but this did not work.
I can’t restore a backup because it gets interrupted by the same Error: Another job is running for job group home_assistant_core error.
So I’m at a loss. I don’t know how to do… anything with this persistent core error. Any ideas would be greatly appreciated!
I was able to roll back to 2023.9.3 thanks to @adamminer’s suggestion on @deadrabbit87’s thread concerning the same issue. Here’s my reply with exactly what I did.
Holy cow, this did it for me. From the CLI, I ran su restart, then immediately typed core update --version=2023.9.3 and kept pressing up arrow, then enter to repeatedly submit the command. I guess one of them went through and the display stayed on Processing... for a while until eventually it said Processing... Done. and successfully rolled back to 2023.9.3.
Where did you enter su restart? In my installation the command is not available.
I login directly with the root account.
This is how i did:
reboot with reboot now
immedatly login with root
enter ha core update --version=2023.9.3
but no luck…
# ha core update --version=2023.9.3
Error: System is not ready with state: setup
Error: System is not ready with state: setup
Error: Another job is running for job group home_assistant_core
# ha core update --version=2023.9.3
Error: Another job is running for job group home_assistant_core
# ha core update --version=2023.9.3
Error: Another job is running for job group home_assistant_core
# ha core update --version=2023.9.3
Error: Another job is running for job group home_assistant_core
I’m woefully unfamiliar with Linux and more advanced setups, but I ran the command to restart the supervisor directly from the HA OS CLI (with the splash screen). I think you should have access to it from wherever you’re able to run core commands.
I chose to restart the supervisor instead of rebooting the host because I imagine there’s less time to react. I can spam the core update command while the supervisor is in the process of rebooting, so I have a better chance of squeezing one through before the supervisor starts the core.
watch will repeat the action, don’t you want to upgrade only once?
so, may be you should:
ha core update --version=2023.9.3
and do a watch on the progress:
watch ha core info
if you remove the ", it will recognize the ha command.
which is:
which ha
/usr/bin/ha
By default, watch will repeat the command every 2 seconds