Solved: Fix for Git clone failure due to GnuTLS recv error (-9)

My devstack installation was failing with an error reported by the GnuTLS module as shown below:

$ git clone https://github.com/openstack/horizon.git /opt/stack/horizon --branch master
Cloning into '/opt/stack/horizon'...
remote: Counting objects: 154213, done.
remote: Compressing objects: 100% (11/11), 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

The following Git config changes fixed the issue for me. Am hoping it will be useful for someone out there:

$ git config http.sslVerify false
$ git config --global http.postBuffer 1048576000

Comments

Anonymous said…
Getting fatal: not in git directory
Unknown said…
try

git config --global http.sslVerify false
Anonymous said…
Thanks its working
Nirav Dhanorkar said…
Yes it working for me also

Popular posts from this blog

QuickBite: Tap Vs Veth

Creating Juniper VSRX 2.0 VM on Virtualbox