You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gem install bundler (or any gem) fails with Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.dev" port 443
#834
Closed
akshah123 opened this issue
Jan 6, 2015
· 4 comments
It looks like with latest ruby version 2.2.0, I am unable to install any gems as they all fail with:
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.dev" port 443 (https://your-dns-needs-immediate-attention.dev/quick/Marshal.4.8/bundler-1.7.11.gemspec.rz)
I am able to install all the gems with ruby version 2.1.1 just fine on the same machine/network. I am using rvm version 1.26.8.
I have looked at this ticket rubygems/rubygems#1001 but it doesnt seem to apply since ISP is not comcast.
I also tried debugging this further with:
gem install bundler --debug -V
I noticed that I get following additional error:
Exception `Resolv::DNS::Config::NXDomain' at /home/vagrant/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/resolv.rb:546 - _rubygems._tcp.api.rubygems.org
Exception `Errno::ECONNREFUSED' at /home/vagrant/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http.rb:879 - Connection refused - connect(2) for "your-dns-needs-immediate-attention.dev" port 443
Exception `Gem::RemoteFetcher::FetchError' at /home/vagrant/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/remote_fetcher.rb:286 - Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.dev" port 443 (https://your-dns-needs-immediate-attention.dev/quick/Marshal.4.8/bundler-1.7.11.gemspec.rz)
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
I noticed that it is checking SRV record for _rubygems._tcp.api.rubygems.org which doesn't exist.
Shouldn't it be instead checking for _rubygems._tcp.rubygems.org which does exist? Notice the missing api.
I verified this with directly running the ruby command:
However, I used http://mxtoolbox.com/SRVLookup.aspx to see if it indeed the DNS config here and even that tool is unable to find the SRV lookup with api in it _rubygems._tcp.api.rubygems.org.
It works just fine for _rubygems._tcp.rubygems.org
It looks like with latest ruby version 2.2.0, I am unable to install any gems as they all fail with:
I am able to install all the gems with ruby version 2.1.1 just fine on the same machine/network. I am using rvm version 1.26.8.
I have looked at this ticket rubygems/rubygems#1001 but it doesnt seem to apply since ISP is not comcast.
I also tried debugging this further with:
I noticed that I get following additional error:
I noticed that it is checking SRV record for
_rubygems._tcp.api.rubygems.org
which doesn't exist.Shouldn't it be instead checking for
_rubygems._tcp.rubygems.org
which does exist? Notice the missing api.I verified this with directly running the ruby command:
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: