简体   繁体   English

Grunt / Git抛出与github.com:443相关的未知SSL协议错误

[英]Grunt/Git throws Unknown SSL protocol error in connection to github.com:443

I am using Grunt to build an Angular Website. 我正在使用Grunt构建一个Angular网站。 On about 1 in 3 builds, I see the following error: 在大约三分之一的版本中,我看到以下错误:

ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git", exit code of #128 fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443

Seeting GIT_CURL_VERBOSE=1 and GIT_TRACE_PACKET=2 gives the following: Seeting GIT_CURL_VERBOSE = 1和GIT_TRACE_PACKET = 2给出以下内容:

Additional error details:
* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (192.30.253.112) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none
* Unknown SSL protocol error in connection to github.com:443
* stopped the pause stream!
* Closing connection 0
fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': Unknown SSL protocol error in connection to github.com:443

I have tried the following to no avail: 我试过以下无济于事:

git config --global --add http.sslVersion tlsv1.2
git config --global http.sslverify false
git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf git@github.com

Typing the command "git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git " works every time. 输入命令“git ls-remote --tags --heads https://github.com/FortAwesome/Font-Awesome.git ”每次都有效。

The problem comes when the domain name is replaced by IP address, try to add github.com to your hosts file and make sure it's correctly resolved. 当域名被IP地址替换时,问题就出现了,尝试将github.com添加到您的hosts文件中并确保它已正确解析。

Lines where the problem is visible: 问题可见的行:

* Couldn't find host github.com in the _netrc file; using defaults
* timeout on name lookup is not supported
*   Trying 192.30.253.112...

I know this may sound stupid but are you running this on a Virtual Machine? 我知道这可能听起来很愚蠢,但你是在虚拟机上运行吗? If so try increasing the number of CPU cores that it has access to as we had a similar problem and this seemed to fix it. 如果是这样,尝试增加它有权访问的CPU核心数,因为我们遇到了类似的问题,这似乎解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Git Clone:与github.com:443相关的未知SSL协议错误 - Git Clone : Unknown SSL protocol error in connection to github.com:443 失败推。 与github.com相关的未知SSL协议错误:443 - Failure to push. Unknown SSL protocol error in connection to github.com:443 无法访问'https://github.com/AFNetworking/AFNetworking.git/':与github.com:9847相关的未知SSL协议错误 - unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Unknown SSL protocol error in connection to github.com:-9847 Git Push失败:致命:无法访问与github.com有关的未知SSL协议错误:-9805 - Git Push failed: fatal: unable to access Unknown SSL protocol error in connection to github.com:-9805 OpenSSL SSL_connect:连接被重置连接到 github.com:443 同时尝试 git 推送 - OpenSSL SSL_connect: Connection was reset in connection to github.com:443 while try to git push SSL_connect:SSL_ERROR_SYSCALL 连接到 github.com:443 - SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 致命:无法访问“https://github.com/xxx”:LibreSSL SSL_connect: SSL_ERROR_SYSCALL 连接到 github.com:443 - fatal: unable to access 'https://github.com/xxx': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 在 AWS 实例中克隆 git repo? 我收到错误:无法连接到 github.com 端口 443:连接超时 - Cloning a git repo in AWS Instance? I get the error : Failed to connect to github.com port 443: Connection timed out Gitblit:连接到mydomain的未知SSL协议错误:443 - Gitblit: Unknown SSL protocol error in connection to mydomain:443 如何克服 git 错误`连接中的未知 SSL 协议错误` - How to overcome the git error `Unknown SSL protocol error in connection`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM