I get the error:
The request signature we calculated does not match the signature you provided. Check your key and signing method.
when saving an attachment in a rake task. the same file file saves correctly via the active admin interface to the same model. The Rake task worked prior to an upgrade to rails 4 and paperclip 4 from 3.
i'm running rails 4.0.2 and ruby 2.1.1 gem "paperclip", "~> 4.1.0"
My paperclip config looks like this:
config.paperclip_defaults = {
:storage => :s3,
:s3_credentials => {
:bucket => ENV['S3_BUCKET_NAME'],
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'],
# :s3_protocol => "http", do i need this?
:s3_endpoint => 's3-ap-southeast-2.amazonaws.com'
},
:s3_endpoint => 's3-ap-southeast-2.amazonaws.com',
:s3_host_name => 's3-ap-southeast-2.amazonaws.com'
}
why does the rake task not save the attachment?