Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

timeout problems

39 views
Skip to first unread message

Louise Rains

unread,
Mar 12, 2013, 1:46:23 PM3/12/13
to ruby...@googlegroups.com
We have started to see what we assume to be timeouts when trying to upload to S3, based on the fact that the uploads fail sporadically.   The errors that I'm seeing look like this:

/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- net/https (LoadError)
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /var/lib/gems/1.8/gems/cmeiklejohn-aws-2.3.19/lib/aws.rb:3
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require' from /web/bonline/packages/acs-content-repository/ruby/s3_helper.rb:2 from /web/bonline/packages/acs-content-repository/ruby/upload_file.rb:2:in `require' from /web/bonline/packages/acs-content-repository/ruby/upload_file.rb:2 while executing "exec ruby [get_script_location]upload_file.rb [get_bucket_name] $upload_file_path $s3_file_name $download_name $mime_type" (procedure "s3asset::upload_file" line 2) invoked from within "s3asset::upload_file $client_filename $content_file $download_name $mime_type" (procedure "cr_create_content_file" line 15) invoked from within "cr_create_content_file $file_id $revision_id $local_filename" (procedure "bboard_attach_file" line 24) invoked from within "bboard_attach_file -message_id $message_id -file_id $file_id -short_filename $base_filename -local_filename $full_filename -mime_type $guessed_file_t..." invoked from within "if { $file_ext == "jpeg" || $file_ext == "jpg" || $file_ext == "gif" } { set image_size [bboard_image_size $file_ext $upload_file] ..."
The errors happen when our users are trying to email attachments to clients.  The attachments are supposed to be uploaded to S3, but fail to be uploaded at various times. Based on the fact that uploads succeed sometimes, the error about a missing net/https file seems to be bogus.
The gem cmeiklejohn-aws-2.3.19 was forked from appoxy/aws to resolve issues with using it outside of Rails.  Our openACS application calls a Ruby file (upload_file.rb) from inside openACS/Tcl code, as can be seen from the above stack trace.  
Can anyone provide any assistance as to why we are getting this error and what can be done about it?
Thanks!
Louise

Travis Reeder

unread,
Mar 18, 2013, 7:48:21 PM3/18/13
to ruby-aws
What version of ruby are you running?


--
You received this message because you are subscribed to the Google Groups "ruby-aws" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-aws+u...@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-aws?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Trevor Bramble

unread,
May 5, 2013, 8:37:41 PM5/5/13
to ruby...@googlegroups.com
Hi, Travis.

I'm seeing timeouts as well, with both of these rubies:

 * ruby-1.9.3-p392 [ x86_64 ]
=> ruby-2.0.0-p0 [ x86_64 ]

Here's the error string:

/home/trevor/.rvm/gems/ruby-2.0.0-p0@archive/gems/aws-2.8.0/lib/awsbase/awsbase.rb:575:in `request_info_impl': RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. (Aws::AwsError)

This is within an archival script that I use to transfer digital media I've purchased to S3, and it seems to fail intermittently without regard to file size (they range from a few KB to several GB) so that doesn't seem related. Neither does network, CPU, or memory contention. Should have plenty of resources all around.
Reply all
Reply to author
Forward
0 new messages