Serve s3 - error listing files in bucket

What is the problem you are having with rclone?

I am trying out "rclone serve s3", but I'm having an issue listing files in a bucket from the aws cli. I can download and upload files, but can't list files in a bucket. Please let me know if I should be doing it differently. I got the same error with WinSCP, but it works if I use rclone as my client.

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

rclone v1.67.0
- os/version: almalinux 9.4 (64 bit)
- os/kernel: 5.14.0-427.28.1.el9_4.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none

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

Rclone Serve S3

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

In terminal 1:
rclone serve s3 . --auth-key aaa,bbb --verbose

In terminal 2:
export AWS_ACCESS_KEY_ID=aaa
export AWS_SECRET_ACCESS_KEY=bbb
aws s3 --endpoint-url http://127.0.0.1:8080 mb s3://test123
aws s3 --endpoint-url http://127.0.0.1:8080 ls s3://test123

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

2024/08/09 15:31:46 NOTICE: Config file "/home/test/.config/rclone/rclone.conf" not found - using defaults
; empty config
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

When running the ls command, I get this error:
An error occurred (SignatureDoesNotMatch) when calling the ListObjectsV2 operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.

and rclone logs:

2024/08/09 15:12:44 INFO  : serve s3: Access Denied: 127.0.0.1:41314 => /test123?list-type=2&prefix=&delimiter=%!F(MISSING)&encoding-type=url

Hmm looks like a bug.

Can you try the rclone beta?

It works in the latest beta (v1.68.0-beta.8152.e33436634).

Thanks, I'll try that first next time.

1 Like

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