Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34679

com.microsoft.tfs.core.exceptions.HTTPProxyUnauthorizedException: Access denied connecting to HTTP proxy XXX:3128 (no credentials were supplied)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • tfs-plugin
    • None

      Hi,

      Jenkins version : 2.1
      TFS plugin version : 4.1

      I'm using TFS plugin in order to manage Git reposiroty hosted into VSTS.

      I've configured Jenkins proxy into advanced panel from plugin management but it seems than proxy credentials are not tooked in consideration.

      Full error message:
      ??FATAL: com.microsoft.tfs.core.exceptions.HTTPProxyUnauthorizedException: Access denied connecting to HTTP proxy XXX:3128 (no credentials were supplied)
      java.lang.RuntimeException: com.microsoft.tfs.core.exceptions.HTTPProxyUnauthorizedException: Access denied connecting to HTTP proxy XXX:3128 (no credentials were supplied)
      at hudson.plugins.tfs.model.Server.execute(Server.java:157)
      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:311)
      at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:260)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      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: com.microsoft.tfs.core.exceptions.HTTPProxyUnauthorizedException: Access denied connecting to HTTP proxy XXX:3128 (no credentials were supplied)
      at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:81)
      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.getWebService(TFSConnection.java:894)
      at com.microsoft.tfs.core.config.client.DefaultClientFactory$7.newClient(DefaultClientFactory.java:239)
      at com.microsoft.tfs.core.config.client.DefaultClientFactory.newClient(DefaultClientFactory.java:98)
      at com.microsoft.tfs.core.TFSConnection.getClient(TFSConnection.java:1508)
      at com.microsoft.tfs.core.TFSTeamProjectCollection.getVersionControlClient(TFSTeamProjectCollection.java:377)
      at hudson.plugins.tfs.model.Server.getVersionControlClient(Server.java:142)
      at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:56)
      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:153)
      ... 13 more
      Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.ProxyUnauthorizedException: Authorization failure connecting to proxy server 'XXX:3128' (no credentials were supplied)
      at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:718)
      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)
      ... 29 more
      Finished: FAILURE??

      NB: i tried to deactivate the proxy with server URL to * but TFS tried to use the proxy anyway.
      Ty a lot for your feedback

            flaville florent laville
            flaville florent laville
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: