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

TFVC Connection reset Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • tfs-plugin
    • None
    • 2.254

      Hi,

      We are using Jenkins v2.254 with Team Foundation Server Plug-in v5.157.1

      Sometimes slave agents having problems with build these error;

       
      FATAL: com.microsoft.tfs.core.exceptions.TECoreException: com.ctc.wstx.exc.WstxIOException: Connection reset
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at java.io.BufferedInputStream.fill(Unknown Source)
      at java.io.BufferedInputStream.read1(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at com.microsoft.tfs.core.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:202)
      at java.io.FilterInputStream.read(Unknown Source)
      at com.microsoft.tfs.core.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:116)
      at java.util.zip.InflaterInputStream.fill(Unknown Source)
      at java.util.zip.InflaterInputStream.read(Unknown Source)
      at java.util.zip.GZIPInputStream.read(Unknown Source)
      at java.io.FilterInputStream.read(Unknown Source)
      at com.microsoft.tfs.core.ws.runtime.client.TraceInputStream.read(TraceInputStream.java:53)
      at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365)
      at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
      at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
      at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
      at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046)
      at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1796)
      at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1756)
      at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2981)
      at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2936)
      at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848)
      at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
      Caused: com.ctc.wstx.exc.WstxIOException: Connection reset
      at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708)
      at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
      at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
      at ms.tfs.versioncontrol.clientservices._03._Repository5Soap_GetResponse.readFromElement(_Repository5Soap_GetResponse.java:109)
      at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service$2.readSOAPResponse(_Repository5Soap12Service.java:116)
      at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:613)
      Caused: com.microsoft.tfs.core.ws.runtime.exceptions.InvalidServerResponseException
      at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:616)
      at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:444)
      at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.get(_Repository5Soap12Service.java:109)
      at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.get(WebServiceLayer.java:941)
      Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 172.19.68.200/172.19.68.200:1080
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
      at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
      at hudson.remoting.Channel.call(Channel.java:1001)
      at hudson.plugins.tfs.model.Server.execute(Server.java:233)
      at hudson.plugins.tfs.model.Project.getFiles(Project.java:264)
      at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:63)
      at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
      at hudson.scm.SCM.checkout(SCM.java:505)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1894)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)
      Caused: com.microsoft.tfs.core.exceptions.TECoreException: com.ctc.wstx.exc.WstxIOException: Connection reset
      at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:92)
      at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:43)
      at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.get(WebServiceLayer.java:980)
      at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayerLocalWorkspaces.get(WebServiceLayerLocalWorkspaces.java:760)
      at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2434)
      at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2341)
      at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2331)
      at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2308)
      at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:72)
      at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:18)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:375)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:118)
      at java.lang.Thread.run(Unknown Source)
      Caused: java.lang.RuntimeException
      at hudson.plugins.tfs.model.Server.execute(Server.java:237)
      at hudson.plugins.tfs.model.Project.getFiles(Project.java:264)
      at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:63)
      at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
      at hudson.scm.SCM.checkout(SCM.java:505)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1894)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)
      Email was triggered for: Script - After Build

       

      Restarting slave or restarting jenkins service on windows helps sometimes but we couldn't find a proper solution. Could you please help us about this situation?

       

      Thank you in advance.

            redsolo redsolo
            burakay Burak Aydın
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: