java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers])

Jenkins JIRA | Joseph Hoppe | 8 months ago
  1. 0

    I have a couple projects working in Jenkins with TFS, but a number that also do not. I.e., this one fails: * Configure the project. Re-enter my TFS credentials to confirm that they are correct. * Wipe out my project's entire existing workspace just to try to make a better test. * Click build now. * Build fails with message below. However, all of the files have been downloaded from TFS - I can see them in the workspace. E:\Tech Consulting Jenkins\Jenkins\jobs\SilverlightMultiFileUploader\workspace\readme.txt FATAL: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at hudson.plugins.tfs.model.Server.execute(Server.java:157) at hudson.plugins.tfs.model.Project.getFiles(Project.java:256) at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:57) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:270) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2666) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.tfs.model.Server.execute(Server.java:153) ... 11 more Caused by: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:77) at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:50) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3650) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3691) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:875) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:498) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.close(UpdateLocalVersionQueue.java:428) at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1185) at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:900) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652) ... 18 more Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.UnauthorizedException: Authorization failure connecting to 'http://tfstta.int.[myemployer].com:8080/tfs/DefaultCollection/VersionControl/v5.0/repository.asmx' (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineHeadersForFederatedAuthURL(SOAPService.java:1191) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:716) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475) at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1169) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3634) ... 25 more Meanwhile, I repeated the steps on another project on the same Jenkins instance and it works fine. If I can upgrade or downgrade anything to get around this issue, please do let me know. I confirmed that this issue does not exist with the plugin versions 3.2 or 4.0. Will update if I find otherwise.

    Jenkins JIRA | 8 months ago | Joseph Hoppe
    java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers])
  2. 0

    I have a couple projects working in Jenkins with TFS, but a number that also do not. I.e., this one fails: * Configure the project. Re-enter my TFS credentials to confirm that they are correct. * Wipe out my project's entire existing workspace just to try to make a better test. * Click build now. * Build fails with message below. However, all of the files have been downloaded from TFS - I can see them in the workspace. E:\Tech Consulting Jenkins\Jenkins\jobs\SilverlightMultiFileUploader\workspace\readme.txt FATAL: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at hudson.plugins.tfs.model.Server.execute(Server.java:157) at hudson.plugins.tfs.model.Project.getFiles(Project.java:256) at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:57) at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:270) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2666) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60) at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.tfs.model.Server.execute(Server.java:153) ... 11 more Caused by: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:77) at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:50) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3650) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3691) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:875) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:498) at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.close(UpdateLocalVersionQueue.java:428) at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1185) at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:900) at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652) ... 18 more Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.UnauthorizedException: Authorization failure connecting to 'http://tfstta.int.[myemployer].com:8080/tfs/DefaultCollection/VersionControl/v5.0/repository.asmx' (authenticating as ten\u[7 numbers]) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineHeadersForFederatedAuthURL(SOAPService.java:1191) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:716) at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475) at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1169) at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3634) ... 25 more Meanwhile, I repeated the steps on another project on the same Jenkins instance and it works fine. If I can upgrade or downgrade anything to get around this issue, please do let me know. I confirmed that this issue does not exist with the plugin versions 3.2 or 4.0. Will update if I find otherwise.

    Jenkins JIRA | 8 months ago | Joseph Hoppe
    java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://tfstta.int.[myemployer].com:8080/ (authenticating as ten\u[7 numbers])
  3. 0

    [JENKINS-34168] TFS plugin downloads source but then reports TFSUnauthorizedException: Access denied connecting to TFS server - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server (authenticating as ten\u )
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [tfs-plugin] (JENKINS-34168) TFS plugin downloads source but then reports TFSUnauthorizedException: Access denied connecting to TFS server

    Google Groups | 8 months ago | jho...@gmail.com (JIRA)
    java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server <a href="http://tfstta.int.[myemployer].com:8080/" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">http://tfstta.int.[myemployer].com:8080/</a> (authenticating as ten\u<span class="error">[7 numbers]</span>)
  6. 0

    Error creating a new workspace

    Stack Overflow | 2 years ago | ShaggyInjun
    com.microsoft.tfs.core.ws.runtime.exceptions.UnauthorizedException: Authorization failure connecting to 'https://shaggyinjun.visualstudio.com/DefaultCollection/TeamFoundation/Administration/v3.0/LocationService.asmx' (authenticating as Windows Live ID\user)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.microsoft.tfs.core.ws.runtime.exceptions.UnauthorizedException

      Authorization failure connecting to 'http://tfstta.int.[myemployer].com:8080/tfs/DefaultCollection/VersionControl/v5.0/repository.asmx' (authenticating as ten\u[7 numbers])

      at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineHeadersForFederatedAuthURL()
    2. com.microsoft.tfs
      SOAPService.executeSOAPRequest
      1. com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineHeadersForFederatedAuthURL(SOAPService.java:1191)
      2. com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:716)
      3. com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:475)
      3 frames
    3. ms.tfs.versioncontrol
      _Repository5Soap12Service.updateLocalVersion
      1. ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1169)
      1 frame
    4. com.microsoft.tfs
      Workspace.get
      1. com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3634)
      2. com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3691)
      3. com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:875)
      4. com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:498)
      5. com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.close(UpdateLocalVersionQueue.java:428)
      6. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:1185)
      7. com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:900)
      8. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2652)
      9. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2527)
      10. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2515)
      11. com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2491)
      11 frames
    5. hudson.plugins.tfs
      GetFilesToWorkFolderCommand.call
      1. hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:60)
      2. hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17)
      2 frames
    6. Hudson :: Remoting Layer
      LocalChannel.call
      1. hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      1 frame
    7. hudson.plugins.tfs
      TeamFoundationServerScm.checkout
      1. hudson.plugins.tfs.model.Server.execute(Server.java:153)
      2. hudson.plugins.tfs.model.Project.getFiles(Project.java:256)
      3. hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:57)
      4. hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:270)
      4 frames
    8. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      2 frames
    9. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    10. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames