From amir.helzer at gmail.com Mon Nov 5 10:59:54 2007 From: amir.helzer at gmail.com (Amir Helzer) Date: Mon, 5 Nov 2007 11:59:54 -0400 Subject: [s3-dev] Set metadata when storing an object Message-ID: Hi, Is it possible to store the metadata for an object when storing it? I manage to do it in two steps: 1) store, 2) change metadata and store again. Is it possible to do in one PUT? Thanks, Helzer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/amazon-s3-dev/attachments/20071105/d466a798/attachment.html From ndi-l at bumppo.net Mon Nov 19 02:59:33 2007 From: ndi-l at bumppo.net (Nathaniel Irons) Date: Sun, 18 Nov 2007 23:59:33 -0800 Subject: [s3-dev] Dying at require Message-ID: It seems like there's a good chance that I'm missing something basic, but I'm having trouble getting past "require 'aws/s3'". I've tried running this wee stub on four machines: ------- #!/usr/local/bin/ruby -w require 'rubygems' require 'aws/s3' ------- Here's the shared result: /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/extensions.rb:277: warning: method redefined; discarding old send_request_with_body_stream /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/base.rb:213: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/acl.rb:470: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/logging.rb:65: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/logging.rb:110: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/logging.rb:200: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/owner.rb:35: warning: method redefined; discarding old proxiable_attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/object.rb:372: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/object.rb:601: warning: method redefined; discarding old proxiable_attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/error.rb:42: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/error.rb:42: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/error.rb:42: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/response.rb:53: warning: method redefined; discarding old parsed /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/response.rb:151: warning: private attribute? /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/response.rb:152: warning: private attribute? These are my test environments, substituting /usr/bin/ruby where appropriate: Intel Mac OS X 10.5.1, locally compiled Ruby 1.8.6 Intel Mac OS X 10.4.10, locally compiled Ruby 1.8.6 PPC Mac OS X 10.4.9, stock Ruby 1.8.2 x86 Debian 4.0, stock apt-get Ruby 1.8.5 I used gem to fetch and install aws-s3 in each case, and aside from some fiddling with Debian's odd package management choices, it all went smoothly. Oddly, s3sh runs fine -- I can connect, list buckets, list keys, and retrieve values, which is all I need to automate. If I'm doing something wrong, I'm at least doing it consistently. Thanks for any advice. -nat From marcel at vernix.org Mon Nov 19 12:25:24 2007 From: marcel at vernix.org (Marcel Molina Jr.) Date: Mon, 19 Nov 2007 17:25:24 +0000 Subject: [s3-dev] Dying at require In-Reply-To: References: Message-ID: <20071119172524.GD26909@comox.textdrive.com> On Sun, Nov 18, 2007 at 11:59:33PM -0800, Nathaniel Irons wrote: > It seems like there's a good chance that I'm missing something > basic, but > I'm having trouble getting past "require 'aws/s3'". I've tried running > this wee stub on four machines: > > ------- > #!/usr/local/bin/ruby -w > require 'rubygems' > require 'aws/s3' > ------- > > Here's the shared result: > > /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/extensions.rb:277: > warning: method redefined; discarding old send_request_with_body_stream > /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/base.rb:213: > warning: private attribute? That's not an exception being raised, those are all just warnings because your script is being run with warnings turned on The -w in #!/usr/local/bin/ruby -w marcel -- Marcel Molina Jr. From jonas at fkw.se Mon Nov 26 07:59:19 2007 From: jonas at fkw.se (Jonas Arnklint) Date: Mon, 26 Nov 2007 13:59:19 +0100 Subject: [s3-dev] Bucket location: EU Message-ID: <1196081959.8033.6.camel@fkw1.linux> Hi! I get errors trying to access a bucket which is located in Europe. What am I doing wrong? Error: /var/lib/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/error.rb:38:in `raise': The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (AWS::S3::PermanentRedirect) I've managed to connect and playing with US buckets, but when I'm trying to access the EU bucket I get that error. I've found some info about it at http://developer.amazonwebservices.com/connect/thread.jspa?threadID=17989&start=0&tstart=15 Am I able to correct that error somehow? I'm using attachment_fu in one of my projects. I get the same error there, but I realize that attachment_fu has nothing to do with the error. Please help!