Skip to content

Instantly share code, notes, and snippets.

@mbiarnes
Created September 6, 2022 07:42
Show Gist options
  • Save mbiarnes/11af4e500a1a3848887c88751a38411c to your computer and use it in GitHub Desktop.
Save mbiarnes/11af4e500a1a3848887c88751a38411c to your computer and use it in GitHub Desktop.
Asynchronous resource disposer
Also: java.nio.file.FileSystemException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress/videos/newTenantBasicWorkflow.js.mp4: Operation not permitted
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress/videos: Operation not permitted
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:240)
jenkins.util.io.CompositeIOException: Unable to remove directory /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress with directory contents: [/home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress/videos]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:249)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:240)
jenkins.util.io.CompositeIOException: Unable to remove directory /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend with directory contents: [/home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend/cypress]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:249)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:240)
jenkins.util.io.CompositeIOException: Unable to remove directory /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering with directory contents: [/home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering/optaweb-employee-rostering-frontend]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:249)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
Also: java.nio.file.DirectoryNotEmptyException: /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:240)
jenkins.util.io.CompositeIOException: Unable to remove directory /home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124 with directory contents: [/home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124/optaweb-employee-rostering]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:249)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to rhos-01-kie-psi-rhel7-xlarge-680
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1000)
at hudson.FilePath.act(FilePath.java:1194)
at hudson.FilePath.act(FilePath.java:1183)
at hudson.FilePath.deleteRecursive(FilePath.java:1436)
at hudson.plugins.ws_cleanup.Wipeout.performDelete(Wipeout.java:83)
at hudson.plugins.ws_cleanup.Wipeout$DisposableImpl.dispose(Wipeout.java:115)
at org.jenkinsci.plugins.resourcedisposer.AsyncResourceDisposer$WorkItem.run(AsyncResourceDisposer.java:285)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
jenkins.util.io.CompositeIOException: Unable to delete '/home/jenkins/workspace/KIE/kogito/1.13.x/nightly/optaplanner-deploy_ws-cleanup_1662433921124'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:320)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1444)
at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1439)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3502)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:376)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment