Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub, push error: the remote end hung up unexpectedly

Tags:

git

github

I now cannot push my local commit to the github repo. I received an error message:

Counting objects: 76, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (76/76), 5.23 MiB | 24.67 MiB/s, done.
Total 76 (delta 45), reused 0 (delta 0)
remote: fatal: early EOF
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I've tried some solutions offered here, nothing works.

I also tried to push another project to rule out network issue. It succeeded, although taking some time.

I ran git fsck, receiving

git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3831/3831), done.
like image 487
Maybe Avatar asked Jul 25 '18 00:07

Maybe


1 Answers


File size

Let's try with a bigger post buffer as described here.

git config http.postBuffer 100000000

http.postBuffer

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. Default is 1 MiB, which is sufficient for most requests.

Idea from https://stackoverflow.com/a/3605544/581076


Original thought

This looks like a server issue.

If you have been able to push before, I suggest trying again after waiting some more time.

like image 91
tymtam Avatar answered Nov 15 '22 09:11

tymtam