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 on backup - no detailed info in the log #130

Open
alexdelprete opened this issue May 5, 2024 · 3 comments
Open

Error on backup - no detailed info in the log #130

alexdelprete opened this issue May 5, 2024 · 3 comments

Comments

@alexdelprete
Copy link

The problem

Since a couple of days backups are failing right at the beginning. The error is a generic "Error during backup", even with debug on.

What version of Auto Backup has the issue?

v1.4.1

What version of Home Assistant are you running?

2024.5.1

What type of installation are you running?

Home Assistant Core

If you're running HA OS/Supervised, what version of the Supervisor are you running?

No response

Example YAML snippet

alias: Start AutoBackup Full
sequence:
  - service: auto_backup.backup_full
    data:
      name: >-
        HA Daily Backup: {{
        state_attr('update.wud_container_hass_homeassistant',
        'installed_version') }} - {{ now().strftime('%d.%m.%Y') }}
      keep_days: 5
mode: single

Anything in the logs that might be useful for us?

2024-05-05 06:46:10.353 DEBUG (MainThread) [custom_components.auto_backup] Creating backup 'HA Daily Backup: None - 05.05.2024'
2024-05-05 06:46:10.353 DEBUG (MainThread) [custom_components.auto_backup] Creating backup (full); keep_days: 5.0, timeout: 1200, data: {'name': 'HA Daily Backup: None - 05.05.2024', 'patch.name': True}
2024-05-05 06:46:10.354 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Running automation actions
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: Running automation actions
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: Executing step setting variables
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: Running automation actions
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 1: Running automation actions
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 1: Repeating Send notifications to mobile devices: Iteration 1 of 1 with item: 'f54a02af11b8f01662c0a8fd8c095540'
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 1: Send notifications to mobile devices: Running automation actions
2024-05-05 06:46:10.355 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 1: Send notifications to mobile devices: Executing step Notify mobile device
2024-05-05 06:46:10.356 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 2: Running automation actions
2024-05-05 06:46:10.356 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 1: If at step 2: If at step 2: Executing step Send a notification to HA
2024-05-05 06:46:10.357 DEBUG (MainThread) [custom_components.auto_backup.handlers] Support name is set: {'name': 'HA Daily Backup: None - 05.05.2024', 'patch.name': True}
2024-05-05 06:46:10.364 INFO (MainThread) [homeassistant.components.recorder.backup] Backup start notification, locking database for writes
2024-05-05 06:46:16.654 INFO (MainThread) [homeassistant.components.recorder.backup] Backup end notification, releasing write lock
2024-05-05 06:46:16.654 ERROR (MainThread) [custom_components.auto_backup] Error during backup.
2024-05-05 06:46:16.656 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Running automation actions
2024-05-05 06:46:16.656 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: Running automation actions
2024-05-05 06:46:16.656 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: Executing step setting variables
2024-05-05 06:46:16.657 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: Running automation actions
2024-05-05 06:46:16.657 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 1: Running automation actions
2024-05-05 06:46:16.657 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 1: Repeating Send notifications to mobile devices: Iteration 1 of 1 with item: 'f54a02af11b8f01662c0a8fd8c095540'
2024-05-05 06:46:16.657 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 1: Send notifications to mobile devices: Running automation actions
2024-05-05 06:46:16.657 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 1: Send notifications to mobile devices: Executing step Notify mobile device
2024-05-05 06:46:16.658 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 2: Running automation actions
2024-05-05 06:46:16.658 INFO (MainThread) [homeassistant.components.automation.autobackup_notifications] AutoBackup: Notifications: Choose at step 1: choice 3: If at step 2: If at step 2: Executing step Send a notification to HA
2024-05-05 06:46:16.659 DEBUG (MainThread) [custom_components.auto_backup] No backups required purging.

Additional information

No response

@jcwillox
Copy link
Owner

Yeah not sure, I'll try running this on home assistant core tomorrow, you might want to try adding patch.name: false to your service call, that should disable the custom name patching functionality, which could be what's breaking here. It's a monkey patch at runtime so definitely possible to break between versions.

service: auto_backup.backup
data:
  patch.name: false

@alexdelprete
Copy link
Author

I get an error:

image

@alexdelprete
Copy link
Author

Anyway I think the problem is in core/ZHA. Other users reported issues with ZHA not releasing its db for backup.

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

2 participants