GIT-TF Не удалось получить принципал для учетных данных kerberos 5 (файл кэша учетных данных не найден)

Я пытаюсь настроить GIT-TF на OSX. У меня все настроено правильно, и сейчас я пытаюсь клонировать существующий репозиторий TFS в 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 ответ

Решение

Ваша проблема не в аутентификации, ваша проблема в том, что вы не можете связаться с сервером. Msgstr "Тайм-аут соединения указывает на то, что сервер не может быть достигнут.

Дважды проверьте URL-адрес, который вы используете для подключения, включая номер порта. Убедитесь, что на сервере открыта дыра в брандмауэре. Убедитесь, что вы можете подключиться из другого клиента TFS, например Visual Studio или Team Explorer Everywhere.

Другие вопросы по тегам