[JIRA] (JENKINS-40504) Access denied connecting to TFS server

458 views
Skip to first unread message

sureshprsnll@gmail.com (JIRA)

unread,
Dec 16, 2016, 6:25:02 AM12/16/16
to jenkinsc...@googlegroups.com
Suresh Nagarajan created an issue
 
Jenkins / Task JENKINS-40504
Access denied connecting to TFS server
Issue Type: Task Task
Assignee: redsolo
Components: tfs-plugin
Created: 2016/Dec/16 11:24 AM
Environment: Jenkins ver. 2.19.4
windows servr 2008
Chrome
TFS 5.2.1
Priority: Minor Minor
Reporter: Suresh Nagarajan

After configuring Collection URL Test Connection is Succeeded Via SOAP API
Mange Jenkins -> Configure System -> TFS/Team Services

Where as while running my build am getting error message as follows

Building in workspace C:\Program Files (x86)\Jenkins\workspace\InitialConfiguration
Querying for remote changeset at '$/Portals/Dev/path' as of 'D2016-12-16T11:02:53Z'...
FATAL: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://servername:8080/ (authenticating as user...@companyname.com)
java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://servername:8080/ (authenticating as user...@companyname.com)
at hudson.plugins.tfs.model.Server.execute(Server.java:226)
at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:272)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:268)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:284)
at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:359)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:308)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: com.microsoft.tfs.core.exceptions.TFSUnauthorizedException: Access denied connecting to TFS server http://servername:8080/ (authenticating as user...@companyname.com)
at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:72)
at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:43)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.queryHistory(WebServiceLayer.java:1589)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayerLocalWorkspaces.queryHistory(WebServiceLayerLocalWorkspaces.java:1254)
at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.queryHistory(VersionControlClient.java:4264)
at hudson.plugins.tfs.model.MockableVersionControlClient.queryHistory(MockableVersionControlClient.java:254)
at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:65)
at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:33)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.plugins.tfs.model.Server.execute(Server.java:222)
... 13 more
Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.UnauthorizedException: Authorization failure connecting to 'http://tfsca2:8080/tfs/CarePro/VersionControl/v1.0/repository.asmx' (authenticating as user...@companyname.com)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineHeadersForFederatedAuthURL(SOAPService.java:1064)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:649)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:444)
at ms.tfs.versioncontrol.clientservices._03._RepositorySoap12Service.queryHistory(_RepositorySoap12Service.java:1503)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.queryHistory(WebServiceLayer.java:1573)
... 20 more

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

olivier.dagenais@gmail.com (JIRA)

unread,
Dec 22, 2016, 10:38:02 PM12/22/16
to jenkinsc...@googlegroups.com
Olivier Dagenais commented on Task JENKINS-40504
 
Re: Access denied connecting to TFS server

Suresh Nagarajan: One of the lower stack frames calls out an UnauthorizedException, which suggests that while the account you are using is able to connect to the TFS server, it may not have enough permissions to read from the Team Project Collection.

Can you confirm that you are able to log on as the specified user using a web browser and browse to the $/Portals/Dev/path folder in the CarePro collection?

Thanks!
- Oli

olivier.dagenais@gmail.com (JIRA)

unread,
Dec 22, 2016, 10:38:03 PM12/22/16
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to Olivier Dagenais
 
Change By: Olivier Dagenais
Assignee: redsolo Olivier Dagenais

olivier.dagenais@gmail.com (JIRA)

unread,
Dec 22, 2016, 10:39:01 PM12/22/16
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to Suresh Nagarajan
 

Please re-assign to me with your answer.

Change By: Olivier Dagenais
Assignee: Olivier Dagenais Suresh Nagarajan

sureshprsnll@gmail.com (JIRA)

unread,
Dec 23, 2016, 2:53:01 AM12/23/16
to jenkinsc...@googlegroups.com
Suresh Nagarajan commented on Task JENKINS-40504
 
Re: Access denied connecting to TFS server

Thanks Oli for your response,

For the above issue i do not have enough permission, Then I have asked admin to give my self to have enough permission, now i can able to access.

olivier.dagenais@gmail.com (JIRA)

unread,
Jan 14, 2017, 3:40:01 PM1/14/17
to jenkinsc...@googlegroups.com
Olivier Dagenais closed an issue as Not A Defect
 
Change By: Olivier Dagenais
Status: Resolved Closed

olivier.dagenais@gmail.com (JIRA)

unread,
Jan 14, 2017, 3:40:02 PM1/14/17
to jenkinsc...@googlegroups.com
Olivier Dagenais resolved as Not A Defect
 

Thank you for confirming the issue was security-related.

Change By: Olivier Dagenais
Status: Open Resolved
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages