XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Backblaze as Remote error Unsupported header 'x-amz-checksum-mode' received for this API call.

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    16 Posts 7 Posters 3.6k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mguimond @DustinB
      last edited by

      @DustinB That is correct.

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        DustinB @mguimond
        last edited by

        @mguimond Could be a bug in a recent release, @Danp are you aware of anything?

        DanpD 1 Reply Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team @DustinB
          last edited by

          @DustinB No, but dev team has been notified so that they can investigate.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jr-m4
            last edited by

            I submitted this as a GitHub issue last week.

            TL;DR: Backblaze aparently doesn't support those flags that are enabled by default
            "Backblaze does not yet accept these headers, so we recommend downgrading to AWS Javascript 3.x SDK version 3.728.0."

            https://github.com/vatesfr/xen-orchestra/issues/8358

            cloudrootab created this issue in vatesfr/xen-orchestra

            open S3 Backup: "Unsupported header 'x-amz-checksum-mode' received for this API call." #8358

            florentF 1 Reply Last reply Reply Quote 3
            • florentF Offline
              florent Vates 🪐 XO Team @jr-m4
              last edited by

              @jr-m4 nice find . thank you

              1 Reply Last reply Reply Quote 0
              • florentF Offline
                florent Vates 🪐 XO Team @mguimond
                last edited by florent

                @mguimond @jr-m4 I would like to be able to keep the library up to date.
                Would it be possible to patch a file in your install ? and check if the backup run It will disable the checksum computation .

                Note that if you use backup encryption, the checksum are already checked on restore

                you can either use this branch : fix_s3_backblaze or modify directly the code in your installation in <xo>/node_modules/@xen-orchestra/fs/dist/s3.js

                replace :

                 requestHandler: new _nodeHttpHandler.NodeHttpHandler({
                        socketTimeout: 600000,
                        httpAgent: new _http.Agent({
                          keepAlive: true
                        }),
                        httpsAgent: new _https.Agent({
                          rejectUnauthorized: !allowUnauthorized,
                          keepAlive: true
                        })
                      })
                

                by

                 requestHandler: new _nodeHttpHandler.NodeHttpHandler({
                        socketTimeout: 600000,
                        httpAgent: new _http.Agent({
                          keepAlive: true
                        }),
                        httpsAgent: new _https.Agent({
                          rejectUnauthorized: !allowUnauthorized,
                          keepAlive: true
                        })
                      }),
                      requestChecksumCalculation: "WHEN_REQUIRED",
                      responseChecksumValidation: "WHEN_REQUIRED"
                

                (the difference is

                ,
                      requestChecksumCalculation: "WHEN_REQUIRED",
                      responseChecksumValidation: "WHEN_REQUIRED"
                
                P 1 Reply Last reply Reply Quote 1
                • P Online
                  probain @florent
                  last edited by

                  @florent said in Backblaze as Remote error Unsupported header 'x-amz-checksum-mode' received for this API call.:

                  ,
                  requestChecksumCalculation: "WHEN_REQUIRED",
                  responseChecksumValidation: "WHEN_REQUIRED"

                  I (previously as @jr-m4) just tried the patch you suggested. And I can confirm that this does indeed make the backup complete successfully!
                  Great work finding a solution that quicklly!

                  1 Reply Last reply Reply Quote 2
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    😎 Great example on how great the community is and how fast our dev can fix it! Thanks for the feedback, it really matters, as you can see!

                    1 Reply Last reply Reply Quote 3
                    • florentF Offline
                      florent Vates 🪐 XO Team
                      last edited by

                      thanks for pointing the exact issue in the aws SDK. It gave use enough matter to find the fix

                      M 1 Reply Last reply Reply Quote 1
                      • M Offline
                        mguimond @florent
                        last edited by

                        @florent Sorry for the delay. I was able to make it work with the change you posted. Thank You.

                        1 Reply Last reply Reply Quote 1
                        • olivierlambertO olivierlambert marked this topic as a question on
                        • olivierlambertO olivierlambert has marked this topic as solved on

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post