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

Error during pre-backup: Could not lock database within 30 seconds. #138972

Open
Revilo91 opened this issue Feb 21, 2025 · 0 comments
Open

Error during pre-backup: Could not lock database within 30 seconds. #138972

Revilo91 opened this issue Feb 21, 2025 · 0 comments

Comments

@Revilo91
Copy link

The problem

Get the following error message:

Logger: homeassistant.components.backup
Quelle: components/backup/[manager.py:1078](https://manager.py:1078/)
Integration: Backup (Dokumentation, Probleme)
Erstmals aufgetreten: 20. Februar 2025 um 21:19:25 (2 Vorkommnisse)
Zuletzt protokolliert: 06:51:40

Error creating backup: Backup failed: [{'type': 'HomeAssistantBackupError', 'message': "Preparing backup of Home Assistant Core failed. Failed to inform HA Core: Unsuccessful websocket message - {'id': 429, 'type': 'result', 'success': False, 'error': {'code': 'pre_backup_actions_failed', 'message': 'Error during pre-backup: Could not lock database within 30 seconds.'}}."}]
Error creating backup: Backup failed: [{'type': 'HomeAssistantBackupError', 'message': "Preparing backup of Home Assistant Core failed. Failed to inform HA Core: Unsuccessful websocket message - {'id': 658, 'type': 'result', 'success': False, 'error': {'code': 'pre_backup_actions_failed', 'message': 'Error during pre-backup: Could not lock database within 30 seconds.'}}."}]

It could be because the home-assistant_v2.db is >100 GB in size. Is there another way to make it smaller? With Recorder.purge it stays that big...

What version of Home Assistant Core has the issue?

core-20252.4

What was the last working version of Home Assistant Core?

core-2024.x.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

homeassistant.components.backup

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

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

No branches or pull requests

1 participant