Bugs: Browse | Submit New | Admin

[#23625] "AWS::S3::PermanentRedirect" error when using european bucket

Date:
2009-01-20 10:19
Priority:
3
Submitted By:
Maurizio De Magnis (olistik)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
"AWS::S3::PermanentRedirect" error when using european bucket

Detailed description
I'm using Ubuntu Intrepid Ibex 8.10:

$ uname -a
Linux godzer 2.6.27-11-generic #1 SMP Thu Jan 15 11:42:36 UTC 2009 x86_64 GNU/Linux

$ gem list
aws-s3 (0.5.1)
[other gems here]

$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

$ s3sh
Welcome to interactive ruby!
irb --> Base.establish_connection!(
  :access_key_id => "[secret_here]",
  :secret_access_key => "[secret_here]",
  :server => "mysubdomain.s3.amazonaws.com")

irb --> S3Object.store("mytempfile.txt", "sometextvalue")
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.
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/error.rb:38:in `raise'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:72:in `request'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:83:in `put'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/object.rb:241:in `store'
	from (irb):2

irb --> S3Object.store("mytempfile.txt", "sometextvalue", "mysubdomain")
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.
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/error.rb:38:in `raise'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:72:in `request'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/base.rb:83:in `put'
	from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.5.1/bin/../lib/aws/s3/object.rb:241:in `store'
	from (irb):3

How can I solve this?

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-05-12 13:50
Sender: Chris Richards

Everyone in europe will have this problem! Please help us!

I think your supposed to access files at bucketname.s3.amazonaws.com
rather than s3.amazonaws.com/bucketname.


please fix!!

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item