Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024.12.0: "Preparing backup of Home Assistant Core failed" for scheduled backups #5497

Open
bcutter opened this issue Dec 18, 2024 · 1 comment
Labels

Comments

@bcutter
Copy link

bcutter commented Dec 18, 2024

Describe the issue you are experiencing

Since Supervisor got upgraded from 2024.11.4 to 2024.12.0 on 2024-12-16, my nightly SAMBA backup which fully relies on standard Supervisor snapshot mechanisms, immediately fails. It signals [24-12-18 02:00:42] ERROR: Error occurred! Backup could not be created! Please try again.

Looking in the Supervisor logs, I only get this error line:
2024-12-18 02:00:42.359 ERROR (MainThread) [supervisor.homeassistant.module] Preparing backup of Home Assistant Core failed. Check HA Core logs.

Looking at the HA Core logs, there's nothing special at all at that time, only entries from a custom integration:

2024-12-18 01:59:22.293 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 01:59:52.157 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:00:22.092 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:00:52.332 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:01:03.899 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:01:22.179 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:01:52.138 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.
2024-12-18 02:02:22.153 WARNING (MainThread) [custom_components.deutschebahn.sensor] Requested 2 connections, but only 1 are available.

Starting the SAMBA backup manually is no issue, the backup is created.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Upgrade Supervisor to 2024.12.0
  2. Schedule a backup containing HA Core with SAMBA backup

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

Automated (at 2 a.m. in the night):

...
2024-12-18 01:59:29.640 INFO (MainThread) [supervisor.auth] Successful login for 'xxx'
2024-12-18 02:00:12.028 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from 15d21743_samba_backup
2024-12-18 02:00:12.121 INFO (MainThread) [supervisor.api.middleware.security] /addons access from 15d21743_samba_backup
2024-12-18 02:00:12.318 INFO (MainThread) [supervisor.api.middleware.security] /backups/new/partial access from 15d21743_samba_backup
2024-12-18 02:00:12.321 INFO (MainThread) [supervisor.backups.manager] Backup 8eef5384 starting stage addon_repositories
2024-12-18 02:00:12.322 INFO (MainThread) [supervisor.backups.manager] Backup 8eef5384 starting stage docker_config
2024-12-18 02:00:12.322 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 8eef5384
2024-12-18 02:00:12.327 INFO (MainThread) [supervisor.backups.manager] Backup 8eef5384 starting stage home_assistant
2024-12-18 02:00:42.359 ERROR (MainThread) [supervisor.homeassistant.module] Preparing backup of Home Assistant Core failed. Check HA Core logs.
2024-12-18 02:00:42.642 INFO (MainThread) [supervisor.api.middleware.security] /backups access from 15d21743_samba_backup
2024-12-18 02:04:08.253 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
...

Manually:

...
2024-12-18 17:14:29.795 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from 15d21743_samba_backup
2024-12-18 17:14:29.916 INFO (MainThread) [supervisor.api.middleware.security] /addons access from 15d21743_samba_backup
2024-12-18 17:14:30.060 INFO (MainThread) [supervisor.api.middleware.security] /backups/new/partial access from 15d21743_samba_backup
2024-12-18 17:14:30.077 INFO (MainThread) [supervisor.backups.manager] Backup cb40ec5b starting stage addon_repositories
2024-12-18 17:14:30.078 INFO (MainThread) [supervisor.backups.manager] Backup cb40ec5b starting stage docker_config
2024-12-18 17:14:30.078 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug cb40ec5b
2024-12-18 17:14:30.085 INFO (MainThread) [supervisor.backups.manager] Backup cb40ec5b starting stage home_assistant
2024-12-18 17:14:30.983 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
2024-12-18 17:19:12.444 WARNING (MainThread) [supervisor.addons.addon] Watchdog found addon Whisper is unhealthy, restarting...
2024-12-18 17:19:31.902 INFO (SyncWorker_2) [supervisor.docker.manager] Stopping addon_core_whisper application
2024-12-18 17:20:23.716 INFO (SyncWorker_2) [supervisor.docker.manager] Cleaning addon_core_whisper application
2024-12-18 17:20:26.476 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/aarch64-addon-whisper with version 2.4.0
2024-12-18 17:30:50.260 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
2024-12-18 17:30:50.308 INFO (MainThread) [supervisor.backups.manager] Backup cb40ec5b starting stage addons
...

System Health information

System Information

version core-2024.4.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1577
Downloaded Repositories 72
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 13.1
update_channel stable
supervisor_version supervisor-2024.12.0
agent_version 1.6.0
docker_version 26.1.4
disk_total 57.8 GB
disk_used 47.0 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
Dashboards
dashboards 7
resources 42
views 79
mode storage
Recorder
oldest_recorder_run 1. Oktober 2024 um 16:46
current_recorder_run 1. Oktober 2024 um 18:46
estimated_db_size 2989.98 MiB
database_engine sqlite
database_version 3.44.2

Supervisor diagnostics

No response

Additional information

I'm quite confident its related to the 2024.12.0 update. If a Supervisor downgrade is possible, let me know so I can reliably proof that assumption by downgrading to latest working 2024.11.4 again.

@bcutter bcutter added the bug label Dec 18, 2024
@bcutter
Copy link
Author

bcutter commented Dec 25, 2024

Seems to have magically healed it by itself. No idea why, after the 3rd night it started working again. Still monitoring it for a while. Anyway, interesting to see no response at all after one week... glad it was neither important no urgent in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant