5

I tried git submodule update --init --recursive

and got following error

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function. fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

My OS is window 10 and I'm using docker for windows. Docker images is ubuntu:16.04

JY Choe
  • 53
  • 1
  • 1
  • 4
  • 1
    Possible duplicate of [git error: RPC failed; curl 56 GnuTLS](https://stackoverflow.com/questions/38378914/git-error-rpc-failed-curl-56-gnutls) – kenorb Apr 26 '18 at 23:18

2 Answers2

2

Looks like you are missing openssl package, as another option could be network issue.

sshepel
  • 860
  • 1
  • 9
  • 16
  • I have openssl package installed, and using mobile's internet through wifi-hotspot, can't fix this issue though I have same connection day before. I did reset date and time after taking cmos-battery out, because of not turning PC on, can you suggest something? – GD- Ganesh Deshmukh Apr 10 '20 at 14:34
0

It's not exactly the same error code, but one response to this similar issue recommends setting large buffer sizes in the git global config settings;

  git config --global http.postBuffer 524288000  
  git config --global https.postBuffer 524288000

This worked for me to overcome a similar error as yours, trying to clone the cppcheck repo off GitHub;

enter code here`remote: Counting objects: 100% (325/325), done.
remote: Compressing objects: 100% (159/159), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Tim Jones
  • 1
  • 1