Hi there
I am having an issue configuring heroku with s3. Have followed the guide
http://refinerycms.com/guides/heroku#adding-amazon-s3-supportbut get the following error in the response from AWS.
(taken from heroku logs)
---------------------------------------------------
Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
request => {
:chunk_size=>1048576,
:connect_timeout=>60,
:headers=>{
"Date"=>"Wed, 05 Dec 2012 10:47:11 +0000",
"Authorization"=>"AWS THISISMYKEY:UoeQUcBomC2PxpXavaUUXYeMCeU=",
"Host"=>"
test.bucket.s3.amazonaws.com:443"},
:instrumentor_name=>"excon",
:mock=>false,
:nonblock=>true,
:read_timeout=>60,
:retry_limit=>4,
:ssl_ca_file=>"/app/vendor/bundle/ruby/1.9.1/gems/excon-0.16.10/data/cacert.pem",
:ssl_verify_peer=>true,
:write_timeout=>60,
:host=>"
test.bucket.s3.amazonaws.com",
:host_port=>"
test.bucket.s3.amazonaws.com:443",
:path=>"/",
:port=>"443",
:query=>{},
:scheme=>"https",
:expects=>200,
:idempotent=>true,
:method=>"GET",
:response_block=>#<Proc:0x00000007290b38@/app/vendor/bundle/ruby/1.9.1/gems/fog-1.7.0/lib/fog/core/connection.rb:16 (lambda)>}
response => #<Excon::Response:0x0000000724a048
@body="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Error>
<Code>InvalidAccessKeyId</Code>
<Message>The AWS Access Key Id you provided does not exist in our records.</Message>
<RequestId>15EB531B53FF73E3</RequestId> <HostId>BL0N8hpPibqOW+nvoUJwtqTGoxwx+dOup7fUQGaAv3WguQGqzMn6R3iMFPUEaODH</HostId>
<AWSAccessKeyId>THISISMYKEY</AWSAccessKeyId>
</Error>",
@headers={
"x-amz-request-id"=>"15EB531B53FF73E3",
"x-amz-id-2"=>"BL0N8hpPibqOW+nvoUJwtqTGoxwx+dOup7fUQGaAv3WguQGqzMn6R3iMFPUEaODH",
"Content-Type"=>"application/xml",
"Transfer-Encoding"=>"chunked",
"Date"=>"Wed, 05 Dec 2012 10:47:11 GMT",
"Server"=>"AmazonS3"},
@status=403>):
---------------------------------------------------
Here are my config vars and production.rb excerpt .... with modified values, and yes I have
confirmed the values are the same.
$ heroku config | grep S3
S3_BUCKET: test.bucket
S3_KEY: THISISMYKEY
S3_SECRET: THISISMYSECRET
$ grep -i S3 config/environments/production.rb
config.s3_backend = true
ENV['S3_KEY']='THISISMYKEY'
ENV['S3_SECRET']='THISISMYSECRET'
ENV['S3_BUCKET']='test.bucket'
Any hints on how to debug/proceed from here would be greatly appreciated.
cheers