2015-04-22 198 views
0

我是Bluemix服务中的新成员。我找不到这个问题的确切解决方案。在Eclipse上克隆Git存储库(传输错误)

我在DevOps上的Bluemix和Git存储库上有一个Web应用程序。我正在开发Eclipse(包含Git和Bluemix插件),并对该项目进行了一些更改。现在,我在Local和Bluemix方面拥有最新版本的项目,并且需要更新存储库(仍然是启动器代码)。

作为第一步,我试图克隆Git仓库(在Eclipse上)。在填充URI和认证字段后,我收到如下所示的错误。我可以通过设置http.sslVerify=false来通过SSL错误,但无法解决其他问题。谢谢。

Trasport Error

错误日志:

eclipse.buildId=4.4.2.M20150204-1700 
java.version=1.8.0_45 
java.vendor=Oracle Corporation 
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=tr_TR 
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 

org.eclipse.egit.ui 
Error 
Thu Apr 23 12:46:33 EEST 2015 
https://hub.jazz.net/git/***/***: authentication not supported 

org.eclipse.jgit.api.errors.TransportException: https://hub.jazz.net/git/***/***: authentication not supported 
    at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223) 
    at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159) 
    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://hub.jazz.net/git/***/***: authentication not supported 
    at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:494) 
    at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) 
    at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:202) 
    ... 4 more 

注:寻找错误日志后,我认为这是一种基于身份验证问题。但是,我使用的是用于登录到Bluemix的电子邮件和密码。 顺便说一句,我在Git命令行上试了一下。它被成功克隆,提交并推送。我不明白为什么这个问题发生在Eclipse中。

回答

2

我刚刚从端到端进行了测试,没有出现任何问题。可能是暂时的?你能再试一次吗?

下面是我复制的步骤:

 
File/Import... 
Select dialog 
* Git/Projects from Git 
* click next 

Select Repository Source dialog 
* Clone URI 
* click next 

Source Git Repository dialog 
* from Settings page (e.g. https://hub.jazz.net/project/you/yourproject/settings/general) 
* copy the Git URL e.g. https://hub.jazz.net/git/you/yourproject 
(Host and Repository Path should populate) 
* populate User and Password with your IBM ID 
* click next 

Branch Selection dialog 
* (master should be selected) 
* click next 

Local Destination dialog 
* select a local destination 
* click next 

Select a wizard to use for importing projects dialog 
* (Import existing projects should be selected) 
* click finish 

等瞧!

如果错误地输入了Git URL,那么选择分支对话框将响应原始问题中描述的错误对话框。

+0

嗨,谢谢你的回答。我在“分支选择对话框”步骤中收到此错误,并且没有显示任何分支。 – samet

+0

啊,另一个线索......所以,我能够通过在Git URL中拼错项目名称来重新创建问题。你能否检查一下你是否正确地指定了Git URL?同样,请参阅上文了解如何在IDS中查找该值。 – christo4ferris

+0

是的,我直接从Bluemix页面复制它。它在Git Command Line上没有错误,但在Eclipse上没有错误。 – samet

1

如果您已将两个因子身份验证设置为ON,请检入Git配置文件。因为在那种情况下,当你从浏览器连接时,它会正确认证并连接,但是当你从eclipse中进行连接时,它只会检查正常的凭据(用户名,密码)并且无法进行身份验证。