Git Error while cloning large repo Error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Abhishek Dana
2 min readJun 23, 2021
I got this error while cloning large repo

Hello there, So without wasting time let me get you to the problem here the error comes when user tries to clone large repo to the system and it may take almost 15 min or longer, and all of the sudden we see the above error.

The above error states that git was unable to clone the large repo, but to unexpected disconnection of network to your system, but thats not the case, as you see the network is working and still you are unable to clone the large repo.

Solutions:

There are possible three solutions to make it work…

  1. Increase the post buffer size using the above command.
git config http.postBuffer 52428800

after running the above command gives error like

fatal: not in a git directory

Then first

git init

and try again to increase git postbuffer after increasing just clone the repo.
If you are unable to clone the repo, try another solution

2. Switch to different network and try.

There are chances that your network might fluctuate in between which might not give proper bandwidth to connect to git and it makes error in cloning.

If the above solution also doesn’t work the final and working solution is..

3. Download VPN and try

Download any vpn from any provider and try again it might not work for first time, try again, in second it will work.

The article is based on true solutions, and workaround was found in third solution. Please check all steps so that there wont be any confusion.

That’s it, hope my solutions work for your problem.

--

--

Abhishek Dana
0 Followers

Software Engineer At Hero Vired working as mobile and web application developer, passionate about my work, a skilled developer with years of experience in field