I have a server with Rackspace that I use for a few Ruby sites. When I try bundle install
on a new site I get
Retrying download gem from http://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError timed out (http://rubygems.org/gems/rake-12.3.1.gem)
Or trying gem update --system
I get
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
timed out (http://api.rubygems.org/specs.4.8.gz)
What I have tried:
- Using curl to download the gem URL in the first error (successful)
- Change gem source from https://rubygems.org to http://rubygems.org
- Change the name servers on the slice to use Google's
- Downloading and updating
gem
from source (on 2.7.6) - Run
apt-get update
- Adding
AddTrustExternalCARoot-2048.pem
What I haven't tried:
- Animal sacrifice
- Lucky rabbit foot
- Deleting all files and reinstalling the image
I was finally (just before submitting this) able to get bundle install
to work by removing rubygems.org as a source and adding https://gems.ruby-china.org/. Why would gem be unable to access rubygems.org?
wget -6 www.google.com
, you should be able to access rubygems.org over IPv6 as well. – Blamed