开发者

Errno::EPIPE (Broken pipe) and AWS::S3::ExceptionClassClash when trying to mix heroku, paperclip and S3

开发者 https://www.devze.com 2023-03-29 03:12 出处:网络
I am trying to setup Amazon S3 with paperclip on heroku. I have everything working fine on my machine. I upload from my machine to S3 without any issues. I pushed my code to heroku and am seeing two i

I am trying to setup Amazon S3 with paperclip on heroku. I have everything working fine on my machine. I upload from my machine to S3 without any issues. I pushed my code to heroku and am seeing two issues:

AWS::S3::ExceptionClassClash (The exception class you tried to create (`AWS::S3::NoSuchBucket') exists and is not an exception)

2011-08-17T05:40:14+00:00 app[web.1]: Errno::EPIPE (Broken pipe)

I don't get why my local machine isn't having the same issues. Everything is exactly the same between the two (I pull from my git repo and push to heroku .开发者_StackOverflow.. on my machine, everything is fine, on heroku it errors out).


You have to add the config like this: http://blog.heroku.com/archives/2009/4/7/config-vars/


Double check the region in which is created the bucket.

You can see it in the properties of the bucket: if it's different from US Standard proabably is not working for you.

Try creating a new bucket on US-standard and see if it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消