Rclone mount s3 should fail with invalid credentials

What is the problem you are having with rclone?

We do not receive any error when using rclone mount to mount an s3 bucket with invalid credentials or non-existing bucket

Run the command 'rclone version' and share the full output of the command.

rclone v1.56.2

  • os/version: alpine 3.14.2 (64 bit)
  • os/kernel: 5.10.47-linuxkit (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

AWS S3

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone  --timeout 10s --rc-server-read-timeout=10s -vv --dump headers --contimeout=1s --retries=1 --low-level-retries=1 --config /root/rclone/rclone.conf  mount source:non-existing-bucket/  /test3

The rclone config contents with secrets removed.

[source]
type = s3
access_key_id = this-is-not-my-access-key
secret_access_key = this-is-not-my-secret-key
region = eu-north-1
provider = AWS

A log from the command with the -vv flag

2022/02/16 10:57:29 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "--timeout" "10s" "--rc-server-read-timeout=10s" "-vv" "--dump" "headers" "--contimeout=1s" "--retries=1" "--low-level-retries=1" "--config" "/root/rclone/rclone.conf" "mount" "source:non-existing-bucket/" "/test3"]
2022/02/16 10:57:29 DEBUG : Creating backend with remote "source:non-existing-bucket/"
2022/02/16 10:57:29 DEBUG : Using config file from "/root/rclone/rclone.conf"
2022/02/16 10:57:29 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2022/02/16 10:57:29 DEBUG : fs cache: renaming cache item "source:non-existing-bucket/" to be canonical "source:non-existing-bucket"
2022/02/16 10:57:29 INFO  : S3 bucket non-existing-bucket: poll-interval is not supported by this remote
2022/02/16 10:57:29 DEBUG : S3 bucket non-existing-bucket: Mounting on "/test3"
2022/02/16 10:57:29 DEBUG : : Root:
2022/02/16 10:57:29 DEBUG : : >Root: node=/, err=<nil>

That seems like a fairly straight one. I'd open a github as I can reproduce that as well as that could be a good enhancement/bug fix.

1 Like

Do you mean that I should create an issue on Github, Issues · rclone/rclone · GitHub ?

Yep, sorry, still early here :slight_smile: as I didn't even link it. That is the spot though!

1 Like

Link to issue: rclone mount s3 should fail with invalid credentials · Issue #5996 · rclone/rclone · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.