tag:help.rubygems.org,2010-01-19:/discussions/problems/31156-problems-connecting-to-rubygemsRubyGems.org: Discussion 2018-07-22T17:29:35Ztag:help.rubygems.org,2010-01-19:Comment/451258422018-04-18T12:58:37Z2018-04-18T12:58:38ZProblems connecting to Rubygems<div><p>Hi Support,</p>
<p>We use ruby gems on a regular basis to assist us in building customer applications, however over the last few days we are experiencing problems building applications with error messages such as those. Reading through your documentation, we believe we may in fact be black listed. If this is the case, we do apologise for over utilising your services, and would like to talk to you about re-enabling access for ourselves so that we can once again re-use the APIs. Due to the number of issues we have seen, we have reduced the number of builds we are doing per day to reduce the number of calls to you but this doesn't appear to have resolved the issue. Can you please review the errors below and let us know what more we will need to do so that we may once again use the APIs.</p>
<p>Thanks.</p>
<hr>
<p>---- Begin output of /opt/chef/embedded/bin/gem install "chef-handler-updated-resources" -q --no-rdoc --no-ri ---- STDOUT:<br>
STDERR: ERROR: Could not find a valid gem 'chef-handler-updated-resources' (>= 0), here is why:<br>
Unable to download data from <a href="https://rubygems.org/">https://rubygems.org/</a> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>) ERROR: Possible alternatives: chef-handler-updated-resources</p></div>Bob Ruskintag:help.rubygems.org,2010-01-19:Comment/451258422018-04-20T14:50:11Z2018-04-20T14:50:13ZProblems connecting to Rubygems<div><p>I'm seeing a similar error as well:</p>
<p>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> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<a href="https://api.rubygems.org/latest_specs.4.8.gz">https://api.rubygems.org/latest_specs.4.8.gz</a>)</p>
<p>This appears to be happening on AWS (eu-west-1) but not from our corporate net connection</p></div>Jack Atag:help.rubygems.org,2010-01-19:Comment/451258422018-04-25T16:26:23Z2018-04-25T16:26:24ZProblems connecting to Rubygems<div><p>Same problem here!</p>
<p>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> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>) ERROR: Possible alternatives: bundler</p>
<p>Did you get a solution?</p></div>Alfredotag:help.rubygems.org,2010-01-19:Comment/451258422018-04-26T09:52:18Z2018-04-26T09:52:19ZProblems connecting to Rubygems<div><p>Same here. Some requests pass, but majority returns "Connection reset by peer"</p></div>Rafaltag:help.rubygems.org,2010-01-19:Comment/451258422018-04-26T14:52:38Z2018-04-26T14:52:39ZProblems connecting to Rubygems<div><p>I have also seen this problem happen within one particular VPC in us-east-1, all of the outgoing traffic from that VPC goes through a NAT server. Sounds like we may have also gotten ourselves blacklisted somehow. Is there a resolution process or this?</p></div>Kevin Olbrichtag:help.rubygems.org,2010-01-19:Comment/451258422018-04-26T23:48:41Z2018-04-26T23:48:42ZProblems connecting to Rubygems<div><p>Had the same problem. api.rubygems.org change their certificate on Apr 25. I also had TLS problems for other sites but only on servers behind a NAT. I also updated the servers certificates list as well, but this did not fix the NAT issue.</p>
<p>I upgraded and rebuilt a new NAT on amazon-nat-2017.09 and this has fixed the connectivity issues, we were previously at 2016.03</p></div>Ferdytag:help.rubygems.org,2010-01-19:Comment/451258422018-04-27T00:07:28Z2018-04-27T00:07:28ZProblems connecting to Rubygems<div><p>Ferdy, were you able to inspect the SSL certificate for api.rubygems.org? I tried grabbing it directly with <code>openssl s_client -connect api.rubygems.org:443</code> and did not get a response (which is what led me to believe we were blacklisted).</p></div>olbrichtag:help.rubygems.org,2010-01-19:Comment/451258422018-04-27T11:54:17Z2018-04-27T11:54:19ZProblems connecting to Rubygems<div><p>I can confirm this issue existing for instances behind NAT instance. I've switched currently to NAT Gateway service and it works again. The ip's are not blacklisted it's more a CDN problem rubygems.org rely on.</p></div>Rongotag:help.rubygems.org,2010-01-19:Comment/451258422018-04-27T11:59:24Z2018-04-27T11:59:25ZProblems connecting to Rubygems<div><p>Very strange. I have instances in a different vpc but same nat setup that are unaffected.</p>
<p>Kevin Olbrich, Ph.D.<br>
Lead CDS Developer<br>
Clinical Decision Support<br>
McKesson Specialty Health<br>
<a href="mailto:Kevin.Olbrich@McKesson.com">Kevin.Olbrich@McKesson.com</a><br>
919-618-3331</p>
<hr></div>Olbrich, Kevintag:help.rubygems.org,2010-01-19:Comment/451258422018-04-30T04:21:38Z2018-04-30T04:21:39ZProblems connecting to Rubygems<div><p>I'm having a similar issue from all of my Rackspace servers (timeout to RubyGems), but RubyGems is working fine locally and on Digital Ocean servers.</p></div>Donald Webstertag:help.rubygems.org,2010-01-19:Comment/451258422018-04-30T10:23:07Z2018-04-30T10:23:08ZProblems connecting to Rubygems<div><p>I replaced my NAT server with a NAT gateway over the weekend (which was already planned, coincidentally), and service has been restored.</p></div>olbrichtag:help.rubygems.org,2010-01-19:Comment/451258422018-05-04T03:09:07Z2018-05-04T03:09:09ZProblems connecting to Rubygems<div><p>I had the same issue on AWS - could not establish a SSL connection with api.rubygems.org from a server behind a NAT. Replacing the old NAT instance with amzn-ami-vpc-nat-hvm-2017.09.1.20180108-x86_64-ebs fixed it.</p></div>teeparhamtag:help.rubygems.org,2010-01-19:Comment/451258422018-05-04T16:51:50Z2018-05-04T16:51:50ZProblems connecting to Rubygems<div><p>Hey all, thanks for writing in.. and apologies on the late reply, its been a hectic couple of weeks!</p>
<ul>
<li>Is this still an active issue for anyone?</li>
<li>Has anyone had this issue and NOT been behind a NAT?</li>
</ul></div>kerrizortag:help.rubygems.org,2010-01-19:Comment/451258422018-05-31T20:46:01Z2018-05-31T20:46:02ZProblems connecting to Rubygems<div><p>Same issue here, on a fresh Ubuntu 18.04 install on my laptop</p>
<p>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> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a>)</p>
<p>It happens with other sites like python pip.</p></div>Brunotag:help.rubygems.org,2010-01-19:Comment/451258422018-07-22T17:29:34Z2018-07-22T17:29:34ZProblems connecting to Rubygems<div><p>Bruno, if it is happening with other sites, I suspect it isn't limited to RubyGems.org, but something specific to your system.</p></div>kerrizor