Koenhen
(Koenhen)
April 24, 2025, 1:51pm
1
Home assistant fails to backup.
Running Odroid N2, config file shows no errors, core is the newest 2025.3.4
Log file is included. Anyone an idea how to fix?
Thx in advance for every reply.
Logger: homeassistant.components.backup
Bron: components/backup/manager.py:1149
integratie: Backup (documentatie, problemen)
Eerst voorgekomen: 15:42:47 (1 gebeurtenissen)
Laatst gelogd: 15:42:47
Error creating backup: Backup failed: [{‘type’: ‘HomeAssistantBackupError’, ‘message’: “Preparing backup of Home Assistant Core failed. Failed to inform HA Core: Unsuccessful websocket message - {‘id’: 9, ‘type’: ‘result’, ‘success’: False, ‘error’: {‘code’: ‘pre_backup_actions_failed’, ‘message’: ‘Error during pre-backup: Could not lock database within 30 seconds.’}}.”, ‘stage’: ‘home_assistant’}]
francisp
(Francis)
April 24, 2025, 2:37pm
2
What database are you running ?
Koenhen
(Koenhen)
April 25, 2025, 8:18am
3
I don’t know how to look into that. But at the moment home assistant seems bricked. I think i better restart completely. When i have time i will look up how to format the odroid en reinstall home assistant completely fresh. Thx for your reply.
Dzidza
(Nikola Ilic)
August 9, 2025, 10:12am
4
I know this is an old question but ill post here what helped me with the same or similar problem.
I stoped the addon “Home Assistant Google Drive Backup” which locked the DB in the same time but could not finish the backup
Deleted the old backups
Changed the backup encryption key (Backup / Configure Backup Settings / Change encryption key)
After that it started working again
User11
March 6, 2026, 7:13am
5
Thank you very much for this, even if the question was old.
Your workflow helped me solving my similar problem.
Thank you!
1 Like