問題描述
我已經使用 Gitlab 幾個月了,沒有任何問題.但是,從昨天開始,我再也無法從我的 Eclipse IDE 中訪問"(獲取、推送、...)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.
無論我是在公司工作(可能是代理問題)還是在家工作.
No matter whether I'm working in my firm (could have been a proxy problem) or at home.
我收到以下錯誤消息:
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
沒有幫助...
Adding http.sslVerify=false
in my Eclipse/Git configuration did not help...
知道為什么會(突然)發生這種情況嗎?
Any idea why this is (suddenly) happening?
推薦答案
我在另一個 Gitlab 服務器上遇到了類似的錯誤.我深入研究了它,發現服務器上所有可用的密碼至少是 256 位.標準 Oracle Java 附帶的加密對于某些算法限制為 128 位.從 Oracle 安裝 無限強度加密包 后,問題出現了離開.
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.
差點忘了,無限強度套餐僅在美國合法提供.如果您不在美國,那么我認為 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.
這篇關于Gitlab 無法打開 git-upload-pack 錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!