Closed mmomjian closed 3 months ago
not sure if the used minio-go implementation is compatible to backblaze.. unfortunately the errors not printed/returned, you may want to retry with:
https://github.com/tizbac/pmoxs3backuproxy/pull/14/files
that should give a bit more information on whats wrong (maybe missing region settings or something like that)
The error is exactly as you suggest. I will try to build the SSL branch #15
2024/07/31 15:33:46 [INFO]Starting PBS api server on :18491 , upstream: s3.us-east-005.backblazeb2.com:443
2024/07/31 15:34:46 [DEBG]Request:/
2024/07/31 15:34:57 [DEBG]Request:/api2/json/access/ticket
2024/07/31 15:34:57 [DEBG]Content-Length=81
2024/07/31 15:34:57 [DEBG]Content-Type=application/x-www-form-urlencoded
2024/07/31 15:34:57 [DEBG]Te=deflate,gzip;q=0.3
2024/07/31 15:34:57 [DEBG]Keep-Alive=300
2024/07/31 15:34:57 [DEBG]Connection=Keep-Alive, TE
2024/07/31 15:34:57 [DEBG]Accept-Encoding=gzip
2024/07/31 15:34:57 [DEBG]User-Agent=libwww-perl/6.68
2024/07/31 15:34:57 [DEBG]{"data":{"CSRFPreventionToken":"35..23","ticket":"JDrs,,QP","username":"00..02e@pbs"}}
2024/07/31 15:34:57 [DEBG]Request:/api2/json/admin/datastore
2024/07/31 15:34:57 [DEBG]List buckets
2024/07/31 15:34:57 [ERR ]Failed to list buckets: <html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx</center>
</body>
</html>
Changes merged , confirmed working on PR
I have setup as following (running on a custom port, not 8007). I'm happy to provide an access/secret key for my Backblaze B2 instance for testing.
Error:
create storage failed: s3pbs: error fetching datastores - 500 Internal Server Error (500)
PBS settings:
10.30.10.10:18491
005...0002e@pbs
K0...VA
s3-proxy-proxmox
S3 proxy command:
pmoxs3backuproxy -bind ':18491' -endpoint 's3.us-east-005.backblazeb2.com:443' -cert /certs/fullchain.pem -key /certs/privkey.pem -debug
Bucket:
Key perms:
00.....02e s3-proxy-proxmox listAllBucketNames,listBuckets,readBuckets,listFiles,readFiles,writeFiles,readBucketEncryption,readBucketReplications
Logs (this is a result of trying to add twice)