java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts.

Jenkins JIRA | Sergey Solozhentsev | 6 months ago
  1. 0

    I have issues that svn cannot open file because it is used by another process. This is jenkins process. There is folowing stack trace. Cleaning local Directory . java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts. at hudson.Util.deleteContentsRecursive(Util.java:237) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:81) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:170) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:183) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:988) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:969) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:945) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:830) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.nio.file.FileSystemException: d:\work\jenkins\Hero android vk\workspace\.\.svn\svn.fdd9d029-5501-0010-b743-efffc94e5483.tmp: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at hudson.Util.tryOnceDeleteFile(Util.java:296) at hudson.Util.tryOnceDeleteRecursive(Util.java:373) at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392) at hudson.Util.tryOnceDeleteRecursive(Util.java:372) at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392) at hudson.Util.deleteContentsRecursive(Util.java:232) ... 21 more It seems that svn plugin does not close all file streams/files.

    Jenkins JIRA | 6 months ago | Sergey Solozhentsev
    java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts.
  2. 0

    I have issues that svn cannot open file because it is used by another process. This is jenkins process. There is folowing stack trace. Cleaning local Directory . java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts. at hudson.Util.deleteContentsRecursive(Util.java:237) at hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:81) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:170) at hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:183) at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162) at hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:988) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:969) at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:945) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:830) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.nio.file.FileSystemException: d:\work\jenkins\Hero android vk\workspace\.\.svn\svn.fdd9d029-5501-0010-b743-efffc94e5483.tmp: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at hudson.Util.tryOnceDeleteFile(Util.java:296) at hudson.Util.tryOnceDeleteRecursive(Util.java:373) at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392) at hudson.Util.tryOnceDeleteRecursive(Util.java:372) at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392) at hudson.Util.deleteContentsRecursive(Util.java:232) ... 21 more It seems that svn plugin does not close all file streams/files.

    Jenkins JIRA | 6 months ago | Sergey Solozhentsev
    java.io.IOException: Unable to delete 'd:\work\jenkins\Hero android vk\workspace\.'. Tried 3 times (of a maximum of 3) waiting 0,1 секунд between attempts.
  3. 0

    Java file system exception when deleting file with NIO Files.delete()

    Stack Overflow | 2 years ago
    java.nio.file.FileSystemException: C:\Users\abcd.zip: The process cannot access the file because it is being used by another process.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I was using the Selenium plugin prior to Jenkins 2.0 release without any problems. When I tried to install the Selenium plugin after upgrading to Jenkins 2.0 (now on 2.1) I receive this error: java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1750) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1511) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.FileSystemException: C:\Users\tdjenkins\.jenkins\plugins\selenium\WEB-INF\lib\commons-lang3-3.4.jar: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at hudson.Util.deleteFile(Util.java:260) at hudson.Util.deleteRecursive(Util.java:314) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:602) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:173) at hudson.PluginManager.dynamicLoad(PluginManager.java:697) at hudson.PluginManager.dynamicLoad(PluginManager.java:663) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1746) It successfully installed in the update center (blue circle) but the plugin wasn't available after restarting. I also tried manually deleting the plugin and reinstalling it no avail. Could you provide any insight on whether this is a bug or on how to get around this error?

    Jenkins JIRA | 7 months ago | Keegan Caradonna
    java.io.IOException: Failed to dynamically deploy this plugin
  6. 0

    I was using the Selenium plugin prior to Jenkins 2.0 release without any problems. When I tried to install the Selenium plugin after upgrading to Jenkins 2.0 (now on 2.1) I receive this error: java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1750) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1511) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.nio.file.FileSystemException: C:\Users\tdjenkins\.jenkins\plugins\selenium\WEB-INF\lib\commons-lang3-3.4.jar: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at hudson.Util.deleteFile(Util.java:260) at hudson.Util.deleteRecursive(Util.java:314) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.Util.deleteContentsRecursive(Util.java:226) at hudson.Util.deleteRecursive(Util.java:305) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:602) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:173) at hudson.PluginManager.dynamicLoad(PluginManager.java:697) at hudson.PluginManager.dynamicLoad(PluginManager.java:663) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1746) It successfully installed in the update center (blue circle) but the plugin wasn't available after restarting. I also tried manually deleting the plugin and reinstalling it no avail. Could you provide any insight on whether this is a bug or on how to get around this error?

    Jenkins JIRA | 7 months ago | Keegan Caradonna
    java.io.IOException: Failed to dynamically deploy this plugin

    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.FileSystemException

      d:\work\jenkins\Hero android vk\workspace\.\.svn\svn.fdd9d029-5501-0010-b743-efffc94e5483.tmp: Процесс не может получить доступ к файлу, так как этот файл занят другим процессом.

      at sun.nio.fs.WindowsException.translateToIOException()
    2. Java RT
      Files.deleteIfExists
      1. sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      2. sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      3. sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      4. sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
      5. sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
      6. java.nio.file.Files.deleteIfExists(Unknown Source)
      6 frames
    3. Hudson
      Util.deleteContentsRecursive
      1. hudson.Util.tryOnceDeleteFile(Util.java:296)
      2. hudson.Util.tryOnceDeleteRecursive(Util.java:373)
      3. hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392)
      4. hudson.Util.tryOnceDeleteRecursive(Util.java:372)
      5. hudson.Util.tryOnceDeleteContentsRecursive(Util.java:392)
      6. hudson.Util.deleteContentsRecursive(Util.java:232)
      6 frames
    4. Hudson Subversion Plug-in
      WorkspaceUpdater$UpdateTask.delegateTo
      1. hudson.scm.subversion.CheckoutUpdater$1.perform(CheckoutUpdater.java:81)
      2. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162)
      3. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:170)
      4. hudson.scm.subversion.UpdateUpdater$TaskImpl.perform(UpdateUpdater.java:183)
      5. hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:162)
      5 frames
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SubversionSCM$CheckOutTask.perform(SubversionSCM.java:988)
      2. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:969)
      3. hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:945)
      4. hudson.FilePath.act(FilePath.java:1018)
      5. hudson.FilePath.act(FilePath.java:996)
      6. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894)
      7. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:830)
      8. hudson.scm.SCM.checkout(SCM.java:485)
      9. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      10. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      10 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      2. hudson.model.Run.execute(Run.java:1741)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames