我正在使用IBM Toolkit v 10.0.0.7,并且已经根据所需的版本配置从eclipse市场安装了EGit插件。成功安装了EGit插件,并且可以看到透视图的“ Git”选项。
当我尝试从内部GitLab项目中克隆存储库时,请提供所需的信息(例如URL,凭据)后,单击“下一步”。如下所示,它在分支选择窗口中显示了运输错误。
Transport Error:
An error occurred while trying to contact https://git.repo/iib_test.git
See the error Log for details
Possible reasons:
-Incorrect URL
-No network connection (e.g. wrong proxy settings)
-SSL host could not be verified (set http.sslVerify=false in Git configuration)
我在同一台计算机上安装了git bash。我尝试使用git bash进行克隆,并且能够克隆GitLab存储库而没有任何错误。
我试图从IBM工具箱Git透视图窗口中打开已经克隆的git存储库。我能够浏览存储库并查看分支和版本。我还尝试使用Egit插件透视图更改文件并提交,我也能够提交。但是当我尝试推送到远程时,它会向我抛出与尝试克隆时相同的错误。
错误日志如下:
Severity: Error
Message: https://mygit.xxx.com/iib_test/pim_test.git: cannot open git-upload-pack
Exception Stack Trace:
org.eclipse.jgit.api.errors.TransportException: https://mygit.xxxxx.com/iib_test/pim_test.git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:221)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)
at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:100)
at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:341)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.jgit.errors.TransportException: https://mygit.xxxx.com/iib_test/pim_test.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:527)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:290)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:198)
... 4 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:208)
at java.net.SocketInputStream.read(SocketInputStream.java:134)
at com.ibm.jsse2.a.a(a.java:227)
at com.ibm.jsse2.a.a(a.java:269)
at com.ibm.jsse2.qc.a(qc.java:459)
at com.ibm.jsse2.qc.h(qc.java:275)
at com.ibm.jsse2.qc.a(qc.java:541)
at com.ibm.jsse2.qc.startHandshake(qc.java:89)
at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:173)
at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:63)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1314)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:15)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:190)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:465)
... 6 more
Session Data:
eclipse.buildId=4.2.2.M20140918-1444
java.fullversion=JRE 1.7.0 IBM J9 2.7 Windows 10 amd64-64 Compressed References 20160630_309914 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR3_20160630_1516_B309914
JIT - tr.r13.java_20160629_120282
GC - R27_Java727_SR3_20160630_1516_B309914_CMPRSS
J9CL - 20160630_309914
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -showlocation -product com.ibm.etools.msgbroker.tooling.ide tools_auto -showlocation -product com.ibm.etools.msgbroker.tooling.ide
Command-line arguments: -os win32 -ws win32 -arch x86_64 -showlocation -product com.ibm.etools.msgbroker.tooling.ide tools_auto -showlocation -product com.ibm.etools.msgbroker.tooling.ide
似乎Egit无法与GitLab项目URL建立连接。我们不需要代理来连接我们的Gitlab服务器。
我尝试了一些选项,例如在git配置中禁用ssl并使用http而不是https,但是它们都无法正常工作。
我只想使用Https协议从IBM工具包EGit透视图窗口克隆git存储库[出于安全原因,我们不使用ssh]。
感谢大家在解决此问题上的投入。
谢谢