Unable to download data from https://rubygems.org/

michael's Avatar

michael

10 Jul, 2018 04:28 PM

Hi there,

We have a script that has been running without issues every night for over a year now.
It was suspended about 1.5 months ago and reactivated today

We are getting the following error when installing one of the dependencies required by our build script

gem install xml-simple
ERROR:  Could not find a valid gem 'xml-simple' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/specs.4.8.gz)

nothing has changed in our build script aside from the version.
I am guessing that something has changed in the image being used. Any idea what needs to be done to have our script run again?

https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi

This is the last build
https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/b...

The code for the project is under
https://github.com/Open-Systems-Pharmacology/MoBi

Thanks for your help,

Michael

  1. Support Staff 1 Posted by Owen McDonnell on 10 Jul, 2018 06:23 PM

    Owen McDonnell's Avatar

    I forked your repo and fixed this by following advice given earlier by another user on the forum here

    Added this line to install: stage

     - ps: |
          [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls
    
  2. 2 Posted by michael on 10 Jul, 2018 09:44 PM

    michael's Avatar

    Hey Owen,

    Thanks for the response. Funny enough, I was the one who created the message in the first place but for some reason, the error went away and never say the follow up responses.

    I'll add this line of code in the script. Thanks for your help. I'll let you know if the issue persists.

    Cheers,

  3. 3 Posted by michael on 10 Jul, 2018 09:55 PM

    michael's Avatar

    hum. You have patched the appveyor.yml but the issue is with the nightly build that called the appveyor-nightly.yml

    Appveyor,yml does notruby gem so this would have worked no matter what

    also you are using ::Tls but the entry you are referencing uses Tls12. What's the difference?

  4. 4 Posted by michael on 10 Jul, 2018 09:58 PM

    michael's Avatar

    Update
    https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi
    using Tls12 does not solve the issue

    I am going to try with the option you have highlighted and report again

  5. 5 Posted by michael on 10 Jul, 2018 10:04 PM

    michael's Avatar

    no unfortunately this does not solve the issue either
    https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/b...

    This is the appveyor file that is being used for this script
    https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appv...

    I have added the suggested line here
    https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appv...

    is this the right place? It does not seem to do anything.

    Thanks again,
    Michael

  6. Support Staff 6 Posted by Owen McDonnell on 10 Jul, 2018 11:43 PM

    Owen McDonnell's Avatar

    Sorry, yes I failed to notice you were using custom yml.
    Currently testing some different workarounds.

  7. Support Staff 7 Posted by Owen McDonnell on 11 Jul, 2018 12:11 AM

    Owen McDonnell's Avatar

    I'm not sure if you are using default ruby version on the build image (1.9.3) for a specific reason, but using a newer version by adding - set PATH=C:\Ruby25\bin;%PATH% to install: stage allows the gem to install.

  8. 8 Posted by michael on 11 Jul, 2018 01:25 AM

    michael's Avatar

    Owen: Thanks so much. This fixes the issue.
    Why is ruby 1.9.3 still the default version on the image? Support for 1.9.3 ended in 2015.

    https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on...
    It's probably time to move to another default to avoid any weird problem such as this one in the future (and also cluttering the yml)

    Thanks again
    Michael

  9. Support Staff 9 Posted by Owen McDonnell on 11 Jul, 2018 05:16 PM

    Owen McDonnell's Avatar

    The reason for this is that there is no sensible default for Ruby 2.x so setting to 1.9.3 makes 'more sense', despite it being quite old.

    We expect users to explicitly set the version that is suitable to their build.

  10. Ilya Finkelshteyn closed this discussion on 10 Sep, 2018 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

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

23 Oct, 2018 08:45 PM
23 Oct, 2018 07:48 PM
23 Oct, 2018 06:50 PM
23 Oct, 2018 06:06 PM
23 Oct, 2018 05:51 PM