longhorn: [BUG] Validate S3 input to make sure they don't contain trailing newline or space

Hi,

How can I debug the following error? error listing backups: error listing backup volumes: Failed to execute: /var/lib/rancher/longhorn/engine-binaries/longhornio-longhorn-engine-v0.6.2/longhorn [backup ls --volume-only s3://longhorn/], output Caught FATAL error: runtime error: invalid memory address or nil pointer dereference

I’m using Wasabi S3 and can connect with the awscli tools using the same token and key. The error message isn’t specific enough for me to pinpoint the problem i.e. is it an issue with the secret

Screenshot from 2019-10-11 09-47-35

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

@HuxyUK You need to use echo -n otherwise echo will add a new line in the end.

So https://s3.eu-central-1.wasabisys.com should be

$ echo -n https://s3.eu-central-1.wasabisys.com | base64
aHR0cHM6Ly9zMy5ldS1jZW50cmFsLTEud2FzYWJpc3lzLmNvbQ==