VCS root keeps return 401 unauthorized error when connecting to TFS2013 GIT

Hi,
We are using TeamCity to do CI against TFS2013 GIT (on-premise installation). A problem is that we are unable to make a VCS root to detect new commits. We keep getting the error pasted below.
VCS configuration:
  - Authentication method: Password.
  - We tried with entering username and password on the fields, or put username password directly on the url, tried username with and without domain. All yielded the same error.

It is weird that TeamCity can detect a new changeset on the server whose id is "4c013f7e812f0c51bb57fd4713fb587fbf305e16" but fails to do further action. I checked a similar post at http://devnet.jetbrains.com/message/5503139 but it doesn't seem helpful. Basic authentication is enabled on the server.

Can anyone help me resolve this issue? It has taken us so much time for such an easy task :(

Thank you in advance,
Thuan.


[2014-05-09 17:33:24,502]   INFO [ical executor 4] -      jetbrains.buildServer.VCS - Collecting changes from VCS root "ProductVCS" {instance id=223, parent internal id=10, parent id=ProductVCS, description: "https://example.com/tfs/_git/Product#master"}, state RepositoryStateImpl{defaultBranch=refs/heads/master,branchRevisions={refs/heads/master: 4c013f7e812f0c51bb57fd4713fb587fbf305e16}} to VCS root "ProductVCS" {instance id=226, parent internal id=10, parent id=ProductVCS, description: "https://example.com/tfs/_git/Product#master"}, state RepositoryStateImpl{defaultBranch=refs/heads/master,branchRevisions={refs/heads/master: 4c013f7e812f0c51bb57fd4713fb587fbf305e16}}

[2014-05-09 17:33:27,049]   WARN [ical executor 4] -      jetbrains.buildServer.VCS - Error occurred on attempt to collect changes from VCS root "ProductVCS" {instance id=223, parent internal id=10, parent id=ProductVCS, description: "https://example.com/tfs/_git/Product#master"}, state RepositoryStateImpl{defaultBranch=refs/heads/master,branchRevisions={refs/heads/master: 4c013f7e812f0c51bb57fd4713fb587fbf305e16}} to VCS root "ProductVCS" {instance id=226, parent internal id=10, parent id=ProductVCS, description: "https://example.com/tfs/_git/Product#master"}, state RepositoryStateImpl{defaultBranch=refs/heads/master,branchRevisions={refs/heads/master: 4c013f7e812f0c51bb57fd4713fb587fbf305e16}} by combined checkout rule: +:=> (jetbrains.buildServer.vcs.VcsException: 'git fetch' command failed.
stderr: https://example.com/tfs/_git/Product: 401 Unauthorized)

[2014-05-09 17:33:27,050]   WARN [ical executor 4] - cs.ConnectionStateReporterImpl - Unable to collect changes for [ProductDev :: Product4.2dev {id=ProductDev_Product42dev, internal id=bt9}]: Error collecting changes for VCS repository '"ProductVCS" {instance id=226, parent internal id=10, parent id=ProductVCS, description: "https://example.com/tfs/_git/Product#master"}'
'git fetch' command failed.
stderr: https://example.com/tfs/_git/Product: 401 Unauthorized

4 comments
Comment actions Permalink

Hi, what TeamCity version do you use?

0
Comment actions Permalink

Hi Neverov,
How could I forget to mention it? I'm using TeamCity version 8.1.1.
Thuan.

0
Comment actions Permalink

Please install the #snapshot-17 build of git-plugin (http://teamcity.jetbrains.com/viewType.html?buildTypeId=TeamCityPluginsByJetBrains_Git_JetBrainsGitPluginTeamCity81x&tab=buildTypeStatusDiv&branch_TeamCityPluginsByJetBrains_Git=__all_branches__), it contains an experimental support for NTLM. To install it put the zip from the build's artifacts into <TeamCity data dir>/plugins and restart the server. Let me know if it helps.

0
Comment actions Permalink

Thank you :) The plugin helps. It is working well now. I will let you know if I find any other issues with the plugin.

0

Please sign in to leave a comment.