git2r
git2r copied to clipboard
no TLS stream available
Hello, I was wondering if you could help me solve a an issue with no TLS stream. Everything was working fine yesterday, and I'm not sure if some configuration caused this? Any ideas?
I receive the error, after running any command pull()
Error in 'git2r_remote_fetch': there is no TLS stream available
My guess is that your libgit2 was not properly linked to OpenSSL when it was compiled.
See related issues https://github.com/libgit2/libgit2/issues/4147 and https://github.com/libgit2/libgit2/issues/3786
Do you know if you are using a system installation of libgit2 or if the bundled libgit2 was compiled during installation? If you're not sure, try un-installing and re-installing git2r.
For example, when I install git2r, I see the following message to alert me that it is using the bundled version of libgit2:
configure: Package dependency requirement 'libgit2 >= 0.26.0' could not be satisfied.
-----------------------------------------------------------------------
Unable to find the libgit2 library on this system. Building 'git2r'
using the bundled source of the libgit2 library.
And could you please also run and report the results from the following:
packageVersion("git2r")
git2r::libgit2_version()
git2r::libgit2_features()
For me, the following worked
apt-get update && apt-get install -y libgit2-dev
Then in R
remove.packages("git2r")
install.packages("git2r")