hudson.remoting.ChannelClosedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ERROR: Failed to parse POMs hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:494) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:672) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy31.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:866) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:791) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:500) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Looks like the node went offline during the build. Check the slave log for the details. details FATAL: channel is already closed hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:494) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:672) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:823) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Albert Cheng,
  • ERROR: Failed to parse POMs hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:494) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:672) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy31.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:866) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:791) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:500) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Looks like the node went offline during the build. Check the slave log for the details. details FATAL: channel is already closed hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:494) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:672) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:823) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by Albert Cheng,
  • I have set up Jenkins slave Windows service so that it is restarted by system on failure. It works OK if slave fails for whatever reasons. Unfortunately recently master keeps failing due to out of memory problems and after master reboot some Windows slave do not reconnect. Service has to be restarted in order to connect slave again. {panel:title=jenkins-slave.err.log} Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 02, 2012 3:59:11 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 8:11:21 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 8:15:19 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 9:44:59 PM hudson.slaves.ChannelPinger$1 onDead INFO: Ping failed. Terminating the channel. java.util.concurrent.TimeoutException: Ping started on 1349293259718 hasn't completed at 1349293499718 at hudson.remoting.PingThread.ping(PingThread.java:120) at hudson.remoting.PingThread.run(PingThread.java:81) Oct 03, 2012 9:44:59 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) 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.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Oct 03, 2012 9:44:59 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected {panel} {panel:title=jenkins-slave.wrapper.log} 2012-10-02 15:59:10 - Starting C:\Program Files\Java\jre7\bin\java.exe -Xrs -jar "C:\Jenkins\slave.jar" -jnlpUrl http://server:8080/computer/slave-1/slave-agent.jnlp 2012-10-02 15:59:10 - Started 5680 2012-10-04 16:20:05 - Stopping jenkinsslave-C__Jenkins 2012-10-04 16:20:05 - ProcessKill 5680 2012-10-04 16:20:05 - Finished jenkinsslave-C__Jenkins 2012-10-04 16:20:06 - Starting C:\Program Files\Java\jre7\bin\java.exe -Xrs -jar "C:\Jenkins\slave.jar" -jnlpUrl http://server:8080/computer/slave-1/slave-agent.jnlp 2012-10-04 16:20:06 - Started 6464 {panel} Note that before exception slave itself reconnected many times to master, but after exception it did not recover until service was restarted.
    via by Krzysztof Malinowski,
  • I have set up Jenkins slave Windows service so that it is restarted by system on failure. It works OK if slave fails for whatever reasons. Unfortunately recently master keeps failing due to out of memory problems and after master reboot some Windows slave do not reconnect. Service has to be restarted in order to connect slave again. {panel:title=jenkins-slave.err.log} Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 02, 2012 3:59:10 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 02, 2012 3:59:11 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 8:11:21 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 03, 2012 8:12:22 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 8:15:19 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 03, 2012 8:15:59 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected Oct 03, 2012 9:44:59 PM hudson.slaves.ChannelPinger$1 onDead INFO: Ping failed. Terminating the channel. java.util.concurrent.TimeoutException: Ping started on 1349293259718 hasn't completed at 1349293499718 at hudson.remoting.PingThread.ping(PingThread.java:120) at hudson.remoting.PingThread.run(PingThread.java:81) Oct 03, 2012 9:44:59 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) 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.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Oct 03, 2012 9:44:59 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://server:8080/] Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to server:21234 Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking Oct 04, 2012 4:20:07 PM hudson.remoting.jnlp.Main$CuiListener status INFO: Connected {panel} {panel:title=jenkins-slave.wrapper.log} 2012-10-02 15:59:10 - Starting C:\Program Files\Java\jre7\bin\java.exe -Xrs -jar "C:\Jenkins\slave.jar" -jnlpUrl http://server:8080/computer/slave-1/slave-agent.jnlp 2012-10-02 15:59:10 - Started 5680 2012-10-04 16:20:05 - Stopping jenkinsslave-C__Jenkins 2012-10-04 16:20:05 - ProcessKill 5680 2012-10-04 16:20:05 - Finished jenkinsslave-C__Jenkins 2012-10-04 16:20:06 - Starting C:\Program Files\Java\jre7\bin\java.exe -Xrs -jar "C:\Jenkins\slave.jar" -jnlpUrl http://server:8080/computer/slave-1/slave-agent.jnlp 2012-10-04 16:20:06 - Started 6464 {panel} Note that before exception slave itself reconnected many times to master, but after exception it did not recover until service was restarted.
    via by Krzysztof Malinowski,
  • Slave can't connect with non-root user
    via by fpue...@gmail.com,
  • How to overcome node’s networking problem
    via by Gal Netanel,
    • hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:494) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:672) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:823) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.net.SocketException: socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    tvrmsmithtvrmsmith
    1 times, last one,
    105 more bugmates