K
kristopher.rasmussen
I am using aws::s3 to put files to amazon via ssl. On our production
server we are getting an error after uploading a number of files.
After the error occurs all subsequent requests to s3 fail with the
same error until the mongrel processes are restarted.
We recently had an issue with our server clock not being updated for
the new DST, not sure if that is related.
Has anyone seen this before?
Here is most of the stack trace:
OpenSSL::SSL::SSLError (SSL_write:: bad write retry):
/usr/local/lib/ruby/1.8/openssl/buffering.rb:178:in `syswrite'
/usr/local/lib/ruby/1.8/openssl/buffering.rb:178:in `do_write'
/usr/local/lib/ruby/1.8/openssl/buffering.rb:192:in `write'
/usr/local/lib/ruby/1.8/net/protocol.rb:175:in `write0'
/usr/local/lib/ruby/1.8/net/protocol.rb:151:in `write'
/usr/local/lib/ruby/1.8/net/protocol.rb:166:in `writing'
/usr/local/lib/ruby/1.8/net/protocol.rb:150:in `write'
/usr/local/lib/ruby/1.8/net/http.rb:1571:in `write_header'
/usr/local/lib/ruby/1.8/net/http.rb:1536:in
`send_request_with_body'
/usr/local/lib/ruby/1.8/net/http.rb:1522:in `exec'
/usr/local/lib/ruby/1.8/net/http.rb:1045:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:41:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:46:in `call'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:46:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:
69:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:
84:in `put'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
object.rb:239:in `store'
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/
backends/s3_backend.rb:294:in `save_to_storage'
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:
389:in `after_process_attachment'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:333:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:333:in `callback'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:330:in `each'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:330:in `callback'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:243:in `create_or_update'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/base.rb:1545:in `save_without_validation'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/validations.rb:752:in `save_without_transactions'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:129:in `save'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract/database_statements.rb:
59:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:95:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:121:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:129:in `save'
server we are getting an error after uploading a number of files.
After the error occurs all subsequent requests to s3 fail with the
same error until the mongrel processes are restarted.
We recently had an issue with our server clock not being updated for
the new DST, not sure if that is related.
Has anyone seen this before?
Here is most of the stack trace:
OpenSSL::SSL::SSLError (SSL_write:: bad write retry):
/usr/local/lib/ruby/1.8/openssl/buffering.rb:178:in `syswrite'
/usr/local/lib/ruby/1.8/openssl/buffering.rb:178:in `do_write'
/usr/local/lib/ruby/1.8/openssl/buffering.rb:192:in `write'
/usr/local/lib/ruby/1.8/net/protocol.rb:175:in `write0'
/usr/local/lib/ruby/1.8/net/protocol.rb:151:in `write'
/usr/local/lib/ruby/1.8/net/protocol.rb:166:in `writing'
/usr/local/lib/ruby/1.8/net/protocol.rb:150:in `write'
/usr/local/lib/ruby/1.8/net/http.rb:1571:in `write_header'
/usr/local/lib/ruby/1.8/net/http.rb:1536:in
`send_request_with_body'
/usr/local/lib/ruby/1.8/net/http.rb:1522:in `exec'
/usr/local/lib/ruby/1.8/net/http.rb:1045:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:41:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:46:in `call'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
connection.rb:46:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:
69:in `request'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/base.rb:
84:in `put'
/usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.3.0/lib/aws/s3/
object.rb:239:in `store'
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/
backends/s3_backend.rb:294:in `save_to_storage'
/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:
389:in `after_process_attachment'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:333:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:333:in `callback'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:330:in `each'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:330:in `callback'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/callbacks.rb:243:in `create_or_update'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/base.rb:1545:in `save_without_validation'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/validations.rb:752:in `save_without_transactions'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:129:in `save'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/connection_adapters/abstract/database_statements.rb:
59:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:95:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:121:in `transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/
active_record/transactions.rb:129:in `save'