8000 Cloudflare R2 Error - `NotImplemented: Header 'x-amz-storage-class'` · Issue #183 · gobackup/gobackup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cloudflare R2 Error - NotImplemented: Header 'x-amz-storage-class' #183

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

Closed
UpperCenter opened this issue Jul 18, 2023 · 3 comments
Closed

Comments

@UpperCenter
Copy link

Hello,

I am using the following yml configuration:

models:
  testing:
    compress_with:
      type: tgz
    storages:
      localStorage:
        type: local
        keep: 10
        path: /srv/test/Backups/Local
      cf:
        type: r2
        account_id: id
        keep: 10
        bucket: test-backups
        access_key_id: id
        secret_access_key: key
        max_retries: 5
    notifiers:
      discord:
        type: discord
        url: https://discord.com/api/webhooks/x
    databases:
      mirrorwood:
        database: testing
        type: mysql
        host: localhost
        port: 3306
        username: root
        password: password
    archive:
      includes:
        - /etc/nginx/conf.d
        - /etc/nginx/nginx.conf
    encrypt_with:
      type: openssl
      password: password
      salt: true
      base64: true

I have the below error when performing gobackup perform

Storage errors: [NotImplemented: Header 'x-amz-storage-class' with value '' not implemented status code: 501, request id: , host id: ]

This error was not present before, but I updated to the latest version and it seems to have broken.
Thanks

@huacnlee
Copy link
Collaborator

Just released v2.5.1 for fix this.

@UpperCenter
Copy link
Author

Sadly that didn't fix the issue:

uppercenter@test:~$ gobackup -v
gobackup version 2.5.1
uppercenter@test:~$ gobackup perform
2023/07/19 02:35:10 [Config] Load config from default path.
2023/07/19 02:35:10 [Config] Other users are able to access /etc/gobackup/gobackup.yml with mode -rw-r--r--
2023/07/19 02:35:10 [Config] Config file: /etc/gobackup/gobackup.yml
2023/07/19 02:35:10 [Config] Config loaded, found 1 models.
2023/07/19 02:35:10 [Model: test] WorkDir: /tmp/gobackup4065530969/1689748510847268473/test
2023/07/19 02:35:10 [Database] => database | mysql: test
2023/07/19 02:35:10 [MySQL] -> Dumping MySQL...
2023/07/19 02:35:11 [MySQL] dump path: /tmp/gobackup4065530969/1689748510847268473/test/mysql/test
2023/07/19 02:35:11 [Database] Dump succeeded
2023/07/19 02:35:11 [Archive] => includes 3 rules
2023/07/19 02:35:13 [Compressor] => Compress | tgz
2023/07/19 02:35:15 [Compressor] -> /tmp/gobackup4065530969/1689748510847268473/2023.07.19.02.35.13.tar.gz
2023/07/19 02:35:15 [Encryptor] encrypt | openssl
2023/07/19 02:35:16 [Encryptor] encrypted: /tmp/gobackup4065530969/1689748510847268473/2023.07.19.02.35.13.tar.gz.enc
2023/07/19 02:35:16 [Storage] => Storage | local
2023/07/19 02:35:16 [Local] Store succeeded /srv/testing/Backups/Local/2023.07.19.02.35.13.tar.gz.enc
2023/07/19 02:35:16 Deleting /srv/testing/Backups/Local/2022.12.11.22.47.12.tar.gz.enc
2023/07/19 02:35:16 [Cycler] Remove 2022.12.11.22.47.12.tar.gz.enc failed: remove /srv/testing/Backups/Local/2022.12.11.22.47.12.tar.gz.enc: no such file or directory
2023/07/19 02:35:16 [Storage] => Storage | r2
2023/07/19 02:35:16 [Cloudflare R2] -> Uploading (317 MB)...
2023/07/19 02:35:16 [Cloudflare R2] [==========-------------------------------------] 21.15% (? p/s)
2023/07/19 02:35:16 [Model] Cleanup temp: /tmp/gobackup4065530969/
2023/07/19 02:35:16 [Model: test] Storage errors: [NotImplemented: Header 'x-amz-storage-class' with value '' not implemented
        status code: 501, request id: , host id: ]
2023/07/19 02:35:16 [Notifier] Running 1 Notifiers
2023/07/19 02:35:16 [Notifier: Discord] Send notification to https://discord.com/api/webhooks/...
2023/07/19 02:35:17 [Notifier: Discord] status: 204, body:

@huacnlee huacnlee reopened this Jul 19, 2023
@huacnlee
Copy link
Collaborator
huacnlee commented Jul 19, 2023

Oh, sorry.

Because the R2 I am not do the real upload test by each change, accessKeyId and accessKeySecret of the storages in GoBackup is hard to get and keeping valid.

I just changed the wrong source location.

The v2.5.2 is in releasing.

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

No branches or pull requests

2 participants
0