Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error "[BucketAlreadyOwnedByYou] Your previous request to create the named bucket succeeded and you already own it" in amazon server

I checked the my server log, there are so many errors like:

S3::putBucket(******): [BucketAlreadyOwnedByYou] Your previous request to create the named bucket succeeded and you already own it. in /var/www/html/****/public_html/*****/common/config/S3.php on line 188

I googled it, but I didn't get any proper help, can anyone please tell me what is causing this error? How can I solve this issue?

like image 289
Nikul Avatar asked Feb 12 '16 07:02

Nikul


1 Answers

All this is related with regions. For example, if your script set region to us-east-1, but using Amazon new interface to create a nue bucket you chose any other, when run your script you will have that error. In my case I had to delete the newly created bucket and re-created. This will take time, because AWS locks bucket name, so just be patient to recreate the folder. Of course there are other ways to do it in code, if you are not in a rush (like me). But trust me, they take time to kill that bucket...

like image 115
fmk Avatar answered Sep 19 '22 22:09

fmk