tag:help.rubygems.org,2010-01-19:/discussions/problems/37907-unable-to-download-data-from-httpsrubygemsorg-timed-outRubyGems.org: Discussion 2020-05-14T17:13:13Ztag:help.rubygems.org,2010-01-19:Comment/482139692020-04-02T16:42:48Z2020-04-02T16:42:48ZUnable to download data from https://rubygems.org/ - timed out<div><p>Can you post the output of <code>gem install rails --verbose</code>?</p></div>David Radcliffetag:help.rubygems.org,2010-01-19:Comment/482139692020-04-02T21:02:47Z2020-04-02T21:02:48ZUnable to download data from https://rubygems.org/ - timed out<div><p>I am having the same issue and here is what I get when trying to install Rails.</p>
<pre>
<code>ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - timed out (https://rubygems.org/specs.4.8.gz)</code>
</pre></div>Matt Thompsontag:help.rubygems.org,2010-01-19:Comment/482139692020-04-19T14:30:11Z2020-04-19T14:30:11ZUnable to download data from https://rubygems.org/ - timed out<div><p>Please make sure your host doesn't have issue with IPv6 connectivity. You can use this to test you IPv6 configuration: <a href="https://test-ipv6.com/">https://test-ipv6.com/</a></p>
<p>Also, if you can use curl successfully <code>curl -vO https://api.rubygems.org/specs.4.8.gz</code> but <code>wget https://api.rubygems.org/specs.4.8.gz</code> hangs, it is more likely than not that your host has an IPv6 address but there is some issue with your IPv6 connectivity.</p>
<p>See: <a href="https://bugs.ruby-lang.org/issues/15628">https://bugs.ruby-lang.org/issues/15628</a></p></div>sonalkr132tag:help.rubygems.org,2010-01-19:Comment/482139692020-05-03T03:22:35Z2020-05-03T03:22:36ZUnable to download data from https://rubygems.org/ - timed out<div><p>Hi.<br>
I have the same issue when using Gitlab Ci environment. I dont have ipv6 connection.</p>
<p>Gem::RemoteFetcher::UnknownHostError timed out (<a href="https://rubygems.org/gems/thread_safe-0.3.6.gem">https://rubygems.org/gems/thread_safe-0.3.6.gem</a>)<br>
Gem::RemoteFetcher::UnknownHostError timed out (<a href="https://rubygems.org/gems/erubis-2.7.0.gem">https://rubygems.org/gems/erubis-2.7.0.gem</a>)<br>
Gem::RemoteFetcher::UnknownHostError timed out (<a href="https://rubygems.org/gems/arel-6.0.4.gem">https://rubygems.org/gems/arel-6.0.4.gem</a>)</p>
<p>Any ideas ?</p></div>Vladimirtag:help.rubygems.org,2010-01-19:Comment/482139692020-05-14T17:13:11Z2020-05-14T17:13:11ZUnable to download data from https://rubygems.org/ - timed out<div><p>Hi Vladimir,</p>
<blockquote>
<p>Gem::RemoteFetcher::UnknownHostError timed out</p>
</blockquote>
<p>we mostly see this issue on hosts with IPv6 addresses, please double-check this. It could also be possible the internet connection is broken for you environment. are you able to access sites other than rubygems.org? What is the output shown by curl -vv and wget commands to the same URLs? Also, are you able <code>ping rubygems.org</code> and <code>ping 8.8.8.8</code>?</p>
<p>Please open a new ticket with your findings.</p></div>sonalkr132