[windows] git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054

I'm having trouble cloning a repo on git. I've been trying for to days and have tried quite a few solutions (in most the problem was slightly different but seemed to apply) but nothing has done anything to make a difference.

I've tried switching off the anti-virus and firewall but that didn't help. I've also tried uninstalling and reinstalling the network adapter drivers (and restarting the computer) and that didn't work.

From what I understand it's a network issue somewhere as the remote server keeps hanging up but I'm not managing to get anywhere with the issue.

Using git clone -v --progress seemed to give the same output as git clone. Output from git clone -v --progress https://github.com/mit-cml/appinventor-sources.git

Cloning into 'appinventor-sources'...
POST git-upload-pack (gzip 1425 to 774 bytes)
remote: Counting objects: 41649, done.
remote: Compressing objects: 100% (7/7), done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

I've now tried increasing the buffer again

git config --global http.postBuffer 1048576000

but still nothing.

I'm following the solution from The remote end hung up unexpectedly while git cloning for troubleshooting.

This question is related to windows git curl github clone

The answer is

I resolved the same problem by this:

git config http.postBuffer 524288000

It might be because of the large size of repository and default buffer size of git so by doing above(on git bash), git buffer size will get increase.


I had the same issue, and I have solved it by changing my net connection. In fact, my last internet connection was too slow (45 kbit/s). So you should try again with a faster net connection.

I had the same problem, and @ingyhere 's answer solved my problem .
follow his instructions told in his answer here.

git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow 
git pull --all

This happens when you push first time without net connection or poor net connection.But when you try again using good connection 2,3 times problem will be solved.

you need to increase the buffer size (it's due to the large repository size), so you have to increase it

git config http.postBuffer 524288000

Althought you must have an initializd repository, just porceed as the following

git init
git config http.postBuffer 524288000
git remote add origin <REPO URL>
git pull origin master

Uninstalling(version: 2.19.2) and installing(version: 2.21.0) git client fixed the issue for me.

I have tried "git init" and it worked like charm for me.

I got it from the link Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal

just Disable the Firewall and start again. it worked for me

(based on anser from Hakan Fistik)

You can also set the postBuffer globally, which might be necessary, if you haven't checkout out the repository yet!

git config http.postBuffer 524288000

Following steps helped me to fix this issue, Solution 1:

  1. git checkout master
  2. git pull
  3. git checkout [you current branch]
  4. git pull

You can also set git config http.postBuffer 524288000 to increase the network buffer

Solution 2:

Sometimes it happens when you are cloning your repo using VPN and it fails to verify the SSL

Try this out it may help:

git config http.sslVerify "false"

It's mentioned as SSL_ERROR_SYSCALL, errno 10054.

To resolve this SSL issue I went to .gitconfig file (which is located in c drive in my desktop) I changed sslverify to false and added my username and email id.

sslVerify = `false` //make sslVerify as false    
    name = `***<Enter your name>**`
    email = `**<Email Id>**`

It could be an issue with your network (i.e. not an issue with any of your git configs, firewall, or any other machine settings). To confirm this, you could test the following:

  1. See if this issue persists on the same network on different machines (this was true for me).
  2. Try running the problematic git command (for me it was git pull) on a different network and see if it works. I brought my desktop over to a friend's and confirmed that the command did indeed work without any modifications. I also tested the command from my laptop on an open network nearby and the command also started suddenly working (so this was also true for me)

If you can confirm #1 and #2 above, it may be time to schedule an appointment with a technician from your ISP. I have fiber internet in a fairly newish building and when the technician arrived they went to my building's telecom room and switched my internet port. That somehow seemed to fix the issue. He also let me know that there were other issues at large going on in my building (so it could have nothing to do with your machine or things in your control!).

If that fails, maybe consider switching internet providers if that's an option for you. Else, just keep calling your ISP to send in more and more senior technicians until it gets resolved.

I'm hoping nobody actually has to resort to what I did to find the problem.

tl;dr: Give your ISP a call as the issue could be one with your network.

git config --global http.postBuffer 524288000

Work in my case - AWS code commit

I had the exact same problem while trying to setup a Gitlab pipeline executed by a Docker runner installed on a Raspberry Pi 4

Using nload to follow bandwidth usage within Docker runner container while pipeline was cloning the repo i saw the network usage dropped down to a few bytes per seconds..

After a some deeper investigations i figured out that the Raspberry temperature was too high and the network card start to dysfunction above 50° Celsius.

Adding a fan to my Raspberry solved the issue.

What I did is moved the dependencies list to the end of

#Pods for <app>

In Podfile. Like this:

    # Uncomment the next line to define a global platform for your project
    # platform :ios, '9.0'

    target '<app>' do
    # Comment the next line if you don't want to use dynamic frameworks

  # Pods for <app>

  target '<app>Tests' do
    inherit! :search_paths
    # Pods for testing

  target '<app>UITests' do
    inherit! :search_paths
    # Pods for testing

    pod 'Firebase/Core'
    pod 'Firebase/Database'


All these tips did not work for me, what worked was cloning over ssh rather that http

Questions with windows tag:

"Permission Denied" trying to run Python on Windows 10 A fatal error occurred while creating a TLS client credential. The internal error state is 10013 How to install OpenJDK 11 on Windows? I can't install pyaudio on Windows? How to solve "error: Microsoft Visual C++ 14.0 is required."? git clone: Authentication failed for <URL> How to avoid the "Windows Defender SmartScreen prevented an unrecognized app from starting warning" XCOPY: Overwrite all without prompt in BATCH Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory how to open Jupyter notebook in chrome on windows Tensorflow import error: No module named 'tensorflow' git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 bash: npm: command not found? Anaconda Installed but Cannot Launch Navigator AttributeError: module 'cv2.cv2' has no attribute 'createLBPHFaceRecognizer' How to install pandas from pip on windows cmd? 'ls' in CMD on Windows is not recognized Copy Files from Windows to the Ubuntu Subsystem Tensorflow r1.0 : could not a find a version that satisfies the requirement tensorflow Kill tomcat service running on any port, Windows python pip on Windows - command 'cl.exe' failed How to install pip3 on Windows? Mount current directory as a volume in Docker on Windows 10 Specifying Font and Size in HTML table Why Local Users and Groups is missing in Computer Management on Windows 10 Home? Command to run a .bat file How do I force Robocopy to overwrite files? Windows- Pyinstaller Error "failed to execute script " When App Clicked How to completely uninstall Android Studio from windows(v10)? Docker for Windows error: "Hardware assisted virtualization and data execution protection must be enabled in the BIOS" How do I kill the process currently using a port on localhost in Windows? Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 How to add a custom CA Root certificate to the CA Store used by pip in Windows? How to reset the use/password of jenkins on windows? npm ERR! Error: EPERM: operation not permitted, rename CMD (command prompt) can't go to the desktop Xampp-mysql - "Table doesn't exist in engine" #1932 Change drive in git bash for windows "OverflowError: Python int too large to convert to C long" on windows but not mac Visual studio code terminal, how to run a command with administrator rights? ImportError: cannot import name NUMPY_MKL Pip - Fatal error in launcher: Unable to create process using '"' Installing tensorflow with anaconda in windows Where does Anaconda Python install on Windows? PermissionError: [Errno 13] Permission denied How to restart a windows service using Task Scheduler How to install xgboost in Anaconda Python (Windows platform)? NPM stuck giving the same error EISDIR: Illegal operation on a directory, read at error (native) Can't access anaconda - path environment variable in windows Global npm install location on windows?

Questions with git tag:

Does the target directory for a git clone have to match the repo name? Git fatal: protocol 'https' is not supported Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) git clone: Authentication failed for <URL> destination path already exists and is not an empty directory SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 GitLab remote: HTTP Basic: Access denied and fatal Authentication How can I switch to another branch in git? VS 2017 Git Local Commit DB.lock error on every commit How to remove an unpushed outgoing commit in Visual Studio? How to know the git username and email saved during configuration? How to add a new project to Github using VS Code git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 fatal: ambiguous argument 'origin': unknown revision or path not in the working tree HTTP Basic: Access denied fatal: Authentication failed npm notice created a lockfile as package-lock.json. You should commit this file Do I commit the package-lock.json file created by npm 5? Abort a Git Merge key_load_public: invalid format git - remote add origin vs remote set-url origin Visual Studio 2017 - Git failed with a fatal error Get git branch name in Jenkins Pipeline/Jenkinsfile Changing the git user inside Visual Studio Code How to compare different branches in Visual Studio Code Git checkout - switching back to HEAD Clear git local cache Deleting a local branch with Git Rebuild Docker container on file changes Cloning specific branch How to add chmod permissions to file in Git? Git copy changes from one branch to another Git merge with force overwrite Project vs Repository in GitHub How to add a file to the last commit in git? Getting permission denied (public key) on gitlab Delete commit on gitlab gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0] Remove a modified file from pull request Updates were rejected because the tip of your current branch is behind its remote counterpart Can't push to the heroku How to discard local changes and pull latest from GitHub repository In Visual Studio Code How do I merge between two local branches? error: RPC failed; curl transfer closed with outstanding read data remaining Change drive in git bash for windows Checkout Jenkins Pipeline Git SCM with credentials? How to fix git error: RPC failed; curl 56 GnuTLS Trying to pull files from my Github repository: "refusing to merge unrelated histories" Visual Studio Code how to resolve merge conflicts with git? merge one local branch into another local branch Can't push to remote branch, cannot be resolved to branch

Questions with curl tag:

What is the incentive for curl to release the library for free? curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number Converting a POSTMAN request to Curl git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 How to post raw body data with curl? Curl : connection refused How to use the curl command in PowerShell? Curl to return http status code along with the response How to install php-curl in Ubuntu 16.04 curl: (35) SSL connect error Solving sslv3 alert handshake failure when trying to use a client certificate curl: (6) Could not resolve host: application How do I install the ext-curl extension with PHP 7? Ubuntu: Using curl to download an image Curl command without using cache Using client certificate in Curl command PHP: Call to undefined function: simplexml_load_string() Adding subscribers to a list using Mailchimp's API v3 Correct way to set Bearer token with CURL Making an API call in Python with an API that requires a bearer token cURL error 60: SSL certificate: unable to get local issuer certificate Upload Image using POST form data in Python-requests PHP - SSL certificate error: unable to get local issuer certificate How to use curl to get a GET request exactly same as using Chrome? Curl not recognized as an internal or external command, operable program or batch file Simulate a specific CURL in PostMan Display curl output in readable JSON format in Unix shell script pass JSON to HTTP POST Request Execute curl command within a Python script How to define the basic HTTP authentication using cURL correctly? Perform curl request in javascript? How to use Python to execute a cURL command? wget/curl large file from google drive curl: (6) Could not resolve host: google.com; Name or service not known curl: (60) SSL certificate problem: unable to get local issuer certificate how to get curl to output only http response body (json) and no other headers etc Unable to resolve "unable to get local issuer certificate" using git on Windows with self-signed certificate curl Failed to connect to localhost port 80 How to insert data into elasticsearch Basic HTTP and Bearer Token Authentication Creating a REST API using PHP Posting raw image data as multipart/form-data in curl Curl error: Operation timed out POST request send json data java HttpUrlConnection How to count items in JSON object using command line? Curl GET request with json parameter Curl and PHP - how can I pass a json through curl by PUT,POST,GET Curl error 60, SSL certificate issue: self signed certificate in certificate chain PHP cURL error code 60 Curl: Fix CURL (51) SSL error: no alternative certificate subject name matches

Questions with github tag:

Does the target directory for a git clone have to match the repo name? Issue in installing php7.2-mcrypt How can I switch to another branch in git? How to draw checkbox or tick mark in GitHub Markdown table? How to add a new project to Github using VS Code git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 How to add empty spaces into MD markdown readme on GitHub? key_load_public: invalid format git - remote add origin vs remote set-url origin Cloning specific branch How to upload folders on GitHub Git merge with force overwrite Project vs Repository in GitHub Install specific branch from github using Npm gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0] Remove a modified file from pull request What do raw.githubusercontent.com URLs represent? How to discard local changes and pull latest from GitHub repository Trying to pull files from my Github repository: "refusing to merge unrelated histories" Git - remote: Repository not found git status (nothing to commit, working directory clean), however with changes commited When does Git refresh the list of remote branches? How to remove commits from a pull request github: server certificate verification failed Visual Studio Code always asking for git credentials What I can do to resolve "1 commit behind master"? How to overcome "'aclocal-1.15' is missing on your system" warning? How do I connect to my existing Git repository using Visual Studio Code? How to download a folder from github? Git: How to remove proxy Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository." Jenkins - how to build a specific branch There is no tracking information for the current branch How to rename a directory/folder on GitHub website? Git pull till a particular commit Git Clone from GitHub over https with two-factor authentication error: pathspec 'test-branch' did not match any file(s) known to git How can I install a package with go get? How can I clone a private GitLab repository? Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists Copy a git repo without history GitHub: invalid username or password How to unmerge a Git merge? How to use private Github repo as npm dependency ! [rejected] master -> master (fetch first) How to remove a branch locally? How can I check out a GitHub pull request with git? How to resolve "git pull,fatal: unable to access 'https://github.com...\': Empty reply from server" Can you get the number of lines of code from a GitHub repository? Git: Installing Git in PATH with GitHub client for Windows

Questions with clone tag:

git clone error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 git: fatal: I don't handle protocol '??http' How to make a copy of an object in C# How create a new deep copy (clone) of a List<T>? "fatal: Not a git repository (or any of the parent directories)" from git status How to copy java.util.list Collection How to jQuery clone() and change id? Copying a HashMap in Java jquery clone div and append it after specific div jQuery Clone table row How to rebase local branch onto remote master Deep copy, shallow copy, clone How to clone an InputStream? Does calling clone() on an array also clone its contents? The difference between fork(), vfork(), exec() and clone() What is the difference between pull and clone in git? What are the differences between git branch, fork, fetch, merge, rebase and clone? Deep copy vs Shallow Copy List changes unexpectedly after assignment. How do I clone or copy it to prevent this? Clone() vs Copy constructor- which is recommended in java How to properly override clone method? Java: recommended solution for deep cloning/copying an instance How do I clone a range of array elements to a new array? Is it possible to clone html element objects in JavaScript / JQuery? How do I copy an object in Java? How do I correctly clone a JavaScript object? How to clone ArrayList and also clone its contents? MySQL: Cloning a MySQL database on the same MySql instance How do I clone a generic list in C#? How do I create a copy of an object in PHP? What is the best way to clone/deep copy a .NET generic Dictionary<string, T>? How do you do a deep copy of an object in .NET? What is the most efficient way to deep clone an object in JavaScript? Deep cloning objects How do you make a deep copy of an object?