gert icon indicating copy to clipboard operation
gert copied to clipboard

clone sometimes randomly hangs on macos

Open jeroen opened this issue 2 years ago • 6 comments

On MacOS, running this a few times will eventually randomly hang at the last "object":

> gert::git_clone("https://github.com/hadley/tidytext.git", tempfile())
Transferred 9311 of 9312 objects...

Sometimes we see: Error in libgit2::git_clone : SecureTransport error: (null) which suggests a problem in the MacOS TLS.

Doesn't happen on Linux afaict.

cc @hadley

jeroen avatar Oct 27 '22 14:10 jeroen

But gert::git_clone("[email protected]:hadley/tidytext.git", tempfile()) seems to work (at least I tried it five times and they all succeeded)

hadley avatar Oct 27 '22 15:10 hadley

I tried this at @hadley's request. The first attempt just works and the second remains hung as I type this.

> gert::git_clone("https://github.com/hadley/tidytext.git", tempfile())
Transferred 9312 of 9312 objects...done!
Checked out 143 of 143 commits... done!
> gert::git_clone("https://github.com/hadley/tidytext.git", tempfile())
Transferred 9311 of 9312 objects...

Update! It failed.

Transferred 9311 of 9312 objects...Error in libgit2::git_clone : 
  SecureTransport error: connection closed via error

jennybc avatar Oct 27 '22 15:10 jennybc

@jennybc thanks, which version and architecture of macos do you run?

jeroen avatar Oct 27 '22 15:10 jeroen

I swear I'm going to update my OS soon :see_no_evil:

System Version: macOS 11.7 (20G817)
Kernel Version: Darwin 20.6.0
~/rrr/httr2 % uname -m                                                            
x86_64

jennybc avatar Oct 27 '22 15:10 jennybc

I have created a reproducible example in C (without R) and reported it upstream ☝️

jeroen avatar Oct 27 '22 20:10 jeroen

Thanks!!

hadley avatar Oct 27 '22 20:10 hadley