-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Fix: failed to connect to github when run 'install.sh' #2028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very confused. Why would we want to use the git protocol when the source isn't git
?
What problem is this fixing? The install script works as-is just fine, and has done so for years. What's broken?
Hi ljharb, |
Why would you need an ssh key for https? Any environment that can't make HTTPS/SSL connections is utterly broken, if that's what you're implying. |
|
Use replace protocal https with git to let install.sh work in environment where the HTTPS/SSL connections cannot be provided somehow. ==== how to retrigger bash-3.2# GIT_CURL_VERBOSE=1 GIT_TRACE=1 git -c advice.detachedHead=false clone https://github.com/creationix/nvm.git -b v0.34.0 --depth=1 21:49:01.676517 git.c:419 trace: built-in: git clone https://github.com/creationix/nvm.git -b v0.34.0 --depth=1 Cloning into 'nvm'... 21:49:01.678041 run-command.c:643 trace: run_command: git-remote-https origin https://github.com/creationix/nvm.git warning: Protocol restrictions not supported with cURL < 7.19.4 * Couldn't find host github.com in the .netrc file; using defaults * Trying 192.30.255.113... * TCP_NODELAY set * Connected to github.com (192.30.255.113) port 443 (#0) * Cipher selection: * ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@strength * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs/ * OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 * Closing connection 0 fatal: unable to access 'https://github.com/creationix/nvm.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 ==== environment (after chroot). bash-3.2# git --version git version 2.21.0 bash-3.2# curl --version curl 7.64.1 (x86_64-pc-linux-gnu) libcurl/7.64.1 OpenSSL/0.9.7m zlib/1.2.3 Release-Date: 2019-03-27 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets ==== Refer angular/angular-phonecat#212
Absolutely, curl needs to be able to connect with SSL. I see that "https" is in "Protocols" so i'm not clear on what's not already working. Because the git protocol only makes sense when used with |
about what's not already working
I agree git protocol cannot resolve the nvm install issue. still need check the curl why it does not support SSL connect. |
it kind of looks like your system doesn’t have OpenSSL installed |
I have openssl
let me upgrade it to a new version. Thank you, @ljharb |
Sounds like this can be closed? |
please give me some time, I will update with the result. |
any hints? |
it is not stable second time to run and show
|
|
strange behavior |
This topic can be closed. The chroot jail is wrong with Thank you @ljharb |
In the future, it may be better to discuss on an issue before making a PR. |
Replace protocol https with git to let install.sh work in an environment where the HTTPS/SSL connection cannot be available somehow.
==== how to retrigger
==== environment
==== Refer
angular/angular-phonecat#212