https://rancher.com/ logo
Title
e

enough-memory-12110

03/01/2023, 6:48 AM
I am having problems with longhorn 1.2.2: I tried setting up a backup target on a custom S3 endpoint. But we're getting an error:
error listing backup volume names: Timeout executing: /var/lib/longhorn/engine-binaries/rancher-mirrored-longhornio-longhorn-engine-v1.2.2/longhorn [backup ls --volume-only <s3://backups@us-east-1/>], output , stderr, , error <nil>
I tried logging in to the container and checking the probelm from its side and this is what we get:
root@longhorn-manager-57lhs:/# /var/lib/longhorn/engine-binaries/rancher-mirrored-longhornio-longhorn-engine-v1.2.2/longhorn backup ls --volume-only <s3://backup/>
ERRO[0020] Fail to list s3: NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors  pkg=s3
I am sure the credentials in secret are valid and properly formatted ( I've copied minio configuration and adjust to our environment ). Can anyone from here help us diagnose the problem further and solve it? (edited)
f

famous-shampoo-18483

03/07/2023, 3:59 AM
Are you running Longhorn in AWS? Although you are using minIO rather than S3… I found there were several related tickets in Longhorn issues but they were all related to AWS: https://github.com/longhorn/longhorn/issues?q=is%3Aissue+NoCredentialProviders+
OK. I forgot that you already raised the question in CNCF channel. I will follow it in that thread.