git clone错误:RPC失败; curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,errno 10054

use*_*746 41 windows git curl clone github

我在git上克隆一个repo时遇到了麻烦.我已经尝试了几天并且已经尝试了很多解决方案(在大多数情况下问题略有不同但似乎适用)但是没有做任何事情来做出改变.

我已经尝试关闭防病毒和防火墙,但这没有帮助.我也尝试卸载并重新安装网络适配器驱动程序(并重新启动计算机),但这不起作用.

根据我的理解,这是一个网络问题,因为远程服务器一直在挂断,但我无法解决任何问题.

使用git clone -v --progress似乎提供与git clone相同的输出.git clone输出-v --progress https://github.com/mit-cml/appinventor-sources.git

克隆到'appinventor-sources'...
POST git-upload-pack(gzip 1425到774字节)
remote:计数对象:41649,完成.
remote:压缩对象:100%(7/7),完成.
错误:RPC失败; curl 56 OpenSSL SSL_read:SSL_ERROR_SYSCALL,错误10054
致命:远程端意外
致命致命:早期EOF
致命:索引包失败

我现在尝试再次增加缓冲区

git config --global http.postBuffer 1048576000

但仍然没有.

我正在关注远程端的解决方案意外挂起,同时git克隆进行故障排除.

小智 46

我解决了同样的问题:

git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)

这可能是因为存储库的大小和git的默认缓冲区大小所以通过上面的操作(在git bash上),git缓冲区大小将会增加.

干杯!

  • 在 `git config http.postBuffer 524288000` 之前使用 `git init` (12认同)
  • 另一个选项是全局配置: git config --global http.postBuffer 524288000 (5认同)
  • 请注意,[Git 常见问题解答](https://git-scm.com/docs/gitfaq#Documentation/gitfaq.txt-WhatdoescodehttppostBuffercodereallydo) 解释说,这几乎总是由于软件损坏造成的,例如代理、防病毒软件、防火墙或TLS MITM 设备,并且该软件应该被修复或更换,而不是被解决。它对克隆、获取或 SSH 也没有影响,仅对通过 HTTP(S) 进行推送有影响。 (4认同)
  • 哇。我想凡事都有第一次。从未想过我会看到一个太大而难以管理的存储库。您知道这是否需要以某种方式进行管理吗?我想这种情况会随着它的发展而继续发生 (2认同)

Sha*_*ghi 15

我遇到了同样的问题,@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
Run Code Online (Sandbox Code Playgroud)

  • 我最终还是按照原来的方式做了,我只需要尝试10次就可以了......不知道为什么 (2认同)
  • 这适用于`git config http.sslVerify“false”` (2认同)

Sma*_*lns 13

you need to increase the buffer size (it's due to the large repository size), so you have to increase it

git config http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)

Althought you must have an initializd repository, just porceed as the following

git init
git config http.postBuffer 524288000
git remote add origin <REPO URL>
git pull origin master
...
Run Code Online (Sandbox Code Playgroud)


Jee*_*ane 12

我有同样的问题,我通过改变我的网络连接解决了它.事实上,我上次的互联网连接速度太慢(45 kbit/s).因此,您应该尝试使用更快的网络连接.

  • 这对我来说似乎是最简单的解决方法......令人惊讶的是,从wifi切换到以太网确实也为我解决了这个问题. (4认同)

Abh*_*bhi 9

当您第一次在没有网络连接或网络连接不良的情况下推送时会发生这种情况。但是当您再次尝试使用良好的连接 2,3 次时,问题将得到解决。

  • 是的,可以确认,我不得不重试大约 10 次,然后突然间我可以克隆该存储库了...... (2认同)

Duc*_*yen 8

git config --global http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)

在我的情况下工作 - AWS 代码提交


小智 7

我试过“git init”,它对我来说很有魅力。

我从链接Git 推送错误中得到它:RPC 失败;result=56, HTTP code = 200 fatal: 远程端意外挂断了fatal


Flo*_*ier 7

(基于 Hakan F\xc4\xb1st\xc4\xb1k 的回答)

\n

您还可以全局设置 postBuffer,如果您还没有签出存储库,这可能是必要的!

\n
git config http.postBuffer 524288000\n
Run Code Online (Sandbox Code Playgroud)\n


Sat*_*ala 5

git client的卸载(版本:2.19.2)和安装(版本:2.21.0)为我解决了这个问题。

  • 不。从git版本2.18升级到2.21.0不能解决问题! (2认同)