[GH-ISSUE #97] Error testing destination: Failed to test S3 bucket #78

Closed
opened 2026-02-26 21:34:19 +03:00 by kerem · 8 comments
Owner

Originally created by @JeanWLC on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/97

Hi

Since updating from 0.3.0 (tried every version thereafter), I'm getting the following error on my Backblaze destination:

error testing destination: failed to test S3 bucket: operation error S3: HeadBucket, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Head "/s3.us-east-005.backblazeb2.com/": unsupported protocol scheme ""

Originally created by @JeanWLC on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/97 Hi Since updating from 0.3.0 (tried every version thereafter), I'm getting the following error on my Backblaze destination: error testing destination: failed to test S3 bucket: operation error S3: HeadBucket, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , HostID: , request send failed, Head \"/s3.us-east-005.backblazeb2.com/<bucket-name>\": unsupported protocol scheme \"\"
kerem closed this issue 2026-02-26 21:34:19 +03:00
Author
Owner

@eduardolat commented on GitHub (Feb 13, 2025):

Can you try adding https:// before your endpoint?

Image

<!-- gh-comment-id:2656861075 --> @eduardolat commented on GitHub (Feb 13, 2025): Can you try adding `https://` before your endpoint? ![Image](https://github.com/user-attachments/assets/cb88ebde-9890-4873-ae83-04637bacf607)
Author
Owner

@JeanWLC commented on GitHub (Feb 13, 2025):

Thank you! That worked.

<!-- gh-comment-id:2656911287 --> @JeanWLC commented on GitHub (Feb 13, 2025): Thank you! That worked.
Author
Owner

@eduardolat commented on GitHub (Feb 13, 2025):

You are welcome

<!-- gh-comment-id:2656929595 --> @eduardolat commented on GitHub (Feb 13, 2025): You are welcome
Author
Owner

@narsaskpvt commented on GitHub (Feb 14, 2025):

Image

Testing got successful, but when running in execution it fails to upload to BackBlaze.

Find the error below:

failed to upload file to S3: operation error S3: CreateMultipartUpload, https response error StatusCode: 403, RequestID: 722[REDACTED]110e9, HostID: aON5mzzc[REDACTED]Y/M1gyrDGr, api error AccessDenied: not entitled

<!-- gh-comment-id:2659804000 --> @narsaskpvt commented on GitHub (Feb 14, 2025): <img width="575" alt="Image" src="https://github.com/user-attachments/assets/eb89ce17-787c-4cd9-ac19-f1ff210065b9" /> Testing got successful, but when running in execution it fails to upload to BackBlaze. Find the error below: failed to upload file to S3: operation error S3: CreateMultipartUpload, https response error StatusCode: 403, RequestID: 722[REDACTED]110e9, HostID: aON5mzzc[REDACTED]Y/M1gyrDGr, api error AccessDenied: not entitled
Author
Owner

@eduardolat commented on GitHub (Feb 14, 2025):

Can you verify that your api key has access to the bucket you want to use?

I use backblaze myself and it seems to work fine

<!-- gh-comment-id:2660368859 --> @eduardolat commented on GitHub (Feb 14, 2025): Can you verify that your api key has access to the bucket you want to use? I use backblaze myself and it seems to work fine
Author
Owner

@narsaskpvt commented on GitHub (Feb 15, 2025):

Image Image

I have updated the keyID as Access Key and applicationKey as Secret Key.

Let know if that's right. Interestingly it shows "Connection Successful" in test process.

Also I'm new to BackBlaze as well, attached an image from the bucket settings. (ref. image 2)

<!-- gh-comment-id:2661008056 --> @narsaskpvt commented on GitHub (Feb 15, 2025): <img width="591" alt="Image" src="https://github.com/user-attachments/assets/d7ae56ce-d4ec-4f5e-b3e4-0a2aed7540ba" /> <img width="605" alt="Image" src="https://github.com/user-attachments/assets/de30903d-29fa-452a-b555-4017fbcdd9f1" /> I have updated the keyID as Access Key and applicationKey as Secret Key. Let know if that's right. Interestingly it shows "Connection Successful" in test process. Also I'm new to BackBlaze as well, attached an image from the bucket settings. (ref. image 2)
Author
Owner

@eduardolat commented on GitHub (Feb 15, 2025):

Based on the permissions list of your key I think you are using the "master application" key, I think you should use an "application key"

https://www.backblaze.com/docs/cloud-storage-application-keys

https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api

Image

Image

<!-- gh-comment-id:2661013076 --> @eduardolat commented on GitHub (Feb 15, 2025): Based on the permissions list of your key I think you are using the "master application" key, I think you should use an "application key" https://www.backblaze.com/docs/cloud-storage-application-keys https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api ![Image](https://github.com/user-attachments/assets/1244631e-3877-42f8-a9ff-5f99eb5b6ad1) ![Image](https://github.com/user-attachments/assets/b93ef3e8-76a0-4b0c-961b-ab3503027b34)
Author
Owner

@narsaskpvt commented on GitHub (Feb 15, 2025):

I was using the Application Key not the Master Key. @eduardolat

<!-- gh-comment-id:2661027198 --> @narsaskpvt commented on GitHub (Feb 15, 2025): I was using the Application Key not the Master Key. @eduardolat
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgbackweb#78
No description provided.