hudson.util.IOException2: Failed to dynamically deploy this plugin

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.

  • Try to updated an installed plugin without restarting Jenkins. In my case Perforce threw the following exception (SubVersion behaved similar): hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Unable to delete C:\Jenkins\plugins\perforce\WEB-INF\lib\commons-codec-1.4.jar at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:389) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:340) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more
    via by robsimon,
  • Try to updated an installed plugin without restarting Jenkins. In my case Perforce threw the following exception (SubVersion behaved similar): hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Unable to delete C:\Jenkins\plugins\perforce\WEB-INF\lib\commons-codec-1.4.jar at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:389) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:340) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more
    via by robsimon,
  • Calabash-android on Jekins
    via by Jiajia Yu,
  • Subversion Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • I couldn't install instant-messaging and jabber plugins on a fresh installation on Jenkins. After installing them and restarting Jenkins, the only visual clue I got was that those plugins were not on the installed plugins list. Digging into the log I found: {noformat} WARNING: Adding dependent install of instant-messaging for plugin jabber [...] SEVERE: Failed Loading plugin instant-messaging java.io.IOException: Dependency maven-plugin (1.392) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:434) at hudson.PluginManager$2$1$1.run(PluginManager.java:293) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$5.runTask(Jenkins.java:799) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) May 31, 2012 3:41:49 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin jabber java.io.IOException: Dependency maven-plugin (1.392), instant-messaging (1.21) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:434) at hudson.PluginManager$2$1$1.run(PluginManager.java:293) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$5.runTask(Jenkins.java:799) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) [...] SEVERE: Failed to install Instant Messaging Plugin hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: hudson.util.IOException2: Failed to install instant-messaging plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:365) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more Caused by: java.io.IOException: Dependency maven-plugin (1.392) doesn't exist at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:434) at hudson.PluginManager.dynamicLoad(PluginManager.java:355) ... 8 more {noformat}
    via by Tomasz Melcer,
  • I just updated the AD plugin with "install without restarting" turned on to attempt to fix bug 12619 which I originally reported. It failed: INFO: Starting the installation of Active Directory plugin on behalf of tfanning 01-May-2012 11:23:40 hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading Active Directory plugin 01-May-2012 11:23:41 hudson.PluginManager dynamicLoad INFO: Attempting to dynamic load C:\Program Files\Jenkins\plugins\active-directory.jpi 01-May-2012 11:23:41 hudson.model.UpdateCenter$DownloadJob run SEVERE: Failed to install Active Directory plugin hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Unable to delete C:\Program Files\Jenkins\plugins\active-directory\WEB-INF\lib\active-directory-1.0.jar at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:389) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:340) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more I then restarted the Jenkins service, waited, logged in with my AD credentials, so this appeared to work. However in Jenkins my AD account has now lost all of its admin privileges, i.e. I nor any other person configured to have admin rights can now configure Jenkins. I noticed active-directory.bak left over in the Jenkins plugin folder. Stopped the service, deleted active-directory.jpi, renamed active-directory.bak to .jpi, restarted, all working (albeit with bug 12619 still present) How should I upgrade to 1.27 safely?
    via by Tom Fanning,
    • hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Unable to delete C:\Jenkins\plugins\perforce\WEB-INF\lib\commons-codec-1.4.jar at hudson.Util.deleteFile(Util.java:237) at hudson.Util.deleteRecursive(Util.java:287) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.Util.deleteRecursive(Util.java:278) at hudson.Util.deleteContentsRecursive(Util.java:198) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:389) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:113) at hudson.PluginManager.dynamicLoad(PluginManager.java:340) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,