java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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?
    via by Keegan Caradonna,
  • 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?
    via by Keegan Caradonna,
  • 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.
    via by Sergey Solozhentsev,
  • 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.
    via by Sergey Solozhentsev,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    ivanszkypeter
    53 times, last one,
    osvzs
    4 times, last one,
    Andreas Häber
    1 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates