core: i can't backup home assistant core
The problem
i make a full backup before each new version of home assistant. my last full backup was from before 2024.8 version. Just after my last full backup (august the 6, 2024) and before trying to update to version 2024.8, i can’t make anymore a full backup of home assistant. i can make a partial backup of the add-ons and Folders section, but when i try to do the partial backup (or a full backup) of the ‘home assistant (2024.7.4)’ section, i get the error ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /backups/new/partial - An error occurred while making backup, check job ‘b567fa7559c140588be5c2489fffddd8’ or supervisor logs for details and if i look at the supervisor log, i get ERROR (MainThread) [supervisor.homeassistant.module] Preparing backup of Home Assistant Core failed. Check HA Core logs.
i’m using a RPi4 with HA on a SSD drive.
-
reboot HA, or Full reboot of the RPI didn’t corrected the problem
-
i stopped the core, then delete the database to start a new one (to check if it’s the database file that is corrupted) but the backup error is still there after that with the new database
-
thru samba, i can copy the files from the CONFIG directory without any error to my PC (so no corrupted files here).
-
after each failed backup, a new TAR files (10ko) appear in the BACKUPS directory. there is nothing in the archive.
if i restore my last good full backup, home assistant is working without problem after the restoration, but i still can’t make a new full backup (same error) after that
any idea ?
What version of Home Assistant Core has the issue?
core-2024.7.4
What was the last working version of Home Assistant Core?
core-2024.7.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
backups
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
HA core log error
ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /backups/new/partial - An error occurred while making backup, check job 'b567fa7559c140588be5c2489fffddd8' or supervisor logs for details
supervisor log error
ERROR (MainThread) [supervisor.homeassistant.module] Preparing backup of Home Assistant Core failed. Check HA Core logs
Additional information
System Information
| version | core-2024.7.4 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.12.4 |
| os_name | Linux |
| os_version | 6.6.31-haos-raspi |
| arch | aarch64 |
| timezone | America/Toronto |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 5000 |
| Installed Version | 1.34.0 |
| Stage | running |
| Available Repositories | 1461 |
| Downloaded Repositories | 26 |
| HACS Data | ok |
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.08.0 |
| agent_version | 1.6.0 |
| docker_version | 26.1.4 |
| disk_total | 109.3 GB |
| disk_used | 17.9 GB |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | |
| board | rpi4-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | Mosquitto broker (6.4.1), TheengsGateway (1.11.4), ZigStar TI CC2652P/P7 FW Flasher (0.4.0), Piper (1.5.2), ESPHome (2024.8.0), Advanced SSH & Web Terminal (18.0.0), File editor (5.8.0), Samba share (12.3.2), LMS Lyrion Music Server(Formerly Logitech Media Server) (8.5.2.0), Squeezelite (0.0.19), motionEye (0.20.0) |
Dashboards
| dashboards | 25 |
|---|---|
| resources | 15 |
| views | 23 |
| mode | storage |
Recorder
| oldest_recorder_run | August 22, 2024 at 17:52 |
|---|---|
| current_recorder_run | August 22, 2024 at 14:27 |
| estimated_db_size | 23.21 MiB |
| database_engine | sqlite |
| database_version | 3.45.3 |
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 49 (3 by maintainers)
There hasn’t been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant 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.
Unfortunately no, migrating to a brand new system made zero difference. Still incapable of getting any backup working, despite the platform change 😞
at the moment , the temporary only solution is 3 post above…
solution
This issue has persisted for months now, there’s no indication a fix is coming @Dgigie.
in the mean time @gillesguillemin , you can use @Farmand77 solution before an update ( reboot HA, then start backup as soon as you get HA reconnected and before HA finish the reboot cycle…)