ERROR: too many connection resets

Nuno's Avatar

Nuno

27 Feb, 2019 10:42 PM

Getting an error when pushing new gem version. No idea what might be happening...

$ gem push rubycritic-4.0.0.gem -V --debug
NOTE: Debugging mode prints all exceptions even when rescued
Exception `LoadError' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/resolv.rb:170 - LoadError
Exception `OptionParser::InvalidOption' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/optparse.rb:1739 - invalid option: no-document
Exception `OptionParser::InvalidOption' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/optparse.rb:1548 - invalid option: --no-document
Exception `Errno::EEXIST' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/fileutils.rb:232 - File exists @ dir_s_mkdir - /home/nuno/.gem/specs/rubygems.org%443
GET https://rubygems.org/latest_specs.4.8.gz
304 Not Modified
Pushing gem to https://rubygems.org...
POST https://rubygems.org/api/v1/gems
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - Connection reset by peer
Exception `Errno::EPIPE' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - Broken pipe
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:1520 - Connection reset by peer
Exception `IOError' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - closed stream
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:1528 - Connection reset by peer
connection reset after 1 requests, retrying
Exception `IOError' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - closed stream
POST https://rubygems.org/api/v1/gems
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - Connection reset by peer
Exception `Errno::EPIPE' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - Broken pipe
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:1520 - Connection reset by peer
Exception `IOError' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/openssl/buffering.rb:325 - closed stream
Exception `Errno::ECONNRESET' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/net/http.rb:1528 - Connection reset by peer
connection reset after 1 requests, retrying
Exception `Gem::RemoteFetcher::FetchError' at /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/request.rb:249 - too many connection resets (https://rubygems.org/api/v1/gems)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    too many connection resets (https://rubygems.org/api/v1/gems)
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/request.rb:249:in `rescue in perform_request'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/request.rb:193:in `perform_request'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/request.rb:157:in `fetch'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/remote_fetcher.rb:339:in `request'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/gemcutter_utilities.rb:96:in `rubygems_api_request'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/commands/push_command.rb:129:in `send_push_request'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/commands/push_command.rb:117:in `send_gem'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/commands/push_command.rb:73:in `execute'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/command.rb:321:in `invoke_with_build_args'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/command_manager.rb:176:in `process_args'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/command_manager.rb:146:in `run'
/usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/gem_runner.rb:59:in `run'
/usr/share/rvm/rubies/ruby-2.5.3/bin/gem:21:in `<main>'

  1. 1 Posted by Nuno on 28 Feb, 2019 08:51 PM

    Nuno's Avatar

    Fixed. guess the router or ISP I was connected to is blocking something.
    Connected to 4G and it went through.

  2. sonalkr132 closed this discussion on 11 Mar, 2019 04:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac