| We run Jenkins 2.107.2 / 2.107.3 on Debian Linux server and >50 agents with linux, Win7, Win10 connected via JNLP. Sometimes we use the possibility to cancel running jobs interactively without problems. When upgrading the Jenkins server to 2.150.3 (and 2.176.2) and the agent jars appropriately, we get trouble. After canceling a job execution, the agent running the job looses the connection to the master. The agent's log says java.nio.channels.ClosedChannelException at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154) at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179) 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) The master's log contains the following entries Aug 01, 2019 9:35:00 AM hudson.model.Run execute INFO: UTIL_cancel #1 aborted java.lang.InterruptedException at java.lang.Object.wait(Native Method) at hudson.remoting.Request.call(Request.java:177) at hudson.remoting.Channel.call(Channel.java:956) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283) at com.sun.proxy.$Proxy74.join(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1136) at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:155) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1818) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Aug 01, 2019 9:35:02 AM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed INFO: IOHub#1: Worker[channel:java.nio.channels.SocketChannel[connected local=/192.168.75.8:45607 remote=192.168.75.198/192.168.75.198:52076]] / Computer.threadPoolForRemoting 34 for R-Test-ST-Win7-64B-EN-Rhap-Agent2 terminated: java.nio.channels.ClosedChannelException |