Dynamoid icon indicating copy to clipboard operation
Dynamoid copied to clipboard

Getting weird "Table already exists" error when the table exists V.S. "Resources not found" error when table is deleted.

Open terencelin opened this issue 10 years ago • 3 comments

Hi there,

I have run into a weird error when I tried to create new tables on AWS.

Usually, it will create a new table automatically when table does not exist or when I change index keys, but recently it's giving me an error stated that "AWS::DynamoDB::Errors::ResourceNotFoundException".

So I created the table manually through AWS console and run it again, then this time it's giving me the error "(AWS::DynamoDB::Errors::ResourceInUseException) "Table already exists: ".

I have no idea what's going on here, a little help needed here please, thank you.

aws sdk : 1.29.1 dynamoid : 0.7.1

terencelin avatar Sep 08 '14 18:09 terencelin

Did you check to make sure that the table you created in the AWS console wasn't still provisioning?

ngordon17 avatar Mar 20 '15 06:03 ngordon17

I had the same issue, and it went away after a few refreshes. Careful, if Sidekiq encounters this when it's starting up and initialising the class that you're using Dynamoid in then it will crash and will need to be restarted.

nickdowse avatar May 03 '16 10:05 nickdowse

The solution for me was change the region in aws console

jamp00 avatar Dec 15 '19 22:12 jamp00