Open max-critcrew opened 6 months ago
i'm not sure if this is related, but i am seeing a weird, seemingly random behaviour of stuck backup jobs of container volumes. the container is (based on cupcakearmy/autorestic:1.7.7) is running but seemingly not doing anything. volume size is about 5mb, should take mere seconds. i can see it because neither failure nor success hock gets triggered.
i'm not seeing any error messages or obvious entries in the systemd journal
autorestic version 1.7.7
os Ubuntu 22.04.4 LTS
version: 2
locations:
redacted_backups:
hooks:
before:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Starting backup for location: redacted" https://redacted/start'
failure:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Backup failed for location: redacted" https://redacted/fail'
success:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Backup successful for location: redacted" https://redacted'
from: /srv/backup/redacted
to:
- b2
cron: "0 3 * * *"
redacted_backups:
hooks:
before:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Starting backup for location: redacted" https://redacted/start'
failure:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Backup failed for location: redacted" https://redacted/fail'
success:
- 'curl -m 10 --retry 5 -X POST -H "Content-Type: text/plain" --data "Backup successful for location: redacted" https://redacted'
from: redacted
type: volume
to:
- b2
cron: "0 4 * * *"
backends:
b2:
type: b2
path: 'redacted'
key: "redacted"
env:
B2_ACCOUNT_ID: "redacted"
B2_ACCOUNT_KEY: "redacted"⏎
Describe the bug When trying to backup a local docker volume to Backblaze B2 it after ~60 seconds with the following error:
Fatal: unable to open repository at b2:backup-bucket-test: context deadline exceeded
TL;DR: Only the combination of B2 as backend + docker volume as location is broken. Backing up a local folder location to B2 works fine. Backing up a docker volume to a local backend works fine.
Full console output:
Location definition:
Backend definition:
Further tests I did in order to rule out that my B2 is not working or the docker volume is the issue:
docker-volume-test
to a local backend, it backs up just fineb2-bucket-test-1-root-folder
, it also backs up fist fineExpected behavior
Environment
OS:
Version:
Additional context If anybody could run a test to backup a docker volume to Backblaze (or any other cloud provider), that'd be awesome to compare configurations. Any helps is much appreciated and thanks for your time reading this :)