简体   繁体   English

Git 推送错误:RPC 失败:curl 52

[英]Git push error: RPC failed: curl 52

git push fails with following error git push 失败并出现以下错误

fatal: RPC failed: curl 52: Empty reply from server

The upload succeeds in case only one file was modified, added or deleted.如果只有一个文件被修改、添加或删除,则上传成功。

The following settings to don't work reliably以下设置不能可靠地工作

 git config --global --add core.compression -1

The git version is 2.8.2 running on ubuntu 14.04, and I have tried with both openssl and gnutls compilations. git 版本是在 ubuntu 14.04 上运行的 2.8.2,我已经尝试过 openssl 和 gnutls 编译。

ssh remotes also fail. ssh 遥控器也失败。

The problem is encountered with repositories of问题是在存储库中遇到的

bitbucket
github
gitlab

Fail safe answers appreciated故障安全答案赞赏

In terminal use sudo to clone, or type:在终端中使用 sudo 进行克隆,或输入:

git config --global http.postBuffer 157286400

its worked for me它对我有用

Following worked for me.以下为我工作。

git config --global core.compression 0

git clone --depth 1 <repo> //  partial clone to truncate the amount of info coming down

#cd repo // go into the new directory and 

git fetch --unshallow //retrieve the rest of the clone

git pull --all //final pull

Hope, this could be helpful for someone having the same issue.希望,这对有同样问题的人会有所帮助。

I had a chat with Gideon @ atlassian he suggested to use SSH over HTTPS to fix the "curl 52" error.我与 Gideon @ atlassian 聊天,他建议通过 HTTPS 使用 SSH 来修复“curl 52”错误。

For me switching to SSH fixed the problem.对我来说,切换到 SSH 解决了这个问题。 Here's the complete answer:这是完整的答案:

This is a HTTP/HTTPS timeout issue involving either some large commit size, or a weak network.这是一个 HTTP/HTTPS 超时问题,涉及一些大的提交大小或弱网络。 If you're cloning, can you try to see if you can clone the repository using this method:如果你在克隆,你可以尝试看看你是否可以使用这种方法克隆存储库:

https://stackoverflow.com/a/22317479 https://stackoverflow.com/a/22317479

Can you try to see if running this command before any git operations help as well:您能否尝试在任何 git 操作之前运行此命令也有帮助:

git config --global http.postBuffer 524288000

Also, this issue usually won't occur in SSH;此外,这个问题通常不会在 SSH 中发生; so maybe it is worth trying to set up SSH and then do the operation through SSH:所以也许值得尝试设置 SSH,然后通过 SSH 进行操作:

https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html

Following worked for me.以下为我工作。 stop WIFI and use the Network cable to connect the NetWork停止WIFI并使用网线连接网络

Maybe it is a problem about network可能是网络问题

I have the same problem on arch linux, git version 2.8.2, can't push to bitbucket repo.我在 arch linux 上有同样的问题,git 版本 2.8.2,无法推送到 bitbucket repo。 Cloning and pull works.克隆和拉动作品。

Appearently it's a problem with HTTPS problem.显然这是HTTPS问题的问题。 Switching to SSH fix the problem with all repositories.切换到 SSH 可以解决所有存储库的问题。

This happened in my case during a push and it was seemingly due to duplicate consecutive commit messages.在我的情况下,这发生在推送期间,似乎是由于重复的连续提交消息。 Once I amended (git commit --amend) the second message to be slightly different from the first, pushed again, and success.一旦我修改(git commit --amend)第二条消息与第一条略有不同,再次推送,成功。

暂无
暂无

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

相关问题 git push 错误:RPC 失败; curl 52 OpenSSL SSL_read:连接已重置,错误号 10054 - git push error: RPC failed; curl 52 OpenSSL SSL_read: Connection was reset, errno 10054 git 克隆错误:RPC 失败; curl 52 GnuTLS 接收错误 (-110) - git clone error: RPC failed; curl 52 GnuTLS recv error (-110) Gitblit推送错误“错误:RPC失败; result = 52,HTTP code = 0“ - Gitblit push error “error: RPC failed; result=52, HTTP code = 0” Git 错误:RPC 失败; 结果=52,HTTP 代码 = 0 - Git error: RPC failed; result=52, HTTP code = 0 git push 挂起,错误:RPC 失败; HTTP 413 curl 22 请求的 URL 返回错误:413 - git push hangs, error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 git 推送错误:RPC 失败; HTTP 500 curl 22 请求的 URL 返回错误:500 - git push error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Git 推送错误:RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 - Git push error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Git 推送 RPC 失败; HTTP 502 curl 22 请求的 URL 返回错误:502 网关错误 - Git push RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway Git 推送失败。 错误:RPC 失败; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 - Git push getting failed. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60 Git 克隆错误:RPC 失败 - curl 28 操作太慢 - Git clone error: RPC failed - curl 28 Operation too slow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM