Gitlab cannot open git-upload-pack error(Gitlab 无法打开 git-upload-pack 错误)
问题描述
我已经使用 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 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Gitlab 无法打开 git-upload-pack 错误
基础教程推荐
- 如何强制对超级方法进行多态调用? 2022-01-01
- 如何在不安装整个 WTP 包的情况下将 Tomcat 8 添加到 Eclipse Kepler 2022-01-01
- 如何使用 Eclipse 检查调试符号状态? 2022-01-01
- Java 中保存最后 N 个元素的大小受限队列 2022-01-01
- 如何使用 Stream 在集合中拆分奇数和偶数以及两者的总和 2022-01-01
- 如何对 HashSet 进行排序? 2022-01-01
- 由于对所需库 rt.jar 的限制,对类的访问限制? 2022-01-01
- 在螺旋中写一个字符串 2022-01-01
- 首次使用 Hadoop,MapReduce Job 不运行 Reduce Phase 2022-01-01
- Spring Boot Freemarker从2.2.0升级失败 2022-01-01