Skip to content

Error purgin S3-compatible Google Cloud Storage #539

@buxm

Description

@buxm

Describe the bug
When purging previous backups on Google Cloud Storage (using HMAC keys for the S3-compatible XML API), an error occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Create a storage bucket on Google Cloud Storage
  2. Set up an HMAC key to access the bucket using S3-compatible XML API
  3. Set up docker-volume-backup using the following env variables:
BACKUP_CRON_EXPRESSION="0 1/6 * * *"
AWS_ENDPOINT=storage.googleapis.com
AWS_S3_BUCKET_NAME=<your-bucket-name>
AWS_ACCESS_KEY_ID=<your-HMAC-key-Access-ID>
AWS_SECRET_ACCESS_KEY=<your-HMAC-key-secret>
BACKUP_RETENTION_DAYS=1
  1. Backups start being created
  2. After 1 day, older backups should be purged. But the logs show the following error:
Now running script on schedule 0 1/6 * * *
Created backup of `/backup` at `/tmp/backup-2025-02-17T13-00-00.tar.gz`.
Encrypted backup using \"gpg\", saving as \"/tmp/backup-2025-02-17T13-00-00.tar.gz.gpg\"
Uploaded a copy of backup `/tmp/backup-2025-02-17T13-00-00.tar.gz.gpg` to bucket `<my-bucket>`." storage=S3
Removed tar file `/tmp/backup-2025-02-17T13-00-00.tar.gz`.
Removed encrypted file `/tmp/backup-2025-02-17T13-00-00.tar.gz.gpg`.
Unexpected error running schedule 0 1/6 * * *: A header or query you provided requested a function that is not implemented.\nEOF" error="main.runScript.func4: error running script: main.(*script).pruneBackups: error pruning backups: A header or query you provided requested a function that is not implemented.\nEOF"

Expected behavior
Backups are created on the Google Cloud Storage bucket and they are successfully purged when they are older than 1 day.

Version (please complete the following information):

  • Image Version: v2.43.2
  • Docker Version: 28.0.0
  • Docker Compose Version (if applicable): v2.31.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions