java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt

Jenkins JIRA | Mikal Henriksen | 2 years ago
  1. 0

    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.

    Jenkins JIRA | 2 years ago | Mikal Henriksen
    java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt
  2. 0

    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.

    Jenkins JIRA | 2 years ago | Mikal Henriksen
    java.io.IOException: remote file operation failed: /var/jenkins/workspace/one-phoenix-3.1 at hudson.remoting.Channel@56eac72e:bgo-vmeo-smokeandmirrors-libvirt
  3. 0

    ChannelClosedException while using libvirt jenkins slave

    Stack Overflow | 7 months ago | Manjunath Kumatagi
    java.io.IOException: remote file operation failed: /root/slave/slave/workspace/test at hudson.remoting.Channel@7589c77c:fedora: hudson.remoting.ChannelClosedException: channel is already closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem reverting to snapshot in job

    Google Groups | 1 year ago | Andreas Tscharner
    hudson.remoting.ChannelClosedException: channel is already closed
  6. 0

    Stuck SSH slave?

    Google Groups | 4 years ago | Andrew Melo
    hudson.util.IOException2: remote file operation failed: /jenkins/workspace/WMCore-UnitTests-try at hudson.remoting.Channel@19119a16:dmwm-slave01

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      No message provided

      at hudson.remoting.Channel.close()
    2. Hudson :: Remoting Layer
      Channel.close
      1. hudson.remoting.Channel.close(Channel.java:1027)
      2. hudson.remoting.Channel.close(Channel.java:1009)
      2 frames
    3. hudson.plugins.libvirt
      LibvirtSnapshotRevertRunListener.onStarted
      1. hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.revertVMSnapshot(LibvirtSnapshotRevertRunListener.java:84)
      2. hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.onStarted(LibvirtSnapshotRevertRunListener.java:58)
      2 frames
    4. Hudson
      Executor.run
      1. hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
      2. hudson.model.Run.execute(Run.java:1702)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:232)
      5 frames