AWS::S3::NoSuchBucket (The specified bucket does not exist)
So I did some digging in file vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb, I replaced:
#Bucket.create(@@bucket_name)
with:
begin
Bucket.find(@@bucket_name)
rescue AWS::S3::NoSuchBucket
Bucket.create(@@bucket_name)
end
There must have been a reason to comment out the Bucket.create line, but I have yet to find it in my Google searches. So this makes me think there is something more behind the Bucket.create method than I realize at this time.
So, I'm not sure if it is the correct fix, but it works. If you know of a problem with this fix, please let me know.

2 comments:
Thanks for the tip. Not sure why it's commented either, but this got me going after a long period of saying bad horrible things at my computer.
Happy to help. Your comment made me realize I forgot to add where I made the change. The post has been updated.
Post a Comment