tag:help.rubygems.org,2010-01-19:/discussions/problems/26205-cannot-install-gems-on-ubuntu-precise-on-travis-ciRubyGems.org: Discussion 2017-05-04T20:50:29Ztag:help.rubygems.org,2010-01-19:Comment/424783272017-05-02T20:00:37Z2017-05-02T20:00:38ZCannot install gems on Ubuntu Precise on Travis CI<div><p>Hi!</p>
<p>I'm a Customer Support Engineer @ Travis CI.</p>
<p>Some customers are reporting that they suddenly cannot install gems when running their builds on our Precise containers.</p>
<p>Here's a sample of the error they get:</p>
<p>$ gem install bundler ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:<br>
Unable to download data from <a href="https://rubygems.org/">https://rubygems.org/</a> - SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert protocol version (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>)</p>
<p>Is this something that has changed on your side? Do you have any insights for us about what could be going on?</p>
<p>Thanks a lot for your help!</p></div>Dominic Jodointag:help.rubygems.org,2010-01-19:Comment/424783272017-05-02T20:05:56Z2017-05-02T20:05:56ZCannot install gems on Ubuntu Precise on Travis CI<div><p>Hi Dominic,</p>
<p>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 <a href="http://slack.bundler.io">http://slack.bundler.io</a>.</p></div>indirecttag:help.rubygems.org,2010-01-19:Comment/424783272017-05-02T20:23:18Z2017-05-02T20:23:18ZCannot install gems on Ubuntu Precise on Travis CI<div><p>Thanks for the quick reply!</p>
<p>Hiro Hasari, a member of our Engineering Team, will join your Slack to discuss the issue at hand.</p></div>Dominic Jodointag:help.rubygems.org,2010-01-19:Comment/424783272017-05-04T20:13:53Z2017-05-04T20:13:58ZCannot install gems on Ubuntu Precise on Travis CI<div><p>We're not able to connect today, as well.<br></p>
<pre>
<code># 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<br><br>
<br>*** REMOTE GEMS ***<br><br>
<br>Exception <code>Errno::EEXIST&#39; at /opt/chef/embedded/lib/ruby/2.3.0/fileutils.rb:253 - File exists @ dir_s_mkdir - /root/.gem/specs/api.rubygems.org%443
Exception</code>Errno::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 <code>Errno::ECONNRESET&#39; at /opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:933 - Connection reset by peer - SSL_connect
Exception</code>Errno::ECONNRESET' at /opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:950 - Connection reset by peer - SSL_connect
Exception <code>Gem::RemoteFetcher::FetchError&#39; 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)
Exception</code>Gem::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)</code>
</pre>
<pre>
<code>* 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)
---</code>
</pre>
<h2><a name="tls-1-2-fails-too-" class="anchor" href="#tls-1-2-fails-too-"></a>tls 1.2 fails, too:</h2>
<pre>
<code># 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)
---</code>
</pre></div>Dang Nguyentag:help.rubygems.org,2010-01-19:Comment/424783272017-05-04T20:50:28Z2017-05-04T20:50:28ZCannot install gems on Ubuntu Precise on Travis CI<div><p>Dang, this is a completely unrelated problem. Feel free to open a ticket at <a href="https://github.com/rubygems/rubygems.org/issues">https://github.com/rubygems/rubygems.org/issues</a> <a href="https://github.com/rubygems/rubygems.org/issues">https://github.com/rubygems/rubygems.org/issues</a> 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 <a href="http://rubygems.org/">http://rubygems.org/</a> servers.</p></div>indirect