Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal

While doing git push, I receive this error:

Username for 'https://github.com': Newbie
Password for 'https://[email protected]':
Counting objects: 11507, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8210/8210), done.
Writing objects: 100% (11506/11506), 21.75 MiB | 0 bytes/s, done.
Total 11506 (delta 2213), reused 11504 (delta 2211)
efrror: RPC failed; result=56, HTTP code = 200
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I also tried doing: git config http.postBuffer 524288000, but still error.. Also tried: git config --global http.postBuffer 2M by referring on git push error: RPC failed; result=56, HTTP code = 0

Please can anyone help me out with this?

like image 208
Newbie Avatar asked Jul 25 '14 09:07

Newbie


People also ask

What is RPC failed?

“The remote procedure call failed and did not execute” message is an error that is related to the Remote Procedure Call (RPC). Usually, this protocol helps the specific program request service from another software not located on the same computer.

Why did RPC fail?

Often, the reason behind the remote procedure call failed error is a default program. You might have a wrong, or corrupt program set to open specific files or photos. For this, you might have to resume to default programs offered by Windows: Go to the Control Panel on your Windows.

What is git post buffer?

From the git config man page, http. postBuffer is about: Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally.


4 Answers

Look here: https://flyingtomoon.com/2011/04/12/git-push-is-failed-due-to-rpc-failure-result56/

The problem is most likely because your git buffer is too low.

You will need to increase Git’s HTTP buffer by setting the git config var “http.postBuffer” to 524288000.

git config http.postBuffer 524288000
like image 54
James Shi Avatar answered Oct 23 '22 10:10

James Shi


Increase the Git buffer size to the largest individual file size of your repo:

git config --global http.postBuffer 157286400
like image 33
Vijay Chauhan Avatar answered Oct 23 '22 10:10

Vijay Chauhan


This error was caused by my corporate Firewall.

like image 12
DBD Avatar answered Oct 23 '22 09:10

DBD


I faced a similar issue. When I was trying to push my branch to remote, I was seeing this error: >error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

In my case, this issue was caused due to a proxy that I was connected to. I disconnected the VPN connection and tried to push my changes again and that worked.

like image 7
GeekyDeveloper Avatar answered Oct 23 '22 09:10

GeekyDeveloper