[JIRA] (JENKINS-61922) Invoking another pipeline job from pipeline throws ClosedChannelException at end.

5 views
Skip to first unread message

tande@tdc.dk (JIRA)

unread,
Apr 15, 2020, 3:49:02 PM4/15/20
to jenkinsc...@googlegroups.com
Thorbjørn Andersen created an issue
 
Jenkins / Bug JENKINS-61922
Invoking another pipeline job from pipeline throws ClosedChannelException at end.
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-plugin, pipeline
Created: 2020-04-15 19:48
Priority: Minor Minor
Reporter: Thorbjørn Andersen

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)}}

```

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 15, 2020, 4:12:03 PM4/15/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 15, 2020, 4:20:04 PM4/15/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-61922
 
Re: Invoking another pipeline job from pipeline throws ClosedChannelException at end.

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.

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 20, 2020, 10:34:02 PM4/20/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Cannot Reproduce
 

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.

Change By: Mark Waite
Status: Open Closed
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages