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

Invoking another pipeline job from pipeline throws ClosedChannelException at end.

    Details

    • Similar Issues:

      Description

      We are experimenting with invoking another build from this build if present.  The second build runs and then the first build fails with this message.

       

      I am trying to understand what it means and where it is triggered to avoid it.  We are seeing problems with the load balancer in front of the kubernetes cluster where it runs cutting of after 50 seconds, but only if not accessing directly.   

       

      First of all, what does the exception tell me?  Second, has this been seen before?

       

      ```

      java.nio.channels.ClosedChannelException
      {{ Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 10.128.5.95/10.128.5.95:41676}}
      {{ at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)}}
      {{ at hudson.remoting.Request.call(Request.java:202)}}
      {{ at hudson.remoting.Channel.call(Channel.java:954)}}
      {{ at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)}}
      {{ at com.sun.proxy.$Proxy115.withRepository(Unknown Source)}}
      {{ at org.jenkinsci.plugins.gitclient.RemoteGitImpl.withRepository(RemoteGitImpl.java:237)}}
      {{ at hudson.plugins.git.GitSCM.printCommitMessageToLog(GitSCM.java:1252)}}
      {{ at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1225)}}
      {{ at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)}}
      {{ at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)}}
      {{ at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)}}
      {{ at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)}}
      {{ at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)}}
      {{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
      {{ Caused: hudson.remoting.RequestAbortedException}}
      {{ at hudson.remoting.Request.abort(Request.java:340)}}
      {{ at hudson.remoting.Channel.terminate(Channel.java:1038)}}
      {{ at org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:209)}}
      {{ at org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:221)}}
      {{ at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816)}}
      {{ at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)}}
      {{ at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:172)}}
      {{ at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:816)}}
      {{ at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)}}
      {{ at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:142)}}
      {{ at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)}}
      {{ at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)}}
      {{ at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)}}
      {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
      {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
      {{ at java.lang.Thread.run(Thread.java:748)}}

      ```

       

       

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          We prefer that question and answer sessions be done through the Jenkins chat system or the Jenkins user mailing list. That allows a much larger group of people to consider the question and potentially to assist with the question.

          I've not seen that exception when one job is started from another. JENKINS-45352 reports that there is an issue if the agent jar file was outdated (old versions were called slave.jar, newer versions are called agent.jar). Similar reports are also visible with older versions of Java 8 (before Java 8u161 as in JENKINS-49402).

          Since you didn't state the version of git client plugin and git plugin that you are using, you might also review the other reports related to the printCommitMessageToLog call.

          Show
          markewaite Mark Waite added a comment - We prefer that question and answer sessions be done through the Jenkins chat system or the Jenkins user mailing list. That allows a much larger group of people to consider the question and potentially to assist with the question. I've not seen that exception when one job is started from another. JENKINS-45352 reports that there is an issue if the agent jar file was outdated (old versions were called slave.jar , newer versions are called agent.jar ). Similar reports are also visible with older versions of Java 8 (before Java 8u161 as in JENKINS-49402 ). Since you didn't state the version of git client plugin and git plugin that you are using, you might also review the other reports related to the printCommitMessageToLog call .
          Hide
          markewaite Mark Waite added a comment -

          Closing as cannot reproduce. If you can provide instructions that others can use to consistently duplicate the problem, please provide them and reopen the issue.

          Show
          markewaite Mark Waite added a comment - Closing as cannot reproduce. If you can provide instructions that others can use to consistently duplicate the problem, please provide them and reopen the issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              m86194 Thorbjørn Andersen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: