This help site has been deprecated. Please send your requests to support@rubygems.org

Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)

Joshgun's Avatar

Joshgun

01 Jun, 2020 07:12 AM

I've already searched about this issue and none of them helped. My OpenSSL client supports TLS 1.2 but I'm getting this error:

ERROR: Could not find a valid gem 'bundler' (= 1.12.5), here is why:
          Unable to download data from https://rubygems.org/ - Received fatal alert: protocol_version (https://rubygems.org/specs.4.8.gz)

I'm using:
Ubuntu 18,
openjdk version "1.8.0_252",
jruby 9.1.17.0 (2.3.3)

  1. Support Staff 1 Posted by sonalkr132 on 01 Jun, 2020 05:30 PM

    sonalkr132's Avatar

    can you please try disabling 1.3 and try again?

  2. 2 Posted by Joshgun on 02 Jun, 2020 08:35 AM

    Joshgun's Avatar

    Sorry I couldn't find how to disable tls 1.3 on Ubuntu 18. But I have another ubuntu 14 machine with openssl version: OpenSSL 1.0.2n 7 Dec 2017, which supports maximum version of 1.2. Still same issue on that machine

  3. Support Staff 3 Posted by sonalkr132 on 30 Jun, 2020 03:12 PM

    sonalkr132's Avatar

    Hi Joshgun,

    I tried reproducing this but couldn't. Following are the two ways I tried:

    $ sudo docker run -it jruby:9.1.17.0-jdk bash
    root@3abb76e7e9d3:/# jruby -v
    jruby 9.1.17.0 (2.3.3) 2018-04-20 d8b1ff9 OpenJDK 64-Bit Server VM 25.252-b09 on 1.8.0_252-b09 +jit [linux-x86_64]
    root@3abb76e7e9d3:/# cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 10 (buster)"
    NAME="Debian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
    root@3abb76e7e9d3:/# gem install bundler -v 1.12.5
    Fetching: bundler-1.12.5.gem (100%)
    Successfully installed bundler-1.12.5
    1 gem installed
    
    and
    $ sudo docker run -it ubuntu:18.04 bash
    root@4f6f662e4448:/# jruby -v
    jruby 9.1.17.0 (2.3.3) 2019-02-26 fffffff OpenJDK 64-Bit Server VM 11.0.7+10-post-Ubuntu-2ubuntu218.04 on 11.0.7+10-post-Ubuntu-2ubuntu218.04 +jit [linux-x86_64]
    root@4f6f662e4448:/# gem install bundler -v 1.12.5
    Fetching: bundler-1.12.5.gem (100%)
    Successfully installed bundler-1.12.5
    Parsing documentation for bundler-1.12.5
    Installing ri documentation for bundler-1.12.5
    Done installing documentation for bundler after 3 seconds
    1 gem installed
    
    In both cases, I was able to install bundler successfully. Your issue seems to be specific to your host only. I would suggest purging JRuby and openssl from your host and installing it again. May be you can get some help on SO.
    If you like us to take further look at this, please provide us with steps to reproduce this.

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

Recent Discussions

03 Dec, 2021 11:06 AM
02 Dec, 2021 09:41 AM
16 Nov, 2021 07:55 AM
05 Nov, 2021 07:09 AM
03 Nov, 2021 07:18 PM