我一直试图让回形针与我的heroku应用程序一起使用,并且我一直在遇到常见的Access Denied Error。
我试图修复它的过程就是这样。
毕竟,我仍然得到相同的访问被拒绝错误。
heroku日志看起来像这样。
2016-03-17T10:40:08.879149+00:00 app[web.1]: [paperclip] saving /posts/herobgs/000/000/002/original/I5APPDXHX3.jpg
2016-03-17T10:40:08.912162+00:00 app[web.1]: [AWS S3 403 0.03225 0 retries] put_object(:acl=>:public_read,:bucket_name=>"your_bucket_name",:content_length=>1584235,:content_type=>"image/jpeg",:data=>Paperclip::UploadedFileAdapter: I5APPDXHX3.jpg,:key=>"posts/herobgs/000/000/002/original/I5APPDXHX3.jpg") AWS::S3::Errors::AccessDenied Access Denied
2016-03-17T10:40:08.912179+00:00 app[web.1]:
2016-03-17T10:40:08.913506+00:00 app[web.1]: (0.9ms) ROLLBACK
2016-03-17T10:40:08.913736+00:00 app[web.1]: Completed 500 Internal Server Error in 3930ms (ActiveRecord: 3.7ms)
2016-03-17T10:40:08.914580+00:00 app[web.1]:
2016-03-17T10:40:08.914589+00:00 app[web.1]: AWS::S3::Errors::AccessDenied (Access Denied):
2016-03-17T10:40:08.914590+00:00 app[web.1]: app/controllers/posts_controller.rb:33:in `update'
2016-03-17T10:40:08.914591+00:00 app[web.1]: