Error in S3 connection in PBS 4.1

clsaad

Member
Nov 17, 2022
5
0
6
We are starting to use S3 with a provider that uses S3 compatible. We were able to access it with the S3 Browser, create a bucket, and send/receive files with success.

When connecting to PBS 4.1, I can list the created buckets, however, when saving, it returns a 403 Forbidden error.

Console/SSH:
root@pbs:~# proxmox-backup-manager s3 endpoint list-buckets PBS01_under
Result: [
{
"name": "pbs01under"
}
]

root@pbs:~# proxmox-backup-manager s3 check PBS01_under pbs01under
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

Error: put object failed

Caused by:
unexpected status code 403 Forbidden


I haven't been able to find more information or logs in PBS to understand what might be happening. The credentials were validated because the bucket is listed, but I can't complete the connection. The credential is the owner and has full access to the bucket.

Could someone help me? Thank you.
 
Error: put object failed

Caused by:
unexpected status code 403 Forbidden
This indicates that there is either a permission issue or a misconfiguration of the S3 endpoint. Since you checked the credentials via an independent client, the latter is most likely the case. Also, the list bucket seems to succeed.

Please check the following:
  • make sure the region is set correctly. It is part of the aws v4 sign scheme used for request authentication.
  • make sure you use either path-style bucket addressing if the bucket name is not part of your S3 api endpoint url, or use the literal {{bucket}} template string in the endpoint url.
Some example configurations can be found in the docs at https://pbs.proxmox.com/docs/storage.html#s3-datastore-backend-configuration-examples