tag:help.appveyor.com,2012-11-13:/discussions/problems/15052-unable-to-download-data-from-httpsrubygemsorgAppVeyor: Discussion 2018-09-10T21:00:45Ztag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T18:23:59Z2018-07-10T18:23:59ZUnable to download data from https://rubygems.org/ <div><p>I forked your repo and fixed this by following advice given earlier by another user on the forum <a href="https://help.appveyor.com/discussions/problems/6588-build-failing-unable-to-download-data-from-httpsrubygemsorg-ssl_connect-returned1">here</a></p>
<p>Added this line to <code>install:</code> stage<br></p>
<pre>
<code> - ps: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T21:44:08Z2018-07-10T21:44:08ZUnable to download data from https://rubygems.org/ <div><p>Hey Owen,</p>
<p>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.</p>
<p>I'll add this line of code in the script. Thanks for your help. I'll let you know if the issue persists.</p>
<p>Cheers,</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T21:55:12Z2018-07-10T21:55:12ZUnable to download data from https://rubygems.org/ <div><p>hum. You have patched the appveyor.yml but the issue is with the nightly build that called the appveyor-nightly.yml</p>
<p>Appveyor,yml does notruby gem so this would have worked no matter what</p>
<p>also you are using ::Tls but the entry you are referencing uses Tls12. What's the difference?</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T21:58:09Z2018-07-10T21:58:09ZUnable to download data from https://rubygems.org/ <div><p>Update<br>
<a href="https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi">https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi</a><br>
using <code>Tls12</code> does not solve the issue</p>
<p>I am going to try with the option you have highlighted and report again</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T22:04:21Z2018-07-10T22:04:21ZUnable to download data from https://rubygems.org/ <div><p>no unfortunately this does not solve the issue either<br>
<a href="https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/build/7.4.0.7">https://ci.appveyor.com/project/open-systems-pharmacology-ci/mobi/b...</a></p>
<p>This is the appveyor file that is being used for this script<br>
<a href="https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appveyor-nightly.yml">https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appv...</a></p>
<p>I have added the suggested line here<br>
<a href="https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appveyor-nightly.yml#L23">https://github.com/Open-Systems-Pharmacology/MoBi/blob/develop/appv...</a></p>
<p>is this the right place? It does not seem to do anything.</p>
<p>Thanks again,<br>
Michael</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-10T23:43:01Z2018-07-10T23:43:01ZUnable to download data from https://rubygems.org/ <div><p>Sorry, yes I failed to notice you were using custom yml.<br>
Currently testing some different workarounds.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-11T00:11:02Z2018-07-11T00:11:02ZUnable to download data from https://rubygems.org/ <div><p>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 <code>- set PATH=C:\Ruby25\bin;%PATH%</code> to <code>install:</code> stage allows the gem to install.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-11T01:25:24Z2018-07-11T01:25:24ZUnable to download data from https://rubygems.org/ <div><p>Owen: Thanks so much. This fixes the issue.<br>
Why is ruby 1.9.3 still the default version on the image? Support for 1.9.3 ended in 2015.</p>
<p><a href="https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015/">https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on...</a><br>
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)</p>
<p>Thanks again<br>
Michael</p></div>michaeltag:help.appveyor.com,2012-11-13:Comment/456593602018-07-11T17:16:09Z2018-07-11T17:16:09ZUnable to download data from https://rubygems.org/ <div><p>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.</p>
<p>We expect users to explicitly set the version that is suitable to their build.</p></div>Owen McDonnell