java.io.IOException: remote file operation failed: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6 at hudson.remoting.Channel@25888a1:c1617b93: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip

Jenkins JIRA | James Nord | 1 year ago
  1. 0

    * Jenkins 1.633 * credentials binding 1.5 * credentials 1.24 * workflow 1.10 h2. steps to reproduce # upload a zip file to credentials as a secret file give it an ID of "myzip" # create a workflow that references the above secret file {noformat} node() { withCredentials([[$class: 'ZipFileBinding', credentialsId: 'myzip', variable: 'credentialsLocation']]) { sh 'THIS_SHOULD_FAIL_THE_BUILD' } } {noformat} # run the workflow h2. expected results the workflow complets h2. actual results the workflow fails with an exception removing the secret files (full stack in attached file) {noformat} java.io.IOException: remote file operation failed: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6 at hudson.remoting.Channel@25888a1:c1617b93: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip at hudson.FilePath.act(FilePath.java:985) at hudson.FilePath.act(FilePath.java:967) at hudson.FilePath.deleteRecursive(FilePath.java:1169) at org.jenkinsci.plugins.credentialsbinding.impl.FileBinding$UnbinderImpl.unbind(FileBinding.java:76) at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Callback.cleanup(BindingStep.java:176) at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Callback.onFailure(BindingStep.java:189) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:294) at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68) Caused by: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1079) {noformat}

    Jenkins JIRA | 1 year ago | James Nord
    java.io.IOException: remote file operation failed: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6 at hudson.remoting.Channel@25888a1:c1617b93: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip
  2. 0

    * Jenkins 1.633 * credentials binding 1.5 * credentials 1.24 * workflow 1.10 h2. steps to reproduce # upload a zip file to credentials as a secret file give it an ID of "myzip" # create a workflow that references the above secret file {noformat} node() { withCredentials([[$class: 'ZipFileBinding', credentialsId: 'myzip', variable: 'credentialsLocation']]) { sh 'THIS_SHOULD_FAIL_THE_BUILD' } } {noformat} # run the workflow h2. expected results the workflow complets h2. actual results the workflow fails with an exception removing the secret files (full stack in attached file) {noformat} java.io.IOException: remote file operation failed: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6 at hudson.remoting.Channel@25888a1:c1617b93: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip at hudson.FilePath.act(FilePath.java:985) at hudson.FilePath.act(FilePath.java:967) at hudson.FilePath.deleteRecursive(FilePath.java:1169) at org.jenkinsci.plugins.credentialsbinding.impl.FileBinding$UnbinderImpl.unbind(FileBinding.java:76) at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Callback.cleanup(BindingStep.java:176) at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Callback.onFailure(BindingStep.java:189) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:294) at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68) Caused by: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1079) {noformat}

    Jenkins JIRA | 1 year ago | James Nord
    java.io.IOException: remote file operation failed: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6 at hudson.remoting.Channel@25888a1:c1617b93: java.nio.file.DirectoryNotEmptyException: /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip
  3. 0

    Backup Module

    GitHub | 2 years ago | TeufelPenguin
    java.nio.file.DirectoryNotEmptyException: ForgeEssentials/Backups/TEST/DIM_80
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error unpacking capsule

    GitHub | 2 years ago | draenor
    java.lang.RuntimeException: Exception while extracting jar C:\git\foo\target\foo-0.1-SNAPSHOT-indexsvc.jar to app cache directory C:\Users\Johan\AppData\Local\capsule\apps\foo_0.1-SNAPSHOT

    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.nio.file.DirectoryNotEmptyException

      /scratch/jenkins/secretFiles/ed503d92-4726-4033-9afe-00affd88bde6/credentials.zip

      at sun.nio.fs.UnixFileSystemProvider.implDelete()
    2. Java RT
      Files.delete
      1. sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
      2. sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      3. java.nio.file.Files.delete(Files.java:1079)
      3 frames