Kristian,

Did you find a solution for this? Some of my builds have this while others 
don't. I suspect this to be a timing issue but I haven't found a solution.

On Friday, May 19, 2017 at 7:00:47 AM UTC-5, Kristian X wrote:
>
> Does really nobody have an idea what to do here?
>
> 2017-05-08 14:46 GMT+02:00 Kristian <kristian...@gmail.com <javascript:>>:
>
>> Sorry, the error message was not correct. Correct error message is this:
>>
>>
>> FATAL: command execution failedjava.nio.channels.ClosedChannelException 
>> <http://stacktrace.jenkins-ci.org/search?query=java.nio.channels.ClosedChannelException>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite(SSLEngineFilterLayer.java:503)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processWrite&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites(SSLEngineFilterLayer.java:248)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processQueuedWrites&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend(SSLEngineFilterLayer.java:213)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doCloseSend&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite&entity=method>
>>      at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311)
>>  
>> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite&entity=method>
>>      at hudson.remoting.Channel.close(Channel.java:1295) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channel.close&entity=method>
>>      at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:180) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.ChannelPinger$1.onDead&entity=method>
>>      at hudson.remoting.PingThread.ping(PingThread.java:130) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.PingThread.ping&entity=method>
>>      at hudson.remoting.PingThread.run(PingThread.java:86) 
>> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.PingThread.run&entity=method>
>> Caused: java.io.IOException: Backing channel 'JNLP4-connect connection from 
>> hostname01/192.168.2.54:64007' is disconnected.
>>      at 
>> hudson.remoting.RemoteInvocationHandler.channelOrFail(RemoteInvocationHandler.java:192)
>>      at 
>> hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:257)
>>      at com.sun.proxy.$Proxy77.isAlive(Unknown Source)
>>      at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1043)
>>      at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1035)
>>      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:779)
>>      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:534)
>>      at hudson.model.Run.execute(Run.java:1728)
>>      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>>      at hudson.model.ResourceController.execute(ResourceController.java:98)
>>      at hudson.model.Executor.run(Executor.java:405)
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Kristian <kristian...@gmail.com <javascript:>>
>> Date: 2017-05-08 14:43 GMT+02:00
>> Subject: Failing builds
>> To: jenkins...@googlegroups.com <javascript:>
>>
>>
>> Hi,
>>
>> at the moment, too much jobs are failing from time to time without any 
>> good reason. I get this error message mostly when a big job is running.
>>
>> The error message is this:
>>
>> #############################
>>
>> FATAL: java.nio.channels.ClosedChannelException
>> java.nio.channels.ClosedChannelException
>> at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
>> at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
>> at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
>> at 
>> org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.pr
>> ocessWrite(SSLEngineFilterLayer.java:503)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.pr
>> ocessQueuedWrites(SSLEngineFilterLayer.java:248)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.do
>> CloseSend(SSLEngineFilterLayer.java:213)
>> at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
>> at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
>> at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311)
>> at hudson.remoting.Channel.close(Channel.java:1295)
>> at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:180)
>> at hudson.remoting.PingThread.ping(PingThread.java:130)
>> at hudson.remoting.PingThread.run(PingThread.java:86)
>> Caused: hudson.remoting.RequestAbortedException
>> at hudson.remoting.Request.abort(Request.java:307)
>> at hudson.remoting.Channel.terminate(Channel.java:896)
>> at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer.onReadClosed(ChannelApplicationLayer.java:208)
>> at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.onRecvClosed(ApplicationLayer.java:222)
>> at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(ProtocolStack.java:832)
>> at 
>> org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.java:287)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClosed(SSLEngineFilterLayer.java:181)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.switchToNoSecure(SSLEngineFilterLayer.java:283)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.pr
>> ocessWrite(SSLEngineFilterLayer.java:503)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.pr
>> ocessQueuedWrites(SSLEngineFilterLayer.java:248)
>> at 
>> org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.doSend(SSLEngineFilterLayer.java:200)
>> at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.do
>> CloseSend(SSLEngineFilterLayer.java:213)
>> at 
>> org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.doCloseSend(ProtocolStack.java:800)
>> at 
>> org.jenkinsci.remoting.protocol.ApplicationLayer.doCloseWrite(ApplicationLayer.java:173)
>> at 
>> org.jenkinsci.remoting.protocol.impl.ChannelApplicationLayer$ByteBufferCommandTransport.closeWrite(ChannelApplicationLayer.java:311)
>> at hudson.remoting.Channel.close(Channel.java:1295)
>> at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:180)
>> at hudson.remoting.PingThread.ping(PingThread.java:130)
>> at hudson.remoting.PingThread.run(PingThread.java:86)
>> at ......remote call to JNLP4-connect connection from 
>> hostname01/192.168.2.54:49188(Native Method)
>> at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
>> at hudson.remoting.Request.call(Request.java:172)
>> at hudson.remoting.Channel.call(Channel.java:829)
>> at hudson.FilePath.act(FilePath.java:985)
>> at hudson.FilePath.act(FilePath.java:974)
>> at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:838)
>> at hudson.scm.SCM.checkout(SCM.java:496)
>> at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
>> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
>> at hudson.model.Run.execute(Run.java:1728)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at hudson.model.ResourceController.execute(ResourceController.java:98)
>> at hudson.model.Executor.run(Executor.java:405)
>>
>> ################################
>>
>> At the same time, the slave stops with the error message like in the 
>> picture:
>> ​
>> This occurrs only when building on Windows Slave machines with method 
>> "Start agent vie Java Web Start".
>>
>> I already tried a bunch of stuff: 
>>
>> * Giving executables / processes which are important for the build higher 
>> IO and CPU priority
>> * Restarting all machines (virtual + physical)
>> * Adding 
>>       -Dhudson.remoting.Launcher.pingIntervalSec=-1 
>> -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC 
>> -Djenkins.slaves.NioChannelSelector.disabled=true
>>   to /etc/sysconfig/jenkins file into JENKINS_JAVA_OPTIONS
>>
>> But nothing helped. Error is still occurring. Jenkins version is Jenkins 
>> ver. 2.46.2.
>>
>> What else can I do to solve this problem?
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2af2322e-6d3a-434a-9ce0-4bcbc6ce74cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to