jubos / fake-s3

A lightweight server clone of Amazon S3 that simulates most of the commands supported by S3 with minimal dependencies
2.94k stars 355 forks source link

"s3cmd ls" resulted a 404 #132

Open kchew534 opened 8 years ago

kchew534 commented 8 years ago

I tried to list all my buckets using "s3cmd ls" but failed, ERROR: S3 error: 404 (NoSuchBucket): The resource you requested does not exist

but it is ok to list a particular bucket, i.e. "s3smd ls s3://test-bucket" 2015-12-11 23:39 75 s3://test-bucket/foo.txt

deviantintegral commented 8 years ago

I'm seeing similar issues using the aws-cli client:

$ aws --endpoint-url http://localhost:8080 s3 cp Sosumi.mp3 s3://fakes3-bucket/Sosumi.mp3
upload: ./Sosumi.mp3 to s3://fakes3-bucket/Sosumi.mp3
$ aws --endpoint-url http://localhost:8080 s3 ls s3://fakes3-bucket/

An error occurred (NoSuchKey) when calling the ListObjects operation: The specified key does not exist
$ aws --endpoint-url http://localhost:8080 s3 ls s3://fakes3-bucket/Sosumi.mp3

An error occurred (NoSuchKey) when calling the ListObjects operation: The specified key does not exist