What is the problem you are having with rclone?
I'm using rclone to proxy and cache an AWS s3 bucket. I am able to run aws s3 cp s3://mybucket/myfolder/file.txt --endpoint-url http://rclone-s3-service
to copy a file down just fine - but I'm not able to list the contents of any folder in the same bucket. I don't receive any errors, just zero files are returned. Here's the command, it just always returns empty with no errors: aws s3 ls s3://mybucket/myfolder/ --endpoint-url http://rclone-s3-service --debug
From the aws cli --debug output, I noticed that the AWS CLI isn't including the folder I'm trying to search in the path when sending to my rclone server. Instead, it's pass it as a 'prefix' query parameter in the url.
It's sending this:
http://rclone-s3-service/mybucket?list-type=2&prefix=myfolder%2F&encoding-type=url
I would expect it to be this:
http://rclone-s3-service/mybucket/myfolder?list-type=2&prefix=myfolder%2F&encoding-type=url
AWS debug output here:
2024-09-06 16:13:10,969 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=http://rclone-s3-service/mybucket?list-type=2&prefix=myfolder%2F&encoding-type=url, headers={..}
I have verified if I use curl to hit http://rclone-s3-service/mybucket/myfolder it does list properly .. it just seems to be an issue with aws cli. I am using aws cli v2
Run the command 'rclone version' and share the full output of the command.
rclone v1.67.0
- os/version: alpine 3.20.0 (64 bit)
- os/kernel: 6.8.0-1008-aws (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)
AWS S3
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[s3]
type = s3
provider = AWS
env_auth = true
region = us-west-1
endpoint = s3.amazonaws.com
A log from the command that you were trying to run with the -vv
flag
No logs are generated on the server site despite having -vv set.