生产中的CarrierWaver错误

时间:2016-04-26 19:32:34

标签: ruby-on-rails amazon-s3 carrierwave production minimagick

我正在使用AWS S3进行生产中的文件存储。每当我尝试使用载波和MiniMagick上传文件时,我都会收到错误消息。这是我的最新日志:

Completed 500 Internal Server Error in 4045ms (ActiveRecord: 6.1ms)
Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
excon.error.response
:body          => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error>    <Code>AccessDenied</Code><Message>Access Denied</Message>  <RequestId>DCF69609EFC07D35</RequestId>  <HostId>9yQPgVg+/ejnbR7gTgWqWILl0Ae+eUlKMJhwIjATe3ctav1CkuyaxSCE38rWJteASzPvaBX6  8KY=</HostId></Error>"
:headers       => {
"Connection"       => "close"
"Content-Type"     => "application/xml"
"Date"             => "Tue, 26 Apr 2016 19:25:20 GMT"
"Server"           => "AmazonS3"
"x-amz-id-2"       => "9yQPgVg+/ejnbR7gTgWqWILl0Ae+eUlKMJhwIjATe3ctav1CkuyaxSCE38rWJteASzPvaBX68KY="
"x-amz-request-id" => "DCF69609EFC07D35"
}
:local_address => "46.101.134.74"
:local_port    => 56549
:reason_phrase => "Forbidden"
:remote_ip     => "54.231.176.121"
:status        => 403
:status_line   => "HTTP/1.1 403 Forbidden\r\n"
):
app/controllers/projects_controller.rb:58:in `block in update'
app/controllers/projects_controller.rb:57:in `update'

0 个答案:

没有答案