Solved git clone fails with "SSL_read: SSL_ERROR_SYSCALL, errno 54"

I've been trying to clone the FreeBSD src tree, and I'm encountering the following error:

error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed


I've tried various solutions. The main one I've seen is to increase the post buffer size (example below):

git config --global http.postBuffer 524288000

This didn't work and nor did further increasing the buffer size. Additionally, I tried cloning the repo over ssh instead of http and using svn with similar results. This seems to indicate that there is a problem outside the scope of source control. I suspect there may be an issue with my network/firewall configuration, but I am still new to FreeBSD so it may be another problem entirely.

Any help is much appreciated. Please let me know if there is any further info I can provide.
 
In order for the SSL certificate to get verified you're going to need to install security/ca_root_nss. That package contains the internet root CA certificates.
 
Couple of updates:
I was able to checkout the freebsd src tree from the freebsd svn tree (but not from github). Also, I upgraded to 12.0-STABLE and the problem resolved itself and was able to clone large repos from github. So the issue is resolved, but I don't really understand what fixed it. Can anyone point to a revision that would have fixed this?
 
Back
Top