This help site has been deprecated. Please send your requests to support@rubygems.org
Rubygems access via IPV6
Hello,
I am posting in followup to this thread closed in July 2018 regarding access to install/update rubygems over IPV6:
https://help.rubygems.org/discussions/problems/31074-timeout-error
Is there a place to monitor progress on this? I had not encountered this until my desk was moved to another location where the local dns resolvers are configured (properly) to prefer IPV6 lookups. I have had to reconfigure my workstation so that glibc's getaddrinfo() prefers IPV4 lookups first in order to install/update gems.
It would seem that Rubygems.org is publishing AAAA dns records but the webserver is not answering on this address:
$ ping6 api.rubygems.org
PING api.rubygems.org(2a04:4e42::70 (2a04:4e42::70)) 56 data bytes
^C
--- api.rubygems.org ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
Versus using IPV4:
$ ping api.rubygems.org
PING rubygems.org (151.101.64.70) 56(84) bytes of data.
64 bytes from 151.101.64.70 (151.101.64.70): icmp_seq=1 ttl=54 time=25.2 ms
64 bytes from 151.101.64.70 (151.101.64.70): icmp_seq=2 ttl=54 time=25.2 ms
^C
--- rubygems.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 25.259/25.273/25.287/0.014 ms
Can I suggest that the issue be fixed in one of two ways -
1. stop publishing AAAA dns records
2. configure the rubygems.org servers to answer to IPV6
If there is a better place to track this issue, please post a link that I can check up on every so often. Thank you kindly!
Discussions are closed to public comments.
If you need help with RubyGems.org please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Domon on 13 May, 2019 05:45 AM
I'm experience the same issue.
I really hope rubygems.org could either support IPv6 or remove the IPv6 DNS record.
Thanks!
Update: I restarted my computer and it works now.
Support Staff 2 Posted by sonalkr132 on 13 Jul, 2020 07:47 AM
Hi,
Sorry about the delay in response here. Can you please confirm if this is still an issue? If yes, I would like to forward some debugging info about your host/IP to the Fastly team.
Thank you for your patience.
3 Posted by Braxton on 25 Aug, 2020 02:26 AM
Signing up just to comment. Yes @sonalkr132, this is still an issue.
Support Staff 4 Posted by sonalkr132 on 25 Aug, 2020 06:12 AM
Hi Braxton,
Thank you for reaching out. It would be very helpful if you can take some to run some commands for debugging info. Specifically, what is the output of the following commands when running from the host which has IPv6 connection issue to rubygems.org:
If you are feeling particularly generous, please add send pcap file for requests to rubygems.org over IPv6 as well. You can usetshark -i any -f "host rubygems.org" -w rubygems.pcap
orsudo tcpdump -i any host rubygems.org -w rubygems.pcap
5 Posted by Braxton on 27 Sep, 2020 04:38 AM
Hi there,
Thanks for getting back to me. Let's get this sorted out and fixed! The output from what you requested follows:
$ wget -6 rubygems.org
Returns:
--2020-09-26 23:18:32-- http://rubygems.org/ Resolving rubygems.org (rubygems.org)... 2a04:4e42::70 Connecting to rubygems.org (rubygems.org)|2a04:4e42::70|:80... failed: Operation timed out. Retrying.
--2020-09-26 23:19:49-- (try: 2) http://rubygems.org/ Connecting to rubygems.org (rubygems.org)|2a04:4e42::70|:80... failed: Operation timed out. Retrying.
--2020-09-26 23:21:08-- (try: 3) http://rubygems.org/ Connecting to rubygems.org (rubygems.org)|2a04:4e42::70|:80... failed: Operation timed out. Retrying.
etc.
$ wget -6 www.ttora.com
Returns:
--2020-09-26 23:18:55-- http://www.ttora.com/ Resolving www.ttora.com (www.ttora.com)... 2606:4700::6810:4552, 2606:4700::6810:ad66 Connecting to www.ttora.com (www.ttora.com)|2606:4700::6810:4552|:80... failed: Operation timed out. Connecting to www.ttora.com (www.ttora.com)|2606:4700::6810:ad66|:80... failed: Operation timed out. Retrying.
--2020-09-26 23:21:30-- (try: 2) http://www.ttora.com/ Connecting to www.ttora.com (www.ttora.com)|2606:4700::6810:4552|:80... failed: Operation timed out.
etc.
$ traceroute 2a04:4e42::70
Returns:
traceroute: unknown host 2a04:4e42::70
The pcap file returned the following (and is attached)
21 packets captured 173315 packets received by filter 0 packets dropped by kernel
Let me know what else I can share to get this fixed!
6 Posted by Braxton on 27 Sep, 2020 04:54 AM
To further clarify that the problem stems from the IPv6 protocol, I've included my terminal output for installing a gem with IPv6 enabled and disabled.
Enabled:
$ gem install foreman
ERROR: Could not find a valid gem 'foreman' (>= 0), here is why: Unable to download data from https://rubygems.org/ - timed out (https://rubygems.org/specs.4.8.gz)
Disabled:
$ networksetup -setv6off Wi-Fi
$ gem install foreman Successfully installed foreman-0.87.2 Parsing documentation for foreman-0.87.2 Done installing documentation for foreman after 0 seconds 1 gem installed
Support Staff 7 Posted by sonalkr132 on 27 Sep, 2020 05:01 AM
This is a kind of litmus test to identify the reason for the IPv6 issue. This command not working generally means the issue in your network (and not fastly/rg.org). You can try
wget -6 www.google.com
, it will timeout as well.The next step for you would be to further debug what is broken in your IPv6 network. I am assuming your host has an interface with IPv6 address (check
ip addr
), which is a prerequisite for any IPv6 issue. Perhaps tryping6 www.google.com
and see if that is working. Please do let us know about your finding or if you need help debugging this in your network.As of why "most" things work for you but
gem install ..
timeout, please check this pull request.