-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TLS handshake timeout for hub clone #2321
Comments
Thank you for sharing. Does your Enterprise instance require a custom SSL certificate to access? See #852 for more info. You can check this by navigating to The error message comes from Go, not hub, and basically says that something went wrong performing the TLS handshake for |
I opened the certificate detail but how do you tell if it is a custom certificate? |
It looks pretty much the same as yours, except for that the CA is DigiCert Global Root CA |
Then I guess the certificate is not the problem. Can you access your GHE via curl? I don't really know what else to suggest or how to fix this. Hub doesn't handle connectivity; it's up to the underlying Go implementation. |
@larry0123du The current TLS handshake timeout is 10s: https://github.com/github/hub/blob/d492aba0de0c6d0d45ba252ca7ac8868c2e4604c/github/http.go#L174 You can try to edit this value, compile hub on your machine and check if that helped. |
Will try this when I get the chance |
I'm running into the same issue when trying to run multiple (5) I'm working on a python script that automatically creates security PR's and I'm trying to parallelize the script. When I ran everything sequentially, everything worked fine, but running in parallel, now it fails. I'm trying to run my script against Is there any way to manually configure the |
It requires a recompile for now. Try building hub yourself with changed configuration and if it fixes it, we can consider making this configurable. |
This was likely caused by a known Go issue that was patched just yesterday golang/go#19561 (comment) It would affect macOS users who 1) had many extra certificates with custom trust settings in their Keychain and 2) would try to run a Go program that was compiled with CGO disabled (e.g. cross-compiled for macOS on Linux). Until the next Go release, you might work around it by either cleaning up unnecessary custom certificates from your Keychan or by compiling hub from source on your own machine. |
I am trying to set hub up with github enterprise and my setup is as follows:
.zshrc:
(the GHE hostname is coherent with the output of
)
.config/hub:
The output of
was
Could you please shed some light on what might be the cause of this? Thanks.
The text was updated successfully, but these errors were encountered: