java.io.IOException

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.

  • I tried configuring a node to reset to a snapshot before any job starts, but it seems the job does not wait for this to finish. You can see from the build log that it triggers a snapshot revert, and then immediately proceeds to the scm checkout step of the job: {code} Started by user Mikal H Henriksen Got snapshot phoenix from slave/node configuration Preparing to revert phoenix to snapshot phoenix. Building remotely on node-host (amd64) in workspace /var/jenkins/workspace/one-phoenix-3.1 java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:893) at hudson.FilePath.mkdirs(FilePath.java:1063) at hudson.model.AbstractProject.checkout(AbstractProject.java:1245) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:541) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:739) at hudson.FilePath.act(FilePath.java:909) ... 10 more Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:1027) at hudson.remoting.Channel.close(Channel.java:1009) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.revertVMSnapshot(LibvirtSnapshotRevertRunListener.java:84) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.onStarted(LibvirtSnapshotRevertRunListener.java:58) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213) at hudson.model.Run.execute(Run.java:1702) ... 3 more {code} After that follows more steps like archiving failing in the same way.
    via by Mikal Henriksen,
  • I tried configuring a node to reset to a snapshot before any job starts, but it seems the job does not wait for this to finish. You can see from the build log that it triggers a snapshot revert, and then immediately proceeds to the scm checkout step of the job: {code} Started by user Mikal H Henriksen Got snapshot phoenix from slave/node configuration Preparing to revert phoenix to snapshot phoenix. Building remotely on node-host (amd64) in workspace /var/jenkins/workspace/one-phoenix-3.1 java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:893) at hudson.FilePath.mkdirs(FilePath.java:1063) at hudson.model.AbstractProject.checkout(AbstractProject.java:1245) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:541) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:739) at hudson.FilePath.act(FilePath.java:909) ... 10 more Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:1027) at hudson.remoting.Channel.close(Channel.java:1009) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.revertVMSnapshot(LibvirtSnapshotRevertRunListener.java:84) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.onStarted(LibvirtSnapshotRevertRunListener.java:58) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213) at hudson.model.Run.execute(Run.java:1702) ... 3 more {code} After that follows more steps like archiving failing in the same way.
    via by Mikal Henriksen,
  • Problem reverting to snapshot in job
    via by Andreas Tscharner,
  • Stuck SSH slave?
    via by Andrew Melo,
  • Job requires a second svn working copy
    via by David Aldrich,
  • Our cron box, a Jenkins slave which runs most of our tied jobs, got overwhelmed with CPU and jobs were failing. This made sense, but it didn't send failure emails even though the jobs were failing, which was quite unfortunate as it meant we were failing to update production data for a few hours until we noticed. It seems to be relying on a healthy connection to the slave in the case of a failure, which might be the cause of the failure in the first place. I'm not actually sure if email-ext is the root culprit or not, though it is configured for affected jobs. The full log follows: Started by user michael Building remotely on Cron hudson.util.IOException2: remote file operation failed: /tmp/workspace/alerts_low_priority at hudson.remoting.Channel@317dc9:Cron at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.FilePath.mkdirs(FilePath.java:806) at hudson.model.AbstractProject.checkout(AbstractProject.java:1191) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:486) at hudson.remoting.Request.call(Request.java:110) at hudson.remoting.Channel.call(Channel.java:668) at hudson.FilePath.act(FilePath.java:747) ... 9 more Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:855) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:112) at hudson.remoting.PingThread.ping(PingThread.java:107) at hudson.remoting.PingThread.run(PingThread.java:81) Email was triggered for: Failure Email was triggered for: Still Failing Trigger Failure was overridden by another trigger and will not send an email. Sending email for trigger: Still Failing ERROR: Could not send email as a part of the post-build publishers. hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:486) at hudson.remoting.Request.call(Request.java:110) at hudson.remoting.Channel.call(Channel.java:668) at hudson.EnvVars.getRemote(EnvVars.java:202) at hudson.model.Computer.getEnvironment(Computer.java:821) at hudson.model.Run.getEnvironment(Run.java:1794) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:783) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:295) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:235) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:227) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:189) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:657) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:635) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:171) at hudson.model.Run.run(Run.java:1420) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:855) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:112) at hudson.remoting.PingThread.ping(PingThread.java:107) at hudson.remoting.PingThread.run(PingThread.java:81) Finished: FAILURE
    via by mcrooney,
  • Failure log {quote} 20:36:06 [android] Using Android SDK: /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test 20:36:06 [android] Creating Android AVD: /home/jenkins/.android/avd/hudson_en-US_160_WVGA_Google_Inc._Google_APIs_7.avd 20:36:06 [android] /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/tools/android create avd -f -a -c 128M -s WVGA800 -n hudson_en-US_160_WVGA_Google_Inc._Google_APIs_7 -t "Google Inc.:Google APIs:7" 20:36:07 [android] Setting hardware properties: 20:36:07 hw.audioOutput: no 20:36:07 hw.audioInput: no 20:36:07 hw.ramSize: 512 20:36:07 vm.heapSize: 32 20:36:07 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb start-server 20:36:07 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/tools/emulator -snapshot-list -no-window -avd hudson_en-US_160_WVGA_Google_Inc._Google_APIs_7 20:36:07 [android] Starting Android emulator and creating initial snapshot 20:36:07 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/tools/emulator -no-boot-anim -ports 32814,35961 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_160_WVGA_Google_Inc._Google_APIs_7 -no-snapshot-load -no-snapshot-save -wipe-data -no-window -no-snapshot-update-time 20:36:10 * daemon not running. starting it now on port 34404 * 20:36:10 * daemon started successfully * 20:36:12 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb connect localhost:35961 20:36:12 [android] Waiting for emulator to finish booting... 20:36:12 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb -s localhost:35961 shell getprop dev.bootcomplete 20:36:12 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb connect localhost:35961 20:36:26 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb -s localhost:35961 shell getprop dev.bootcomplete 20:36:26 $ /home/jenkins/client-tools/symlinks/sdk_for_gerrit_client_android_test/platform-tools/adb connect localhost:35961 20:36:27 [android] Interrupted while waiting for emulator to finish booting. 20:36:27 [android] Emulator was shut down before it finished booting 20:36:27 FATAL: channel is already closed 20:36:27 hudson.remoting.ChannelClosedException: channel is already closed 20:36:27 at hudson.remoting.Channel.send(Channel.java:494) 20:36:27 at hudson.remoting.Request.call(Request.java:129) 20:36:27 at hudson.remoting.Channel.call(Channel.java:672) 20:36:27 at hudson.Launcher$RemoteLauncher.launch(Launcher.java:852) 20:36:27 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 20:36:27 at hudson.plugins.android_emulator.AndroidEmulator.disconnectEmulator(AndroidEmulator.java:520) 20:36:27 at hudson.plugins.android_emulator.AndroidEmulator.cleanUp(AndroidEmulator.java:572) 20:36:27 at hudson.plugins.android_emulator.AndroidEmulator.cleanUp(AndroidEmulator.java:553) 20:36:27 at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:392) 20:36:27 at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:257) 20:36:27 at hudson.model.Build$BuildExecution.doRun(Build.java:154) 20:36:27 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580) 20:36:27 at hudson.model.Run.execute(Run.java:1575) 20:36:27 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 20:36:27 at hudson.model.ResourceController.execute(ResourceController.java:88) 20:36:27 at hudson.model.Executor.run(Executor.java:237) 20:36:27 Caused by: java.io.IOException 20:36:27 at hudson.remoting.Channel.close(Channel.java:910) 20:36:27 at hudson.remoting.Channel.close(Channel.java:892) 20:36:27 at hudson.slaves.SlaveComputer.closeChannel(SlaveComputer.java:615) 20:36:27 at hudson.slaves.SlaveComputer.kill(SlaveComputer.java:596) 20:36:27 at hudson.model.AbstractCIBase.killComputer(AbstractCIBase.java:85) 20:36:27 at jenkins.model.Jenkins.cleanUp(Jenkins.java:2652) 20:36:27 at hudson.WebAppMain.contextDestroyed(WebAppMain.java:337) 20:36:27 at winstone.WebAppConfiguration.destroy(WebAppConfiguration.java:1167) 20:36:27 at winstone.HostConfiguration.destroyWebApp(HostConfiguration.java:148) 20:36:27 at winstone.HostConfiguration.destroy(HostConfiguration.java:156) 20:36:27 at winstone.HostGroup.destroy(HostGroup.java:77) 20:36:27 at winstone.Launcher.shutdown(Launcher.java:337) 20:36:27 at winstone.ShutdownHook.run(ShutdownHook.java:25) {quote}
    via by Sam Xiao,
  • Jenkins running on Linux kurki 2.6.32-5-xen-amd64 #1 SMP x86_64 Debian GNU/Linux 6.0 failed to contact a Unix slave on SLES 11 SP 1. Jenkins 1.430 version. The last attempt failed with the following log. The next attempts to contact the slave failed altogether and there was no text in the slave node log either. Started by upstream project "pmc-snapshot-itest" build number 545 Building remotely on pmc-inst-test hudson.util.IOException2: remote file operation failed: /var/jenkins/workspace/pmc-snapshot-inst-test at hudson.remoting.Channel@74e1b1dd:pmc-inst-test at hudson.FilePath.act(FilePath.java:754) at hudson.FilePath.act(FilePath.java:740) at hudson.FilePath.mkdirs(FilePath.java:806) at hudson.model.AbstractProject.checkout(AbstractProject.java:1191) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:499) at hudson.remoting.Request.call(Request.java:110) at hudson.remoting.Channel.call(Channel.java:681) at hudson.FilePath.act(FilePath.java:747) ... 9 more Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:868) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:112) at hudson.remoting.PingThread.ping(PingThread.java:107) at hudson.remoting.PingThread.run(PingThread.java:81) Recording test results ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:499) at hudson.remoting.Request.call(Request.java:110) at hudson.remoting.Channel.call(Channel.java:681) at hudson.EnvVars.getRemote(EnvVars.java:202) at hudson.model.Computer.getEnvironment(Computer.java:821) at hudson.model.Run.getEnvironment(Run.java:1794) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:808) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:131) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:668) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:646) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:615) at hudson.model.Run.run(Run.java:1401) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:868) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:112) at hudson.remoting.PingThread.ping(PingThread.java:107) at hudson.remoting.PingThread.run(PingThread.java:81) ERROR: Publisher hudson.tasks.Mailer aborted due to exception hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:499) at hudson.remoting.Request.call(Request.java:110) at hudson.remoting.Channel.call(Channel.java:681) at hudson.EnvVars.getRemote(EnvVars.java:202) at hudson.model.Computer.getEnvironment(Computer.java:821) at hudson.model.Run.getEnvironment(Run.java:1794) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:808) at hudson.tasks.Mailer.perform(Mailer.java:98) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:668) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:646) at hudson.model.Build$RunnerImpl.post2(Build.java:162) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:615) at hudson.model.Run.run(Run.java:1401) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:868) at hudson.slaves.ChannelPinger$1.onDead(ChannelPinger.java:112) at hudson.remoting.PingThread.ping(PingThread.java:107) at hudson.remoting.PingThread.run(PingThread.java:81) Finished: FAILURE
    via by Matti Linnanvuori,
    • java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt at hudson.FilePath.act(FilePath.java:916) at hudson.FilePath.act(FilePath.java:893) at hudson.FilePath.mkdirs(FilePath.java:1063) at hudson.model.AbstractProject.checkout(AbstractProject.java:1245) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:615) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:232) Caused by: hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:541) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:739) at hudson.FilePath.act(FilePath.java:909) ... 10 more Caused by: java.io.IOException at hudson.remoting.Channel.close(Channel.java:1027) at hudson.remoting.Channel.close(Channel.java:1009) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.revertVMSnapshot(LibvirtSnapshotRevertRunListener.java:84) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.onStarted(LibvirtSnapshotRevertRunListener.java:58) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213) at hudson.model.Run.execute(Run.java:1702) ... 3 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,