fake-s3 icon indicating copy to clipboard operation
fake-s3 copied to clipboard

Unable to Delete Buckets

Open souvikduttachoudhury opened this issue 8 years ago • 4 comments

I am unable to delete a bucket even after deleting all the folders and versions inside it. It showing Internal Server error.

souvikduttachoudhury avatar Dec 20 '16 12:12 souvikduttachoudhury

Can you share the HTTP request you're making?

pickhardt avatar Jan 02 '17 00:01 pickhardt

Same issue with revision 1.0.0:

    $ s3cmd ls
    $ s3cmd mb s3://s3perf-testbucket
    Bucket 's3://s3perf-testbucket/' created
    $ s3cmd ls
    2017-04-25 15:33  s3://s3perf-testbucket
    $ s3cmd rb s3://s3perf-testbucket
    Bucket 's3://s3perf-testbucket/' removed
    $ s3cmd ls
    2017-04-25 15:33  s3://s3perf-testbucket
    $ s3cmd ls s3://s3perf-testbucket
    ERROR: Bucket 's3perf-testbucket' does not exist
    ERROR: S3 error: 404 (NoSuchBucket): The resource you requested does not exist
    $ s3cmd rb s3://s3perf-testbucket
    ERROR: Error parsing xml: syntax error: line 1, column 48
    ERROR: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
    <HTML>
      <HEAD><TITLE>Internal Server Error</TITLE></HEAD>
      <BODY>
	<H1>Internal Server Error</H1>
	The bucket you tried to delete is not empty.
	<HR>
	<ADDRESS>
	WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13) OpenSSL/1.0.1t at
	10.0.0.253:8080
	</ADDRESS>
      </BODY>
    </HTML>

    WARNING: Retrying failed request: / (500 (Internal Server Error))
    WARNING: Waiting 3 sec...

On server side, Fake S3 says:

[2017-04-25 15:35:19] ERROR FakeS3::NoSuchBucket: The bucket you tried to delete is not empty.

christianbaun avatar Apr 25 '17 13:04 christianbaun

is this still not solved? I'm hitting the same problem. Also delete_objects() method returns ERROR WEBrick::HTTPStatus::BadRequest on server side. Any clue?

babaMar avatar Jul 06 '18 15:07 babaMar

Sorry, but I did some work with Fake S3 in 2017 because I used it (among many other S3 compatible services) to test my performance measurement tool OSSperf and to collect more information for this work:

OSSperf - a lightweight solution for the performance evaluation of object-based cloud storage services. Christian Baun, Henry-Norbert Cocos and Rosa-Maria Spanou. Journal of Cloud Computing - Advances, Systems and Applications 2017 6:24.

Afterwards I did not test Fake S3 any further.

If you search for a free and stable S3 compatible service that is under active development, user friendly and well documented, I recommend using Minio.

Best Regards Christian

christianbaun avatar Jul 06 '18 19:07 christianbaun