Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Random Errno::ECONNRESET issues #6

Open
rorra opened this issue Mar 21, 2013 · 0 comments
Open

Random Errno::ECONNRESET issues #6

rorra opened this issue Mar 21, 2013 · 0 comments

Comments

@rorra
Copy link

rorra commented Mar 21, 2013

At random points, I get a ECONNRESET issue, and truly I don't know how to save the error and kept trying until it saves the file, this is the exception:

/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/protocol.rb:199:in write': Connection reset by peer (Errno::ECONNRESET) from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/protocol.rb:199:inwrite0'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/protocol.rb:173:in block in write' from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/protocol.rb:190:inwriting'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/protocol.rb:172:in write' from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1937:insend_request_with_body'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1919:in exec' from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1317:inblock in transport_request'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1316:in catch' from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1316:intransport_request'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb:1293:in request' from /u/apps/s3_rabbit/shared/bundle/ruby/1.9.1/gems/uber-s3-0.2.4/lib/uber-s3/connection/net_http.rb:25:inrequest'
from /u/apps/s3_rabbit/shared/bundle/ruby/1.9.1/gems/uber-s3-0.2.4/lib/uber-s3/connection.rb:52:in block (2 levels) in <class:Adapter>' from /u/apps/s3_rabbit/shared/bundle/ruby/1.9.1/gems/uber-s3-0.2.4/lib/uber-s3/object.rb:94:insave'
from s3_rabbit.rb:30:in `block (3 levels) in

'

Demo code: https://gist.github.com/rorra/5216306

Also, for some reason, I cannot write files with spaces on its name, but this is acceptable by Amazon S3 (to reproduce, just use the gem and try to write a file with a space)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant