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

_mkdir_and_generate_backup_contents #101

Open
DarthSonic opened this issue Apr 23, 2023 · 5 comments
Open

_mkdir_and_generate_backup_contents #101

DarthSonic opened this issue Apr 23, 2023 · 5 comments

Comments

@DarthSonic
Copy link

The problem

Auto Backup always return "_mkdir_and_generate_backup_contents" by fail event. How to fix that on synology NAS with Home assistant core installed? Manual backup works.

Logger: custom_components.auto_backup
Source: custom_components/auto_backup/init.py:187
Integration: Auto Backup (documentation, issues)
First occurred: 16:46:17 (1 occurrences)
Last logged: 16:46:17

Error during backup. Unable to patch '_mkdir_and_generate_backup_contents' function

What version of Auto Backup has the issue?

1.3.2

What version of Home Assistant are you running?

2003.1.7

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

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@zeHamish
Copy link

zeHamish commented Apr 24, 2023

+1 - been happening for a week or so - just starting to get to look at it today

Home Assistant 2023.1.2 CORE
Frontend 20230104.0 - latest
DOCKER installation

HOST: rPi3B+
Linux Maschinenmensch 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
29GB free, backups are single digit storage usage - m.2 SSD

AutoBackup version: 1.3.2
no customisations to integration or automation. installed strictly base as per online process

can execute manual service backup successfully - Auto Backup: Backup

automation yaml:

alias: INFRA - Daily Backup (5d)
description: ""
use_blueprint:
path: jcwillox/automatic_backups.yaml
input:
backup_time: "11:30:00"
backup_action:
- service: auto_backup.backup
data:
keep_days: "5"
include_folders:
- config
name: "{{ now().strftime('%a, %-I:%M %p (%d/%m/%Y)') }}"
enable_daily: true

@Robert-Zacchigna
Copy link

Robert-Zacchigna commented Apr 25, 2023

This error also just happened to me last night after updating the integration to the latest version (1.3.0 -> 1.3.2), i do have an automation setup using it but i have not experienced this error before today after updating.

Error:

2023-04-25 00:00:00.154 ERROR (MainThread) [custom_components.auto_backup] Error during backup. Unable to patch '_mkdir_and_generate_backup_contents' function.

Automation:

alias: Automatic Backups
description: ''
use_blueprint:
  path: jcwillox/automatic_backups.yaml
  input:
    backup_time: 00:00:00
    use_action_hourly: true
    enable_yearly: true
    backup_action:
    - service: auto_backup.backup
      data:
        name: '{{ name }}'
        password: '{{ password }}'
        keep_days: '{{ keep_days }}'
        include_folders:
        - config
    condition: []
    enable_monthly: true

@jcwillox
Copy link
Owner

Sounds like it's related to #97, the patch should've been backwards compatible I'll have another look.

@Robert-Zacchigna
Copy link

Just to confirm, i rolled back to version 1.3.0 and the backup performs as expected. No other errors.

@psyciknz
Copy link

Would this component work with home assistan 2022.8.6?

I get this error when calling service. I did try 1.3.0 but also had the error

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

5 participants