Cannot install gems on Ubuntu Precise on Travis CI

Dominic Jodoin's Avatar

Dominic Jodoin

02 May, 2017 08:00 PM

Hi!

I'm a Customer Support Engineer @ Travis CI.

Some customers are reporting that they suddenly cannot install gems when running their builds on our Precise containers.

Here's a sample of the error they get:

$ gem install bundler
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert protocol version (https://api.rubygems.org/specs.4.8.gz)

Is this something that has changed on your side? Do you have any insights for us about what could be going on?

Thanks a lot for your help!

  1. Support Staff 1 Posted by indirect on 02 May, 2017 08:05 PM

    indirect's Avatar

    Hi Dominic,

    If this problem is just from the last few hours, it was probably related to the major US/EU internet outage that affected our upstream provider Fastly. If this is a longer-standing problem, I recommend joining the Bundler/RubyGems Slack so that we can chat about the problem and try to figure it out. You can invite yourself to the slack at http://slack.bundler.io.

  2. indirect closed this discussion on 02 May, 2017 08:05 PM.

  3. Dominic Jodoin re-opened this discussion on 02 May, 2017 08:23 PM

  4. 2 Posted by Dominic Jodoin on 02 May, 2017 08:23 PM

    Dominic Jodoin's Avatar

    Thanks for the quick reply!

    Hiro Hasari, a member of our Engineering Team, will join your Slack to discuss the issue at hand.

  5. 3 Posted by Dang Nguyen on 04 May, 2017 08:13 PM

    Dang Nguyen's Avatar

    We're not able to connect today, as well.

    # gem search netaddr --debug
    NOTE:  Debugging mode prints all exceptions even when rescued
    Exception `LoadError' at /opt/chef/embedded/lib/ruby/2.3.0/resolv.rb:171 - LoadError


    *** REMOTE GEMS ***


    Exception Errno::EEXIST' at /opt/chef/embedded/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /root/.gem/specs/api.rubygems.org%443 ExceptionErrno::ENOENT' at /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems/remote_fetcher.rb:322 - No such file or directory @ rb_file_s_stat - /root/.gem/specs/api.rubygems.org%443/latest_specs.4.8 Exception Errno::ECONNRESET' at /opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:933 - Connection reset by peer - SSL_connect ExceptionErrno::ECONNRESET' at /opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:950 - Connection reset by peer - SSL_connect Exception Gem::RemoteFetcher::FetchError' at /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems/remote_fetcher.rb:308 - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/latest_specs.4.8.gz) ExceptionGem::RemoteFetcher::FetchError' at /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems/spec_fetcher.rb:265 - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org/latest_specs.4.8.gz)
    * About to connect() to rubygems.org port 443 (#0)
    *   Trying 151.101.130.2... connected
    * Connected to rubygems.org (151.101.130.2) port 443 (#0)
    * Initializing NSS with certpath: sql:/etc/pki/nssdb
    * warning: ignoring value of ssl.verifyhost
    * NSS error -5961
    * Closing connection #0
    * SSL connect error
    curl: (35) SSL connect error
    CONNECTED(00000003)
    write:errno=104
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    ---
    SSL handshake has read 0 bytes and written 306 bytes
    ---
    New, (NONE), Cipher is (NONE)
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    SSL-Session:
        Protocol  : TLSv1.2
        Cipher    : 0000
        Session-ID: 
        Session-ID-ctx: 
        Master-Key: 
        Key-Arg   : None
        PSK identity: None
        PSK identity hint: None
        SRP username: None
        Start Time: 1493874228
        Timeout   : 300 (sec)
        Verify return code: 0 (ok)
    ---
    

    tls 1.2 fails, too:

    # openssl s_client -connect api.rubygems.org:443 -tls1_2 -servername api.rubygems.org
    CONNECTED(00000003)
    write:errno=104
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    ---
    SSL handshake has read 0 bytes and written 0 bytes
    ---
    New, (NONE), Cipher is (NONE)
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    SSL-Session:
        Protocol  : TLSv1.2
        Cipher    : 0000
        Session-ID: 
        Session-ID-ctx: 
        Master-Key: 
        Key-Arg   : None
        PSK identity: None
        PSK identity hint: None
        SRP username: None
        Start Time: 1493874526
        Timeout   : 7200 (sec)
        Verify return code: 0 (ok)
    ---
    
  6. Support Staff 4 Posted by indirect on 04 May, 2017 08:50 PM

    indirect's Avatar

    Dang, this is a completely unrelated problem. Feel free to open a ticket at https://github.com/rubygems/rubygems.org/issues <https://github.com/rubygems/rubygems.org/issues> if you’d like. However, since connections are working correctly from many other places on the internet, it sounds likely your problem is with your local network rather than with the RubyGems.org <http://rubygems.org/> servers.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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