問(wèn)題描述
我已經(jīng)使用 Gitlab 幾個(gè)月了,沒(méi)有任何問(wèn)題.但是,從昨天開(kāi)始,我再也無(wú)法從我的 Eclipse IDE 中訪(fǎng)問(wèn)"(獲取、推送、...)Gitlab.
I have been using Gitlab without problems for a couple of months now. But, since yesterday, I can not "reach" (fetch, push,...) Gitlab from my Eclipse IDE anymore.
無(wú)論我是在公司工作(可能是代理問(wèn)題)還是在家工作.
No matter whether I'm working in my firm (could have been a proxy problem) or at home.
我收到以下錯(cuò)誤消息:
https://gitlab.com/XXX/XXX.git:
cannot open git-upload-pack
cannot open git-upload-pack
查看我的Eclipse .log
,原因是:
Looking at my Eclipse .log
, the cause is :
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
在我的 Eclipse/Git 配置中添加 http.sslVerify=false
沒(méi)有幫助...
Adding http.sslVerify=false
in my Eclipse/Git configuration did not help...
知道為什么會(huì)(突然)發(fā)生這種情況嗎?
Any idea why this is (suddenly) happening?
推薦答案
我在另一個(gè) Gitlab 服務(wù)器上遇到了類(lèi)似的錯(cuò)誤.我深入研究了它,發(fā)現(xiàn)服務(wù)器上所有可用的密碼至少是 256 位.標(biāo)準(zhǔn) Oracle Java 附帶的加密對(duì)于某些算法限制為 128 位.從 Oracle 安裝 無(wú)限強(qiáng)度加密包 后,問(wèn)題出現(xiàn)了離開(kāi).
I've encountered a similar error with another Gitlab server. I dug into it and discovered that all of the available ciphers on the server were at least 256 bits. Standard Oracle Java ships with crypto that's restricted to 128 bits for some algorithms. After installing the unlimited strength crypto package from Oracle the issue went away.
差點(diǎn)忘了,無(wú)限強(qiáng)度套餐僅在美國(guó)合法提供.如果您不在美國(guó),那么我認(rèn)為 OpenJDK 可以代替.
Almost forgot, the unlimited strength package is only legally available in the US. If you're outside of the US then I think that OpenJDK will work instead.
這篇關(guān)于Gitlab 無(wú)法打開(kāi) git-upload-pack 錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!