Unable to push to github using https. error: RPC failed; curl 56 Send failure

I’ve been trying all morning to push my local repo to github to no avail.
I’ve tried pushing in android studio, using git command line (in cmd and gitbash), and now using git desktop.
I’ve tried increasing the http.postbuffer size as suggested in similar reports and I’ve checked the git.config file to confirm it is set (“postBuffer = 524288000”). This doesn’t fix it.

I’m trying to push using https because the ssh method seems to fail authentication every time. I’ve checked my ssh-agent is running and contains the private key, but this doesn’t seem to have made any difference. I’ve also checked that the ssh public key is added to my github profile under ssh keys.

The error I get is consistent and as you can see this is for a small repository:

Enumerating objects: 21675, done.
Counting objects: 100% (21675/21675), done.
Delta compression using up to 16 threads
Compressing objects: 100% (5543/5543), done.
Writing objects: 100% (21675/21675), 42.65 MiB | 189.05 MiB/s, done.
Total 21675 (delta 15235), reused 21096 (delta 14925), pack-reused 0
error: RPC failed; curl 56 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

1 Like

For anyone else experiencing this:
Solution:
My issue is that my service provider is “virgin media”. They have something called “websafe”. I enable this to protect my child. The way this seems to work is by mitm. I presume this because to fix the error I have done the following:

  1. Open my virgin media account in a browser
  2. navigate to the websafe settings
  3. navigated to the “websites section”
  4. added “github.com” as an “Always allowed” website.
  5. Attempted connection using ssh to github (from powershell)
  6. Received a “Are you sure you want to continue connecting (yes/no/[fingerprint])? yes” message.
  7. Said yes - the repo is now uploading absolutely fine using ssh (which has never worked before).

I am trying to push a Unity3D project up to Github repo and I am getting a similar error. Also using Unity3D. Tried command line and the GUI for Github. Also tried adding LFS data (50 GB) and tried creating several different repositories. Seems to be an issue with large file sizes? The file I am trying to push is about 3 GB. Here is what I get:

Enumerating objects: 8805, done.
Counting objects: 100% (8805/8805), done.
Delta compression using up to 16 threads
Compressing objects: 100% (6970/6970), done.
error: RPC failed; curl 55 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly
Writing objects: 100% (8804/8804), 2.99 GiB | 6.18 MiB/s, done.
Total 8804 (delta 4902), reused 3380 (delta 1833), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

If you read the github faq, it says that it only supports git “push” operations of sizes up to 150mb (or something like this, I’m recalling from when I was investigating my issue).
They apparently have some different method for dealing with large files. You’re actually pushing lots of smaller files totaling 3GB from what I can see above. Others have suggested breaking the push into sections by pushing just some commits then a next batch of commits. (presumably in historical order). I’d try that perhaps.
My issue was different, I couldn’t even push a single push containing multiple commits with a total size of 40MB.

The push and file size limits are described here: Conditions for large files

At the moment it says maximum 50 MB per file, and 100 MB in a single push. If you have larger files and want to switch to LFS, note that you’ll have to remove them from history too to make the push to Github work.