We are having a random failures with Jenkins unable to cleanup workspace.
We have seen at least two case of this in the last 2 weeks.
17:20:51 ERROR: Failed to clean the workspace 17:20:51 jenkins.util.io.CompositeIOException: Unable to delete '/var/lib/jenkins/jenkins-1/docker_1/workspace/my_job_PR-6210@3'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 6 additional exceptions) 17:20:51 at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:90) 17:20:51 at hudson.Util.deleteContentsRecursive(Util.java:262) 17:20:51 at hudson.Util.deleteContentsRecursive(Util.java:251) 17:20:51 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:794) 17:20:51 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:160) 17:20:51 at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:153) 17:20:51 at hudson.remoting.UserRequest.perform(UserRequest.java:211) 17:20:51 at hudson.remoting.UserRequest.perform(UserRequest.java:54) 17:20:51 at hudson.remoting.Request$2.run(Request.java:376) 17:20:51 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78) 17:20:51 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 17:20:51 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 17:20:51 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 17:20:51 at java.lang.Thread.run(Thread.java:748) 17:20:51 Suppressed: java.nio.file.FileSystemException: /var/lib/jenkins/jenkins-1/docker_1/workspace/my_job_PR-6210@3/src/tests/ftest/cart/util/__pycache__/cart_logparse.cpython-36.pyc: Operation not permitted