GIT-TF无法获得kerberos 5凭证的主体(未找到凭证缓存文件)

时间:2014-01-06 16:43:13

标签: git tfs git-tf

我正在尝试在osx上设置git-tf。我已经正确配置了所有内容,现在正尝试将现有的TFS repo克隆到git-tf。

我正在运行以下命令:

git tf clone https://tfs-url.net/tfs $/path/to/workspaceOrWhateverTFSCallsIt

我输入了用户名和密码,但我总是收到一条超时消息:

Connecting to TFS...
git-tf: connect timed out

即使设置了--verbose标志。即使我为un / pw组合输入完全废话。很方便。

在日志中我得到了这个:

2014-01-06 16:32:48,139 INFO  [main] (com.microsoft.tfs.jni.loader.NativeLoader) Loaded /Users/wayne/Git-Tf/native/macosx/libnative_auth.jnilib from user-specified directory
2014-01-06 16:32:48,140 INFO  [main] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Loaded GSSAPI library: libgssapi_krb5.dylib
2014-01-06 16:32:48,155 WARN  [main] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Could not get principal for kerberos 5 credentials (No credentials cache file found)
2014-01-06 16:32:48,159 WARN  [main] (com.microsoft.tfs.jni.natives.NativeAuthMethods) Could not get principal for kerberos 5 credentials (No credentials cache file found)
2014-01-06 16:32:48,173 INFO  [main] (com.microsoft.gittf.client.clc.commands.PullCommand) Default credentials are not available for authentication (no ticket)
2014-01-06 16:33:00,760 INFO  [main] (com.microsoft.tfs.jni.loader.NativeLoader) Loaded /Users/wayne/Git-Tf/native/macosx/libnative_console.jnilib from user-specified directory
2014-01-06 16:33:06,091 INFO  [main] (com.microsoft.tfs.jni.loader.NativeLoader) Loaded /Users/wayne/Git-Tf/native/macosx/libnative_misc.jnilib from user-specified directory
2014-01-06 16:33:06,100 INFO  [main] (com.microsoft.tfs.core.config.httpclient.DefaultHTTPClientFactory) HttpClient configured for https://tfs-mobile.ocseths.net/tfs, authenticating as DEV01\AX81dev
2014-01-06 16:33:37,045 WARN  [main] (com.microsoft.tfs.core.TFSTeamProjectCollection) Error getting data provider
com.microsoft.tfs.core.exceptions.TECoreException: connect timed out
    at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:105)
    at com.microsoft.tfs.core.exceptions.mappers.RegistrationExceptionMapper.map(RegistrationExceptionMapper.java:23)
    at com.microsoft.tfs.core.clients.registration.RegistrationData.newFromServer(RegistrationData.java:70)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationData(RegistrationClient.java:645)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:151)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:135)
    at com.microsoft.tfs.core.PreFrameworkServerDataProvider.findServiceLocation(PreFrameworkServerDataProvider.java:289)
    at com.microsoft.tfs.core.PreFrameworkServerDataProvider.locationForCurrentConnection(PreFrameworkServerDataProvider.java:264)
    at com.microsoft.tfs.core.TFSTeamProjectCollection.getServerDataProvider(TFSTeamProjectCollection.java:177)
    at com.microsoft.tfs.core.TFSConnection.ensureAuthenticated(TFSConnection.java:739)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:400)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:372)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:358)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getVersionControlClient(Command.java:520)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getVersionControlService(Command.java:538)
    at com.microsoft.gittf.client.clc.commands.PullCommand.run(PullCommand.java:154)
    at com.microsoft.gittf.client.clc.Main.main(Main.java:328)
Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.TransportException: connect timed out
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:743)
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475)
    at ms.tfs.services.registration._03._RegistrationSoap12Service.getRegistrationEntries(_RegistrationSoap12Service.java:105)
    at com.microsoft.tfs.core.clients.registration.RegistrationData.newFromServer(RegistrationData.java:65)
    ... 14 more
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
    at com.microsoft.tfs.core.config.httpclient.internal.DefaultSSLProtocolSocketFactory.createSocket(DefaultSSLProtocolSocketFactory.java:77)
    at com.microsoft.tfs.core.httpclient.HttpConnection.open(HttpConnection.java:862)
    at com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1690)
    at com.microsoft.tfs.core.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:495)
    at com.microsoft.tfs.core.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:197)
    at com.microsoft.tfs.core.httpclient.HttpClient.executeMethod(HttpClient.java:464)
    at com.microsoft.tfs.core.httpclient.HttpClient.executeMethod(HttpClient.java:376)
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:590)
    ... 17 more
2014-01-06 16:33:37,048 WARN  [main] (git-tf) Error executing command: pull
com.microsoft.tfs.core.exceptions.TECoreException: connect timed out
    at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:105)
    at com.microsoft.tfs.core.exceptions.mappers.RegistrationExceptionMapper.map(RegistrationExceptionMapper.java:23)
    at com.microsoft.tfs.core.clients.registration.RegistrationData.newFromServer(RegistrationData.java:70)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationData(RegistrationClient.java:645)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:151)
    at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:135)
    at com.microsoft.tfs.core.PreFrameworkServerDataProvider.findServiceLocation(PreFrameworkServerDataProvider.java:289)
    at com.microsoft.tfs.core.PreFrameworkServerDataProvider.locationForCurrentConnection(PreFrameworkServerDataProvider.java:264)
    at com.microsoft.tfs.core.TFSTeamProjectCollection.getServerDataProvider(TFSTeamProjectCollection.java:177)
    at com.microsoft.tfs.core.TFSConnection.ensureAuthenticated(TFSConnection.java:739)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:400)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:372)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:358)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getVersionControlClient(Command.java:520)
    at com.microsoft.gittf.client.clc.commands.framework.Command.getVersionControlService(Command.java:538)
    at com.microsoft.gittf.client.clc.commands.PullCommand.run(PullCommand.java:154)
    at com.microsoft.gittf.client.clc.Main.main(Main.java:328)
Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.TransportException: connect timed out
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:743)
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475)
    at ms.tfs.services.registration._03._RegistrationSoap12Service.getRegistrationEntries(_RegistrationSoap12Service.java:105)
    at com.microsoft.tfs.core.clients.registration.RegistrationData.newFromServer(RegistrationData.java:65)
    ... 14 more
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
    at com.microsoft.tfs.core.config.httpclient.internal.DefaultSSLProtocolSocketFactory.createSocket(DefaultSSLProtocolSocketFactory.java:77)
    at com.microsoft.tfs.core.httpclient.HttpConnection.open(HttpConnection.java:862)
    at com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1690)
    at com.microsoft.tfs.core.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:495)
    at com.microsoft.tfs.core.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:197)
    at com.microsoft.tfs.core.httpclient.HttpClient.executeMethod(HttpClient.java:464)
    at com.microsoft.tfs.core.httpclient.HttpClient.executeMethod(HttpClient.java:376)
    at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:590)
    ... 17 more

我是否需要在TFS端进行任何操作以允许我通过git-tf进行身份验证?

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

您的问题不是身份验证,您的问题是您无法访问服务器。 “连接超时表示无法访问服务器。

仔细检查用于连接的URL,包括端口号。确保服务器在防火墙中打开了一个孔。确保您可以从其他TFS客户端进行连接,例如Visual Studio或Team Explorer Everywhere。