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