windows git clone 错误:RPC 失败;curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46232906/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
提问by user8612746
I'm having trouble cloning a repo on git. I've been trying for to days and have tried quite a few solutions (in most the problem was slightly different but seemed to apply) but nothing has done anything to make a difference.
我在 git 上克隆 repo 时遇到问题。我已经尝试了几天并尝试了很多解决方案(在大多数情况下,问题略有不同,但似乎适用)但没有做任何改变。
I've tried switching off the anti-virus and firewall but that didn't help. I've also tried uninstalling and reinstalling the network adapter drivers (and restarting the computer) and that didn't work.
我试过关闭防病毒和防火墙,但这没有帮助。我也试过卸载并重新安装网络适配器驱动程序(并重新启动计算机),但没有奏效。
From what I understand it's a network issue somewhere as the remote server keeps hanging up but I'm not managing to get anywhere with the issue.
据我所知,这是某个地方的网络问题,因为远程服务器一直挂断,但我无法解决这个问题。
Using git clone -v --progress seemed to give the same output as git clone. Output from git clone -v --progress https://github.com/mit-cml/appinventor-sources.git
使用 git clone -v --progress 似乎给出与 git clone 相同的输出。git clone -v --progress https://github.com/mit-cml/appinventor-sources.git 的输出
Cloning into 'appinventor-sources'...
POST git-upload-pack (gzip 1425 to 774 bytes)
remote: Counting objects: 41649, done.
remote: Compressing objects: 100% (7/7), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
克隆到'appinventor-sources'...
POST git-upload-pack (gzip 1425 to 774 bytes)
remote: Counting objects: 41649, done.
远程:压缩对象:100% (7/7),完成。
错误:RPC 失败;curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 10054
致命:远程端意外挂断
致命:早期 EOF
致命:索引包失败
I've now tried increasing the buffer again
我现在尝试再次增加缓冲区
git config --global http.postBuffer 1048576000
git config --global http.postBuffer 1048576000
but still nothing.
但仍然没有。
I'm following the solution from The remote end hung up unexpectedly while git cloningfor troubleshooting.
我正在遵循远程端意外挂断的解决方案,同时进行 git 克隆以进行故障排除。
回答by Aman Goel
I resolved the same problem by this:
我通过这个解决了同样的问题:
git config http.postBuffer 524288000
It might be because of the large size of repository and default buffer size of git so by doing above(on git bash), git buffer size will get increase.
这可能是因为存储库的大小和 git 的默认缓冲区大小,所以通过上面的操作(在 git bash 上),git 缓冲区大小会增加。
Cheers!
干杯!
回答by Jeeva Canessane
I had the same issue, and I have solved it by changing my net connection. In fact, my last internet connection was too slow (45 kbit/s). So you should try again with a faster net connection.
我有同样的问题,我已经通过改变我的网络连接解决了它。事实上,我上次的互联网连接速度太慢(45 kbit/s)。所以你应该用更快的网络连接再试一次。
回答by Shahryar Saljoughi
I had the same problem, and @ingyhere 's answersolved my problem .
follow his instructions told in his answer here.
我遇到了同样的问题,@ingyhere 的回答解决了我的问题。
按照他在此处回答中的说明进行操作。
git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow
git pull --all
回答by Satya Madala
Uninstalling(version: 2.19.2) and installing(version: 2.21.0) git client fixed the issue for me.
卸载(版本:2.19.2)和安装(版本:2.21.0)git 客户端为我解决了这个问题。
回答by Vinay Chowdary Malempati
I have tried "git init" and it worked like charm for me.
我试过“git init”,它对我来说很有魅力。
I got it from the link Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal
我从链接Git 推送错误中得到它:RPC 失败;result=56, HTTP code = 200 fatal: 远程端意外挂断了fatal
回答by Abhishek Yadav
This happens when you push first time without net connection or poor net connection.But when you try again using good connection 2,3 times problem will be solved.
当您第一次在没有网络连接或网络连接不良的情况下推送时会发生这种情况。但是当您再次尝试使用良好的连接 2,3 次时,问题将得到解决。
回答by Eliecer Narvaez
just Disable the Firewall and start again. it worked for me
只需禁用防火墙并重新开始。它对我有用
回答by user9925997
It's mentioned as SSL_ERROR_SYSCALL, errno 10054.
它被称为 SSL_ERROR_SYSCALL,错误号 10054。
To resolve this SSL issue I went to .gitconfig file (which is located in c drive in my desktop) I changed sslverify
to false and added my username and email id.
为了解决这个 SSL 问题,我转到 .gitconfig 文件(位于我桌面的 c 驱动器中)我更改sslverify
为 false 并添加了我的用户名和电子邮件 ID。
sslVerify = `false` //make sslVerify as false
[user]
name = `***<Enter your name>**`
email = `**<Email Id>**`
回答by user11854039
What I did is moved the dependencies list to the end of
我所做的是将依赖项列表移到末尾
#Pods for <app>
In Podfile. Like this:
在 Podfile 中。像这样:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '<app>' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for <app>
target '<app>Tests' do
inherit! :search_paths
# Pods for testing
end
target '<app>UITests' do
inherit! :search_paths
# Pods for testing
end
pod 'Firebase/Core'
pod 'Firebase/Database'
end
回答by C Williams
All these tips did not work for me, what worked was cloning over ssh rather that http
所有这些技巧对我都不起作用,有效的是通过 ssh 克隆而不是 http