java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties

Jenkins JIRA | Jacek Sniecikowski | 1 year ago
  1. 0

    I'm running docker that maps a local workspace to a volume with read/write access. On run time there are some files generated in the docker image. As a result these files were created with Docker user but physically reside on Jenkins' workspace. The plugin cannot clean up these directories and seems to be taking the whole slave offline. I'm guessing that 'AccessDeniedException' is not handled: <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.52 This is a Unix slave Evacuated stdout Slave successfully connected and online log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Oct 29, 2015 11:52:58 AM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Unable to delete workspace java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Oct 29, 2015 11:52:58 AM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Workspace not deleted successfully: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715 Oct 29, 2015 6:19:29 PM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Unable to delete workspace java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/dataset-exec/dataset-exec_FunctionalTests_ws-cleanup_1446142768472/target/it-classes/datasetdef.yaml at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 1 year ago | Jacek Sniecikowski
    java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties
  2. 0

    I'm running docker that maps a local workspace to a volume with read/write access. On run time there are some files generated in the docker image. As a result these files were created with Docker user but physically reside on Jenkins' workspace. The plugin cannot clean up these directories and seems to be taking the whole slave offline. I'm guessing that 'AccessDeniedException' is not handled: <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.52 This is a Unix slave Evacuated stdout Slave successfully connected and online log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Oct 29, 2015 11:52:58 AM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Unable to delete workspace java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Oct 29, 2015 11:52:58 AM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Workspace not deleted successfully: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715 Oct 29, 2015 6:19:29 PM hudson.plugins.ws_cleanup.Wipeout$Command invoke SEVERE: Unable to delete workspace java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/dataset-exec/dataset-exec_FunctionalTests_ws-cleanup_1446142768472/target/it-classes/datasetdef.yaml at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.Util.deleteFile(Util.java:247) at hudson.Util.deleteRecursive(Util.java:310) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.Util.deleteContentsRecursive(Util.java:212) at hudson.Util.deleteRecursive(Util.java:301) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73) at hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Jenkins JIRA | 1 year ago | Jacek Sniecikowski
    java.nio.file.AccessDeniedException: /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties
  3. 0

    java.nio.file.AccessDeniedException at Jenkins build

    Stack Overflow | 10 months ago | marcelZ
    java.nio.file.AccessDeniedException: /Users/Shared/Jenkins/Home/jobs/my Project/workspace/./.svn/pristine/04/040d4cd4de48d844246c38e096a78718879bfafb.svn-base
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins command execution failed

    Stack Overflow | 8 months ago | Healforgreen
    java.nio.file.AccessDeniedException: /var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/node-4.2.6/.npmPackages
  6. 0

    PR CI builds are all failing in Windows Release builds

    GitHub | 2 years ago | stephentoub
    java.nio.file.AccessDeniedException: d:\j\workspace\dotnet_corefx_windows_release_prtest\bin\tests\Windows_NT.AnyCPU.Release\System.Linq.Parallel.Tests\aspnetcore50\coreclr.dll

    1 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.nio.file.AccessDeniedException

      /home/jenkins/workspace/SNAPSHOTS/security_models/security_models_FunctionalTests_ws-cleanup_1446119577715/target/it-classes/hibernate.properties

      at sun.nio.fs.UnixException.translateToIOException()
    2. Java RT
      Method.invoke
      1. sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
      2. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      3. sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      4. sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
      5. sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      6. java.nio.file.Files.delete(Files.java:1126)
      7. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      8. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      9. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      10. java.lang.reflect.Method.invoke(Method.java:497)
      10 frames
    3. Hudson
      Util.deleteRecursive
      1. hudson.Util.deleteFile(Util.java:247)
      2. hudson.Util.deleteRecursive(Util.java:310)
      3. hudson.Util.deleteContentsRecursive(Util.java:212)
      4. hudson.Util.deleteRecursive(Util.java:301)
      5. hudson.Util.deleteContentsRecursive(Util.java:212)
      6. hudson.Util.deleteRecursive(Util.java:301)
      7. hudson.Util.deleteContentsRecursive(Util.java:212)
      8. hudson.Util.deleteRecursive(Util.java:301)
      8 frames
    4. hudson.plugins.ws_cleanup
      Wipeout$Command.invoke
      1. hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:73)
      2. hudson.plugins.ws_cleanup.Wipeout$Command.invoke(Wipeout.java:70)
      2 frames
    5. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
      1 frame
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:121)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:49)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames