Skip to content

Instantly share code, notes, and snippets.

@epoch
Created August 10, 2010 23:20
Show Gist options
  • Save epoch/518208 to your computer and use it in GitHub Desktop.
Save epoch/518208 to your computer and use it in GitHub Desktop.
ruby-1.9.1-p378 > s3 = RightAws::S3.new('44CF9590006BF252F707','OtxrzxIsfpFjA7SwPzILwy8Bw21TLhquhboDYROV', :server => 'localhost', :protocol => 'http', :port => 3002)
I, [2010-08-11T09:17:55.795019 #3084] INFO -- : New RightAws::S3Interface using shared connections mode
=> #<RightAws::S3:0x0000000381aeb8 @interface=#<RightAws::S3Interface:0x0000000381ae80 @params={:server=>"localhost", :protocol=>"http", :port=>3002, :service=>"/", :connections=>:shared, :max_connections=>10, :connection_lifetime=>1200, :api_version=>nil}, @aws_access_key_id="44CF9590006BF252F707", @aws_secret_access_key="OtxrzxIsfpFjA7SwPzILwy8Bw21TLhquhboDYROV", @logger=#<Logger:0x0000000381ac18 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x0000000381abe0 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x0000000381ab70 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x0000000381ab38 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x0000000381aac8>>>>, @error_handler=nil, @cache={}, @signature_version="2">>
ruby-1.9.1-p378 > pic = s3.bucket('test')I, [2010-08-11T09:18:07.850798 #3084] INFO -- : Opening new HTTP connection to localhost:3002
D, [2010-08-11T09:18:07.854406 #3084] DEBUG -- : Rightscale::HttpConnection : server localhost closed connection
W, [2010-08-11T09:18:07.854651 #3084] WARN -- : Rightscale::HttpConnection : raising RightAws::AwsError due to permanent EOF being received from localhost, error age: 839
RightAws::AwsError: Permanent EOF is being received from localhost.
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_http_connection-1.2.4/lib/right_http_connection.rb:386:in `rescue in block in request'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_http_connection-1.2.4/lib/right_http_connection.rb:344:in `block in request'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_http_connection-1.2.4/lib/right_http_connection.rb:330:in `loop'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_http_connection-1.2.4/lib/right_http_connection.rb:330:in `request'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/awsbase/right_awsbase.rb:440:in `block in request_info_impl'
from /home/daniel/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/benchmark.rb:294:in `measure'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/awsbase/benchmark_fix.rb:30:in `add!'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/awsbase/right_awsbase.rb:440:in `request_info_impl'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/s3/right_s3_interface.rb:184:in `request_info'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/s3/right_s3_interface.rb:197:in `list_all_my_buckets'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/s3/right_s3.rb:75:in `buckets'
from /home/daniel/.rvm/gems/ruby-1.9.1-p378/gems/right_aws-2.0.0/lib/s3/right_s3.rb:103:in `bucket'
from (irb):23
from /home/daniel/.rvm/rubies/ruby-1.9.1-p378/bin/irb:17:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment