title: How to resolve 403 aws error?
body: <p>I'm getting a 403 error when I try to upload a file (with carrierwave / fog) on my rails site. Everything is working locally, and on a different site I built that uses the same aws bucket.</p>
  
  <p>Not sure how to troubleshoot this... Here is my full log:</p>
  
  <pre><code>2016-04-16T23:46:14.648046+00:00 app[web.1]:    (3.8ms)  ROLLBACK
  2016-04-16T23:46:14.648461+00:00 app[web.1]: Completed 500 Internal Server Error in 250ms
  2016-04-16T23:46:14.650859+00:00 app[web.1]: 
  2016-04-16T23:46:14.650868+00:00 app[web.1]: Excon::Errors::Forbidden (Expected(200) &lt;=&gt; Actual(403 Forbidden)
  2016-04-16T23:46:14.650869+00:00 app[web.1]: excon.error.response
  2016-04-16T23:46:14.650873+00:00 app[web.1]:   :cookies       =&gt; [
  2016-04-16T23:46:14.650874+00:00 app[web.1]:     "Connection"       =&gt; "close"
  2016-04-16T23:46:14.650872+00:00 app[web.1]:   :body          =&gt; "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;Error&gt;&lt;Code&gt;AllAccessDisabled&lt;/Code&gt;&lt;Message&gt;All access to this object has been disabled&lt;/Message&gt;&lt;RequestId&gt;E72C3A0BE72715F6&lt;/RequestId&gt;&lt;HostId&gt;sLnw1x3KEV4ugpi3pHCh2DwoP0eIl/mX18D3789QDSWriYM7vg6DFFUfug9ylyuGExvhaIlXUIo=&lt;/HostId&gt;&lt;/Error&gt;"
  2016-04-16T23:46:14.650873+00:00 app[web.1]:   ]
  2016-04-16T23:46:14.650874+00:00 app[web.1]:   :headers       =&gt; {
  2016-04-16T23:46:14.650876+00:00 app[web.1]:     "Date"             =&gt; "Sat, 16 Apr 2016 23:46:13 GMT"
  2016-04-16T23:46:14.650875+00:00 app[web.1]:     "Content-Type"     =&gt; "application/xml"
  2016-04-16T23:46:14.650878+00:00 app[web.1]:     "x-amz-id-2"       =&gt; "sLnw1x3KEV4ugpi3pHCh2DwoP0eIl/mX18D3789QDSWriYM7vg6DFFUfug9ylyuGExvhaIlXUIo="
  2016-04-16T23:46:14.650878+00:00 app[web.1]:     "x-amz-request-id" =&gt; "E72C3A0BE72715F6"
  2016-04-16T23:46:14.650877+00:00 app[web.1]:     "Server"           =&gt; "AmazonS3"
  2016-04-16T23:46:14.650879+00:00 app[web.1]:   }
  2016-04-16T23:46:14.650880+00:00 app[web.1]:   :local_address =&gt; "172.17.72.90"
  2016-04-16T23:46:14.650880+00:00 app[web.1]:   :host          =&gt; "s3.amazonaws.com"
  2016-04-16T23:46:14.650881+00:00 app[web.1]:   :local_port    =&gt; 56731
  2016-04-16T23:46:14.650882+00:00 app[web.1]:   :path          =&gt; "/uploads/song/track/5/snare_card_2.wav"
  2016-04-16T23:46:14.650882+00:00 app[web.1]:   :port          =&gt; 443
  2016-04-16T23:46:14.650883+00:00 app[web.1]:   :remote_ip     =&gt; "54.231.14.104"
  2016-04-16T23:46:14.650883+00:00 app[web.1]:   :reason_phrase =&gt; "Forbidden"
  2016-04-16T23:46:14.650884+00:00 app[web.1]:   :status        =&gt; 403
  2016-04-16T23:46:14.650885+00:00 app[web.1]:   :status_line   =&gt; "HTTP/1.1 403 Forbidden\r\n"
  2016-04-16T23:46:14.650885+00:00 app[web.1]: ):
  </code></pre>
  
  <p>Any ideas?</p>