java.io.IOException: Failed to dynamically deploy this plugin

Jenkins JIRA | Keegan Caradonna | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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 | 10 months ago | Keegan Caradonna
    java.io.IOException: Failed to dynamically deploy this plugin
  2. 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 | 10 months ago | Keegan Caradonna
    java.io.IOException: Failed to dynamically deploy this plugin
  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 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 | 9 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.
  6. 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 | 9 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.

    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

      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()
    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
      UpdateCenter$InstallationJob._run
      1. hudson.Util.deleteFile(Util.java:260)
      2. hudson.Util.deleteRecursive(Util.java:314)
      3. hudson.Util.deleteContentsRecursive(Util.java:226)
      4. hudson.Util.deleteRecursive(Util.java:305)
      5. hudson.Util.deleteContentsRecursive(Util.java:226)
      6. hudson.Util.deleteRecursive(Util.java:305)
      7. hudson.Util.deleteContentsRecursive(Util.java:226)
      8. hudson.Util.deleteRecursive(Util.java:305)
      9. hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:602)
      10. hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:173)
      11. hudson.PluginManager.dynamicLoad(PluginManager.java:697)
      12. hudson.PluginManager.dynamicLoad(PluginManager.java:663)
      13. hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1746)
      13 frames