Skip to main content

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
Unknown said…
Yes it working for me also
Anonymous said…
Thanks - It did work!!
Anonymous said…
it didnt working fr me
Anonymous said…
Not working
Anonymous said…
it does not work!!!!
Unknown said…
it is working Thanks man
Anonymous said…
Not working for me .. ubuntu 18.04
Adriano Silva said…
Thanks - It did work!!
Anonymous said…
Thanks, it's working
Anonymous said…
at 99% it gave the early eof error
Anonymous said…
getting :awk: fatal: cannot open file `/opt/stack/neutron/setup.cfg' for reading: No such file or directory