Gitlab无法打开git-upload-pack错误

Lau*_*oux 13 eclipse egit gitlab

我几个月来一直在使用Gitlab而没有问题.但是,从昨天开始,我不能再从Eclipse IDE"到达"(获取,推送,...)Gitlab.

无论我是在我的公司工作(可能是代理问题)还是在家里工作.

我收到以下错误消息:

https://gitlab.com/XXX/XXX.git: 
    cannot open git-upload-pack
    cannot open git-upload-pack
Run Code Online (Sandbox Code Playgroud)

看看我的Eclipse .log,原因是:

Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
    at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
    at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
    at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:460)
    ... 10 more
Run Code Online (Sandbox Code Playgroud)

添加http.sslVerify=false我的Eclipse/Git配置没有帮助...

知道为什么会(突然)发生这种情况吗?

jgi*_*son 6

我遇到了与另一个Gitlab服务器类似的错误.我挖了它,发现服务器上所有可用的密码至少是256位.标准Oracle Java附带加密,对于某些算法,加密限制为128位.从Oracle 安装无限强度加密包之后,问题就消失了.

几乎忘了,无限强度套餐只在美国合法使用.如果你在美国之外,那么我认为OpenJDK会起作用.

  • 当我意识到我的一个Jenkins服务器无法从GitLab服务器克隆存储库时,我确实遇到了错误.尝试访问GitLab的任何Java程序都可能遇到此问题. (2认同)