“无法打开git-upload-pack” - 在Eclipse IDE中克隆项目

问题描述 投票:0回答:1

我正在Eclipse IDE中的Github中复制我的项目。输入所有访问数据后,会发生以下错误:

https://github.com/“COMPANY NAME”/“PROJECTNAME”.git:无法打开git-upload-pack

我已经添加了http.sslVerify = false - 没有用

我配置了RSA密钥 - 也没用

我使用:Windows 10 / Java 7 / Eclipse Luna Luna Service Release 2(4.4.2)

错误的更多细节

org.eclipse.jgit.api.errors.TransportException: 
https://github.com/"COMPANYNAME"/"PROJECTNAME".git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:196)
at 
org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/"COMPANYNAME"/"PROJECTNAME".git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:521)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:175)
... 3 more
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
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:475)
... 5 more

会话数据:

eclipse.buildId=4.4.2.M20150204-1700
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=pt_BR
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product 
org.eclipse.epp.package.jee.product
eclipse github egit
1个回答
1
投票

试试this answer到Salesforce Stack Exchange上的相关问题。它对我有用。

为了详细说明,GitHub最近(截至2018年2月8日)取消了对许多过时加密标准的支持。有关详细信息,请参阅this announcement

不幸的是,这个列表包括TLSv1,它是Java 7使用的默认TLS实现。我遇到了同样的问题,因为我在仍然使用Java 7的相当古老的Eclipse构建中通过EGit与GitHub连接,当然,它是明确设置的使用TLS1.0。我按照建议的步骤强制我的Java使用TLS1.1和1.2,这个问题神奇地解决了。

© www.soinside.com 2019 - 2024. All rights reserved.