Rubygems: Rubygems seems to be broken over IPv6

Created on 4 Nov 2019  路  5Comments  路  Source: rubygems/rubygems

My current problem is: Rubygems does not work over IPv6 AND there is an AAAA record for it.

nslookup rubygems.org
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   rubygems.org
Address: 151.101.0.70
Name:   rubygems.org
Address: 151.101.64.70
Name:   rubygems.org
Address: 151.101.128.70
Name:   rubygems.org
Address: 151.101.192.70
Name:   rubygems.org
Address: 2a04:4e42::70

This results in:

gem update
ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    timed out (https://rubygems.org/specs.4.8.gz)

This issue is related to:

  • [X] Network problems
  • [ ] Installing a library
  • [ ] Publishing a library
  • [ ] The command line gem
  • [ ] Other

Here are my current environment details:

$ gem env version
3.0.3

Possible solutions:

  • Remove AAAA Record
  • Have Rubygems.org available at the address specified by the AAAA record.

This could be a problem with my IPv6 setup but I doubt it since I can access other services over IPv6 without any issue.
I can access Rubygems.org over IPv4.

I will abide by the code of conduct.

feedback required

Most helpful comment

@duckinator, you meant another Marc-Andr茅: @marctrem
Cheers

All 5 comments

@marcandre can you run this command and let me what the output is, if there is any? If your IPv6 setup is configured correctly, the entire command should return _nothing_.

curl -4 rubygems.org; curl -6 rubygems.org; curl -4 duckinator.net; curl -6 duckinator.net

(The point of this is, basically, to try to determine if IPv6 in general is the problem, RubyGems.org in general is the problem, or RubyGems.org over IPv6 specifically is the problem.)


I've confirmed that command works on my Digital Ocean VPS, which has IPv6:

~$ curl -4 rubygems.org; curl -6 rubygems.org; curl -4 duckinator.net; curl -6 duckinator.net
~$

But raises two errors locally, where I don't:

~$ curl -4 rubygems.org; curl -6 rubygems.org; curl -4 duckinator.net; curl -6 duckinator.net
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
~$

@duckinator, you meant another Marc-Andr茅: @marctrem
Cheers

Ping @marctrem

haha, sorry about that @marcandre. :sweat_smile:

Sorry for the delay!

Please don't mind me. I tried accessing the site from my gateway over ipv6 and it works. Sorry for the disturbance! There is probably something wrong with my routing table.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fryguy picture Fryguy  路  3Comments

gavingmiller picture gavingmiller  路  3Comments

khiav223577 picture khiav223577  路  3Comments

djberg96 picture djberg96  路  4Comments

MatheusRich picture MatheusRich  路  4Comments