hudson.remoting.ChannelClosedException: channel is already closed

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.

  • Disable installation of launchd service on OS X slaves?
    via by Alex Rønne Petersen,
  • Unable to complete a build. We end up with Java crashes. at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.delete(FilePath.java:1129) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:492) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:663) at hudson.FilePath.act(FilePath.java:831) ... 13 more Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.call(Request.java:174) at hudson.remoting.Channel.call(Channel.java:663) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy37.join(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:861) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:719) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) We have also seen other crashes on this configuration... Design Caused by: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:818) at hudson.remoting.Channel$1.handle(Channel.java:416) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:54) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:812) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:810) at hudson.remoting.Channel.close(Channel.java:877) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110) at hudson.remoting.PingThread.ping(PingThread.java:114) at hudson.remoting.PingThread.run(PingThread.java:81) Caused by: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 2 more Caused by: java.util.concurrent.TimeoutException at hudson.remoting.Request$1.get(Request.java:249) at hudson.remoting.Request$1.get(Request.java:184) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.remoting.PingThread.ping(PingThread.java:107) ... 1 more FATAL: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Request.call(Request.java:149) at hudson.remoting.Channel.call(Channel.java:646) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy33.join(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:861) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Request.abort(Request.java:273) at hudson.remoting.Channel.terminate(Channel.java:702) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:818) at hudson.remoting.Channel$1.handle(Channel.java:416) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Caused by: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 3 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:54) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:812) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:810) at hudson.remoting.Channel.close(Channel.java:877) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110) at hudson.remoting.PingThread.ping(PingThread.java:114) at hudson.remoting.PingThread.run(PingThread.java:81) Caused by: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 2 more Caused by: java.util.concurrent.TimeoutException at hudson.remoting.Request$1.get(Request.java:249) at hudson.remoting.Request$1.get(Request.java:184) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.remoting.PingThread.ping(PingThread.java:107) ... 1 more is this a setup issue or a genuine crash? If you need any more info please ask! Thanks Christian
    via by christian symmons,
  • I have been having some issues with build slaves dropping their SSH connections lately. These cause build failures and extraneous rebuilds. The build failures do not cause a failure e-mail, for some reason: For example: ... 01:55:14 [proguard] Reading library jar [/opt/WTK2.5.2/lib/jsr179.jar] 02:12:48 ERROR: Failed to parse POMs 02:12:48 hudson.remoting.ChannelClosedException: channel is already closed 02:12:48 at hudson.remoting.Channel.send(Channel.java:494) 02:12:48 at hudson.remoting.Request.call(Request.java:129) 02:12:48 at hudson.remoting.Channel.call(Channel.java:665) 02:12:48 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) 02:12:48 at $Proxy37.isAlive(Unknown Source) 02:12:48 at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:920) 02:12:48 at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) 02:12:48 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:748) 02:12:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) 02:12:48 at hudson.model.Run.execute(Run.java:1518) 02:12:48 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 02:12:48 at hudson.model.ResourceController.execute(ResourceController.java:88) 02:12:48 at hudson.model.Executor.run(Executor.java:236) 02:12:48 Caused by: java.io.IOException: Unexpected termination of the channel 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) 02:12:48 Caused by: java.io.EOFException 02:12:48 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) 02:12:48 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) 02:12:48 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 02:12:48 at hudson.remoting.Command.readFrom(Command.java:90) 02:12:48 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) 02:12:48 Looks like the node went offline during the build. Check the slave log for the details. details 02:12:48 FATAL: channel is already closed 02:12:48 hudson.remoting.ChannelClosedException: channel is already closed 02:12:48 at hudson.remoting.Channel.send(Channel.java:494) 02:12:48 at hudson.remoting.Request.call(Request.java:129) 02:12:48 at hudson.remoting.Channel.call(Channel.java:665) 02:12:48 at hudson.Launcher$RemoteLauncher.kill(Launcher.java:877) 02:12:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:609) 02:12:48 at hudson.model.Run.execute(Run.java:1518) 02:12:48 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 02:12:48 at hudson.model.ResourceController.execute(ResourceController.java:88) 02:12:48 at hudson.model.Executor.run(Executor.java:236) 02:12:48 Caused by: java.io.IOException: Unexpected termination of the channel 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) 02:12:48 Caused by: java.io.EOFException 02:12:48 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) 02:12:48 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) 02:12:48 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 02:12:48 at hudson.remoting.Command.readFrom(Command.java:90) 02:12:48 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by tazle,
  • After upgrading from 1.486 to 1.487 jenkins only provides the following NPE. {code} java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at jenkins.model.Jenkins.<init>(Jenkins.java:840) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) {code} the log of the slaves says : {code} [10/26/12 10:19:15] [SSH] Opening SSH connection to simons-mac-mini.intern:22. [10/26/12 10:19:15] [SSH] Authenticating as jenkins with /var/lib/jenkins/.ssh/id_rsa. [10/26/12 10:19:15] [SSH] Authentication successful. [10/26/12 10:19:15] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin11") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=235 GROUPS=() HOME=/Users/Shared/Jenkins HOSTNAME=simons-mac-mini.intern HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin11 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin11 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=88642 PS4='+ ' PWD=/Users/Shared/Jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.18 39804 22' SSH_CONNECTION='192.168.0.18 39804 192.168.0.155 22' TERM=dumb TMPDIR=/var/folders/ln/lm4r8z013vb0lm8bqyvl12y000007b/T/ UID=235 USER=jenkins _=bash [10/26/12 10:19:15] [SSH] Checking java version of java [10/26/12 10:19:15] [SSH] java -version returned 1.6.0_35. [10/26/12 10:19:15] [SSH] Starting sftp client. [10/26/12 10:19:15] [SSH] Copying latest slave.jar... [10/26/12 10:19:16] [SSH] Copied 278.201 bytes. [10/26/12 10:19:16] [SSH] Starting slave process: cd 'dev/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 Dies ist ein UNIX-Slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:396) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:317) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:454) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:293) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [10/26/12 10:19:18] [SSH] Connection closed. ERROR: Connection terminated ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) {code} but even after manually removing the slave from the config.xml the first NPE is still there.
    via by Tobias W.,
  • On Jenkins 1.492, EC2 1.17, when I launch an instance that has a custom Remote FS root set in the EC2 plugin configuration for the AMI, the root isn't created. If I set the remote cache root to /var/cache/jenkins/ on an EC2-launched Debian instance, for example, I get the error: {code} Verifying that java exists java full version "1.6.0_18-b18" Copying slave.jar Launching slave agent: java -jar /tmp/slave.jar <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.18 This is a Unix slave ERROR: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1650) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:368) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:316) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:134) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.FileNotFoundException: /var/cache/jenkins/maven-agent.jar (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath$28.call(FilePath.java:1558) at hudson.FilePath$28.call(FilePath.java:1554) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) ... 5 more ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) {code}
    via by Craig Ringer,
  • Unable to complete a build. We end up with Java crashes. at hudson.FilePath.act(FilePath.java:838) at hudson.FilePath.act(FilePath.java:824) at hudson.FilePath.delete(FilePath.java:1129) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:92) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:492) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:663) at hudson.FilePath.act(FilePath.java:831) ... 13 more Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) FATAL: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.call(Request.java:174) at hudson.remoting.Channel.call(Channel.java:663) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy37.join(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:861) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel at hudson.remoting.Request.abort(Request.java:299) at hudson.remoting.Channel.terminate(Channel.java:719) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:69) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) We have also seen other crashes on this configuration... Design Caused by: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Channel$CloseCommand.execute(Channel.java:818) at hudson.remoting.Channel$1.handle(Channel.java:416) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:54) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:812) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:810) at hudson.remoting.Channel.close(Channel.java:877) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110) at hudson.remoting.PingThread.ping(PingThread.java:114) at hudson.remoting.PingThread.run(PingThread.java:81) Caused by: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 2 more Caused by: java.util.concurrent.TimeoutException at hudson.remoting.Request$1.get(Request.java:249) at hudson.remoting.Request$1.get(Request.java:184) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.remoting.PingThread.ping(PingThread.java:107) ... 1 more FATAL: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 hudson.remoting.RequestAbortedException: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Request.call(Request.java:149) at hudson.remoting.Channel.call(Channel.java:646) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) at $Proxy33.join(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:861) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Caused by: hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 at hudson.remoting.Request.abort(Request.java:273) at hudson.remoting.Channel.terminate(Channel.java:702) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:818) at hudson.remoting.Channel$1.handle(Channel.java:416) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Caused by: hudson.remoting.Channel$OrderlyShutdown: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 3 more Caused by: Command close created at at hudson.remoting.Command.<init>(Command.java:54) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:812) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:810) at hudson.remoting.Channel.close(Channel.java:877) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:110) at hudson.remoting.PingThread.ping(PingThread.java:114) at hudson.remoting.PingThread.run(PingThread.java:81) Caused by: java.util.concurrent.TimeoutException: Ping started on 1341254668579 hasn't completed at 1341254908585 ... 2 more Caused by: java.util.concurrent.TimeoutException at hudson.remoting.Request$1.get(Request.java:249) at hudson.remoting.Request$1.get(Request.java:184) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59) at hudson.remoting.PingThread.ping(PingThread.java:107) ... 1 more is this a setup issue or a genuine crash? If you need any more info please ask! Thanks Christian
    via by christian symmons,
  • I have been having some issues with build slaves dropping their SSH connections lately. These cause build failures and extraneous rebuilds. The build failures do not cause a failure e-mail, for some reason: For example: ... 01:55:14 [proguard] Reading library jar [/opt/WTK2.5.2/lib/jsr179.jar] 02:12:48 ERROR: Failed to parse POMs 02:12:48 hudson.remoting.ChannelClosedException: channel is already closed 02:12:48 at hudson.remoting.Channel.send(Channel.java:494) 02:12:48 at hudson.remoting.Request.call(Request.java:129) 02:12:48 at hudson.remoting.Channel.call(Channel.java:665) 02:12:48 at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158) 02:12:48 at $Proxy37.isAlive(Unknown Source) 02:12:48 at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:920) 02:12:48 at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) 02:12:48 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:748) 02:12:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) 02:12:48 at hudson.model.Run.execute(Run.java:1518) 02:12:48 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 02:12:48 at hudson.model.ResourceController.execute(ResourceController.java:88) 02:12:48 at hudson.model.Executor.run(Executor.java:236) 02:12:48 Caused by: java.io.IOException: Unexpected termination of the channel 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) 02:12:48 Caused by: java.io.EOFException 02:12:48 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) 02:12:48 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) 02:12:48 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 02:12:48 at hudson.remoting.Command.readFrom(Command.java:90) 02:12:48 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) 02:12:48 Looks like the node went offline during the build. Check the slave log for the details. details 02:12:48 FATAL: channel is already closed 02:12:48 hudson.remoting.ChannelClosedException: channel is already closed 02:12:48 at hudson.remoting.Channel.send(Channel.java:494) 02:12:48 at hudson.remoting.Request.call(Request.java:129) 02:12:48 at hudson.remoting.Channel.call(Channel.java:665) 02:12:48 at hudson.Launcher$RemoteLauncher.kill(Launcher.java:877) 02:12:48 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:609) 02:12:48 at hudson.model.Run.execute(Run.java:1518) 02:12:48 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) 02:12:48 at hudson.model.ResourceController.execute(ResourceController.java:88) 02:12:48 at hudson.model.Executor.run(Executor.java:236) 02:12:48 Caused by: java.io.IOException: Unexpected termination of the channel 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) 02:12:48 Caused by: java.io.EOFException 02:12:48 at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) 02:12:48 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) 02:12:48 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 02:12:48 at hudson.remoting.Command.readFrom(Command.java:90) 02:12:48 at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) 02:12:48 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
    via by tazle,
  • After upgrading from 1.486 to 1.487 jenkins only provides the following NPE. {code} java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at jenkins.model.Jenkins.<init>(Jenkins.java:840) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) {code} the log of the slaves says : {code} [10/26/12 10:19:15] [SSH] Opening SSH connection to simons-mac-mini.intern:22. [10/26/12 10:19:15] [SSH] Authenticating as jenkins with /var/lib/jenkins/.ssh/id_rsa. [10/26/12 10:19:15] [SSH] Authentication successful. [10/26/12 10:19:15] [SSH] The remote users environment is: BASH=/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release" [5]="x86_64-apple-darwin11") BASH_VERSION='3.2.48(1)-release' DIRSTACK=() EUID=235 GROUPS=() HOME=/Users/Shared/Jenkins HOSTNAME=simons-mac-mini.intern HOSTTYPE=x86_64 IFS=$' \t\n' LOGNAME=jenkins MACHTYPE=x86_64-apple-darwin11 MAIL=/var/mail/jenkins OPTERR=1 OPTIND=1 OSTYPE=darwin11 PATH=/usr/bin:/bin:/usr/sbin:/sbin PPID=88642 PS4='+ ' PWD=/Users/Shared/Jenkins SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=1 SSH_CLIENT='192.168.0.18 39804 22' SSH_CONNECTION='192.168.0.18 39804 192.168.0.155 22' TERM=dumb TMPDIR=/var/folders/ln/lm4r8z013vb0lm8bqyvl12y000007b/T/ UID=235 USER=jenkins _=bash [10/26/12 10:19:15] [SSH] Checking java version of java [10/26/12 10:19:15] [SSH] java -version returned 1.6.0_35. [10/26/12 10:19:15] [SSH] Starting sftp client. [10/26/12 10:19:15] [SSH] Copying latest slave.jar... [10/26/12 10:19:16] [SSH] Copied 278.201 bytes. [10/26/12 10:19:16] [SSH] Starting slave process: cd 'dev/jenkins' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.17 Dies ist ein UNIX-Slave Copied maven-agent.jar Copied maven3-agent.jar Copied maven3-interceptor.jar Copied maven-interceptor.jar Copied maven2.1-interceptor.jar Copied plexus-classworld.jar Copied classworlds.jar Evacuated stdout ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.getPublic(InstanceIdentity.java:81) at org.jenkinsci.modules.launchd_slave_installer.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:27) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:396) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:317) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:454) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:293) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [10/26/12 10:19:18] [SSH] Connection closed. ERROR: Connection terminated ha:AAAAWB+LCAAAAAAAAABb85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) {code} but even after manually removing the slave from the config.xml the first NPE is still there.
    via by Tobias W.,
  • On Jenkins 1.492, EC2 1.17, when I launch an instance that has a custom Remote FS root set in the EC2 plugin configuration for the AMI, the root isn't created. If I set the remote cache root to /var/cache/jenkins/ on an EC2-launched Debian instance, for example, I get the error: {code} Verifying that java exists java full version "1.6.0_18-b18" Copying slave.jar Launching slave agent: java -jar /tmp/slave.jar <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.18 This is a Unix slave ERROR: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1650) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:368) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:316) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:134) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.FileNotFoundException: /var/cache/jenkins/maven-agent.jar (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath$28.call(FilePath.java:1558) at hudson.FilePath$28.call(FilePath.java:1554) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) ... 5 more ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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) {code}
    via by Craig Ringer,
  • [JENKINS-14307] Ping timeout to slave - Jenkins JIRA
    via by Unknown author,
    • 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:665) at hudson.Launcher$RemoteLauncher.kill(Launcher.java:877) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:609) at hudson.model.Run.execute(Run.java:1518) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) 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)

    Users with the same issue

    Unknown User
    Unknown User19 times, last one,
    Unknown visitor1 times, last one,
    ex00
    ex001 times, last one,
    eti22
    eti221 times, last one,
    Unknown visitor1 times, last one,
    10 more bugmates