longhorn: Can't connect to Scaleway Object Storage (S3) for backups
Hi there,
I’m trying to use Scaleway Object Storage as my S3 backup, but I keep getting some strange errors. I’ve Followed the documentations about Minio and the result is this:
I’ve created a secret called scaleway-secret, like this:
apiVersion: v1
kind: Secret
metadata:
name: scaleway-secret
namespace: longhorn-system
type: Opaque
data:
AWS_ACCESS_KEY_ID: xxxx
AWS_SECRET_ACCESS_KEY: xxxx
AWS_ENDPOINTS: aHR0cHM6Ly9zMy5ubC1hbXMuc2N3LmNsb3Vk
AWS_REGION: bmwtYW1z
which basically is the base64 to my configurations:
AWS_ACCESS_KEY_ID: xxxxx
AWS_SECRET_ACCESS_KEY: xxxxx
AWS_REGION: nl-ams
AWS_ENDPOINTS: https://s3.nl-ams.scw.cloud
the keys were altered to preserve security
and with this secret created, I gave longhorn the following configs:

But when I click on the Backup menu it returns me this error:
error listing backups: error listing backup volumes: Failed to execute: /var/lib/rancher/longhorn/engine-binaries/rancher-longhorn-engine-v0.4.0/longhorn [backup ls --volume-only s3://bucket-name@nl-ams/], output time="2019-03-06T18:53:59Z" level=error msg="{\n\n}" pkg=s3 time="2019-03-06T18:53:59Z" level=error msg="Fail to list s3: AWS Error: InvalidURI Couldn't parse the specified URI. <nil>\n400 \n" pkg=s3 time="2019-03-06T18:53:59Z" level=error msg="AWS Error: InvalidURI Couldn't parse the specified URI. <nil>\n400 \n" AWS Error: InvalidURI Couldn't parse the specified URI. <nil> 400 , error exit status 1

All configurations seems to be in order, I’ve even tried to take https off from the AWS_ENDPOINTS, but still got the same error.
Any ideas?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (8 by maintainers)
👋 I’ve just tested a basic installation of longhorn to test the S3 integration, it works.
I did this on the Paris region, but it should be the same for
nl-ams. The bucket has to be created in Scaleway’s S3. Are you sure the bucket namedbucket-namebelongs to you ?