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

Gitlab cannot open git-upload-pack error(Gitlab 无法打开 git-upload-pack 错误)
本文介绍了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 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

egit plugin for Eclipse(Eclipse 的 egit 插件)
How to add GitLab repository in Eclipse?(如何在 Eclipse 中添加 GitLab 存储库?)
Eclipse#39;s Visual Studio Ctrl+Tab and Ctrl+Shift+Tab Equivalent(Eclipse 的 Visual Studio Ctrl+Tab 和 Ctrl+Shift+Tab 等效项)
How to prevent Eclipse from showing the opened file in package explorer(如何防止 Eclipse 在包资源管理器中显示打开的文件)
XML Parser Returning unexpected token error and null pointer exception(XML 解析器返回意外的令牌错误和空指针异常)
Java parsing XML document gives quot;Content not allowed in prolog.quot; error(Java 解析 XML 文档给出“Prolog 中不允许的内容.错误)