error: RPC failed; curl 55 OpenSSL SSL_write: SSL_ERROR_ZERO_RETURN, errno 10053

Hi, I’m having an issue while trying to push a git repo.

This is the scenario, there a project I want to have on my github, and since fork gives the whole project(which I don’t really want), I’m trying to simply clone a specific branch to a new git repo.

The thing is that I’d like to have the commit history, so what I did was cloning that branch, changing the remote then trying to push to a different remote, and I encounter the following error:

Enumerating objects: 375990, done.
Counting objects: 100% (375990/375990), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (95138/95138), done.
error: RPC failed; curl 55 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10053
fatal: The remote end hung up unexpectedly
Writing objects: 100% (3759907/375990), 362.23 Mib | 225.76 MiB/s, done.
Total 375990 (delta 274022), reused 375918 (delta 273954)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

I tried all the solution I’ve found on stackoverflow, but nothing actually worked.

I’m pretty sure the issue is that the git object is large(300~ mb), but git lfs doesn’t seem to help here as well, and I’m not really sure if that’s the issue as if it was due to the size I would receive:

“this exceeds GitHub’s file size limit of 100.00 MB”

BTW this is the repo I’m trying to clone:

Any ideas would be appreciated. Thanks!

1 Like

The first step in trouble-shooting this is to determine if you can import the entire repository without problems. If so, then any individual branch within the repository should not cause a problem. So rather than trying to “just clone a branch”, can you do the following:

  1. Clone the source repository locally
  2. Create a new repository on GitHub
  3. Add the new repository as a remote for the local repository
  4. Push the contents of the local repository to the new GitHub repository

Let me know if that works and what error occurs if it doesn’t and we can go from there.

Hi, I got the same issue. I did the things you said but still not work. 

I had a remote repo on Github and everything set up on my local also. 

Git LFS: (0 of 0 files, 2 skipped) 0 B / 0 B, 329.51 MB skipped Counting objects: 36971, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (20720/20720), done.
efatal: The remote end hung up unexpectedlyiB | 5.37 MiB/s
rror: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053
Writing objects: 100% (36971/36971), 4.12 GiB | 10.28 MiB/s, done.
Total 36971 (delta 14718), reused 36966 (delta 14717)
fatal: The remote end hung up unexpectedly
Everything up-to-date
1 Like

Same issue here too - cannot push no matter what I try.

This is with a fresh repo, as suggested above, pushing only the latest state of development (I scrapped all my unpushed commit history for this)

LFS is being used, and it seems to upload successfully beforehand - it is only after all the regular objects are written that this error occurs.

The error is replaced by a “Broken Pipe” one when I attempt to use SSH instead of HTTPS - It says something about “unpack failed”, again only after all the uploading seems to be complete (each attempt takes some 30 mins)

There are no file size warnings of any kind, nor there is any mention of repository space limitations being reached.

Please help - I have not been able to use GitHub during the last two weeks - My entire project is greatly hampered by this

1 Like

Same problem here, unable to fix it

Also am receiving error: RPC failed; curl 55 OpenSSL SSL_write: SSL_ERROR_ZERO_RETURN, errno 32 and cloning does not resolve.

Is there any update to this issue?

Check out this command

> git config http.postBuffer 524288000

1 Like

Here’s how I fixed it.

  1. Download and install Git LFS - from here.
  2. You only have to do this once per repository per machine (as per docs):
git lfs install
  1. Select the file types that you want Git-lfs git lfs track “*.js” or git lfs track “*.css”

  2. Add the .gitattributes file

git add .gitattributes
  1. git commit -m "track js files with Git LFS"
  2. git push origin master

You should now have all yous commits in Git.
I did try the buffer command, but it did not work

git config http.postBuffer 524288000

Hope this helps.

I was facing the same issue and I also have tried almost every option available on internet but still didn’t get any success. Finally I did below steps to solve it.
(1) Install Git GUI
(2) Clone repo from Github to local machine
(3) Create local branch from master branch
(4) Checkout to local branch and put my edited files in folder
(5) from Git gui I have stage changed
(6) commit them.
(7) Checkout to master branch.
(8) Meger local branch into master branch
(9) Push the master branch into remote origin

In github I found new branch, which I have created new pull request and merged it to original one. Thanks.