S3 Heroku Europe

56 views
Skip to first unread message

Joe James

unread,
Sep 13, 2010, 8:00:19 PM9/13/10
to Dragonfly
Hello,

I followed your tutorial to get S3 working for Heroku, but I get this
error whenever I try to upload:

AWS::S3::PermanentRedirect (The bucket you are attempting to access
must be addressed using the specified endpoint. Please send all future
requests to this endpoint.):

I've have googled around a bit for an answer. The general gist is that
the s3 gem doesn't work with europe's S3 url's to access the bucket.
It needs to use the format bucketname.s3.amazonaws.com instead of
s3.amazonaws.com/bucketname,

If this is the problem, do you think you'll be able to apply a
solution, or is there a fix I can make myself?

Fantastic gem btw! I use it in nearly every project.

Mark Evans

unread,
Sep 14, 2010, 9:14:31 AM9/14/10
to Dragonfly
Hi

To be honest, I think the solution might be for me to migrate from
using the aws-s3 gem to the s3 gem, which supports both US and
European buckets.

In the meantime, my colleague said that the constant change at the
bottom of http://github.com/marcel/aws-s3/issues#issue/4 worked for
him.

Alternatively, you could implement a custom S3 datastore, using the s3
gem https://rubygems.org/gems/s3, using the guidelines here:
http://markevans.github.com/dragonfly/file.DataStorage.html

Hope that helps

Mark
Reply all
Reply to author
Forward
0 new messages