New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install issue on Windows 10 #727

Closed
JMezquerro opened this Issue Mar 1, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@JMezquerro

JMezquerro commented Mar 1, 2018

Hi,

I get an error installing COSMOS in windows 10, either using the .bat file or through command prompt (gem install cosmos). I've install COSMOS in the past succesfully, the issue raised ~2 days ago. This is the log recevied in the command prompt:

"Downloading 64-bit Ruby
Exception when calling "DownloadFile" with the arguments "2": "Canceled the request: Unable to create a secure channel
SSL/TLS."
In Line: 1 Character: 1

  • (New-Object Net.WebClient).DownloadFile('http://github.com/oneclick/r ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : WebException
    

ERROR: Problem downloading 64-bit Ruby from: http://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-2.4.2-2/rubyinstaller-2.4.2-2-x64.exe
INSTALL FAILED"

@jasonatball

This comment has been minimized.

Collaborator

jasonatball commented Mar 1, 2018

Github recently made a change that disallows any clients not using TLS 1.2 (crypto-removal-notice). Edit the Installer script and change the powershell download line to the following.

powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('!PROTOCOL!:!RUBY_INSTALLER_PATH!!RUBY_INSTALLER_64!', '!COSMOS_INSTALL!\tmp\!RUBY_INSTALLER_64!')"

The new code is the explicit setting of the SecurityProtocol. We will update the installer script soon.

@ryanatball

This comment has been minimized.

Member

ryanatball commented Mar 1, 2018

I just pushed this change to the installer script. You can get the new one at:

https://raw.githubusercontent.com/BallAerospace/COSMOS/master/vendor/installers/windows/INSTALL_COSMOS.bat

We still need a different fix for Windows 7

@jasonatball jasonatball added the bug label Mar 1, 2018

@JMezquerro

This comment has been minimized.

JMezquerro commented Mar 2, 2018

Now it works perfect again! Thank you very much for your great work with COSMOS!

@JMezquerro JMezquerro closed this Mar 2, 2018

@ryanatball

This comment has been minimized.

Member

ryanatball commented Mar 19, 2018

I just checked in a change to fix Windows 7 as well.

@ryanatball ryanatball added this to the v4.2.2 milestone Apr 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment