Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12803

Installing plugin (without restarting) is broken with other non-refreshable extension.

    Details

    • Similar Issues:

      Description

      Installing plugins without restart don't work in case if non-refreshable extension is activated. In my case I had https://wiki.jenkins-ci.org/display/JENKINS/Persona+Plugin installed, and received following exception:

      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: hudson.util.IOException2: Failed to install build-name-setter-plugin plugin
      at hudson.PluginManager.dynamicLoad(PluginManager.java:365)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133)
      ... 7 more
      Caused by: jenkins.ExtensionRefreshException: hudson.plugins.persona.xml.XmlPersonaFinder@1664d71 doesn't support refresh
      at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:1970)
      at hudson.PluginManager.dynamicLoad(PluginManager.java:358)
      ... 8 more

        Attachments

          Activity

          Hide
          johno Johno Crawford added a comment -

          Might be as simple as wrapping the removeAll call with a null check on parsedWrappers but I will wait until Seiji has commented on the issue.

          Show
          johno Johno Crawford added a comment - Might be as simple as wrapping the removeAll call with a null check on parsedWrappers but I will wait until Seiji has commented on the issue.
          Hide
          johno Johno Crawford added a comment -

          Increasing priority as this blocks installing custom hpi plugins.

          Show
          johno Johno Crawford added a comment - Increasing priority as this blocks installing custom hpi plugins.
          Hide
          sogabe sogabe added a comment -

          Thanks, ver 2.4 will fix this.

          Show
          sogabe sogabe added a comment - Thanks, ver 2.4 will fix this.
          Hide
          johno Johno Crawford added a comment -

          Thanks! I will reopen if necessary.

          Show
          johno Johno Crawford added a comment - Thanks! I will reopen if necessary.
          Hide
          jjardina Jason Jardina added a comment -

          Can this be reopened, possible regression?  I just had this happen to me:

          I'm running Jenkins 2.190.3, following instructions here: https://help.veracode.com/reader/PgbNZUD7j8aY7iG~hQZWxQ/_4G8gT1rhWMgVVtCI1C57A

          I downloaded the Veracode Jenkins Plugin, custom hpi plugin.  When I get to step 5, upload the plugin, it starts to install and I get the following error:

          veracode-jenkins-plugin
          [http://10.0.3.131:8080/static/ed09d5fa/images/24x24/red.png Failure -
          jenkins.ExtensionRefreshException: org.jvnet.hudson.test.TestExtensionLoader@9ac9542<mailto:org.jvnet.hudson.test.TestExtensionLoader@9ac9542> doesn't support refresh
          at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2670)
          at hudson.PluginManager.start(PluginManager.java:951)
          at hudson.PluginManager.dynamicLoad(PluginManager.java:935)
          Caused: java.io.IOException: Failed to install veracode-jenkins-plugin plugin
          at hudson.PluginManager.dynamicLoad(PluginManager.java:942)
          at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
          Caused: java.io.IOException: Failed to dynamically deploy this plugin
          at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2056)
          at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112)
          at java.lang.Thread.run(Thread.java:748)

          Even though the error presented itself and showed failure for install of plugin.  I rebooted the Jenkins server and it showed installed in the plugin section.  I then was able to use the plugin successfully.

          Show
          jjardina Jason Jardina added a comment - Can this be reopened, possible regression?  I just had this happen to me: I'm running Jenkins 2.190.3, following instructions here: https://help.veracode.com/reader/PgbNZUD7j8aY7iG~hQZWxQ/_4G8gT1rhWMgVVtCI1C57A I downloaded the Veracode Jenkins Plugin, custom hpi plugin.  When I get to step 5, upload the plugin, it starts to install and I get the following error: veracode-jenkins-plugin [http://10.0.3.131:8080/static/ed09d5fa/images/24x24/red.png Failure - jenkins.ExtensionRefreshException: org.jvnet.hudson.test.TestExtensionLoader@9ac9542<mailto:org.jvnet.hudson.test.TestExtensionLoader@9ac9542 > doesn't support refresh at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2670) at hudson.PluginManager.start(PluginManager.java:951) at hudson.PluginManager.dynamicLoad(PluginManager.java:935) Caused: java.io.IOException: Failed to install veracode-jenkins-plugin plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:942) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052) Caused: java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2056) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:112) at java.lang.Thread.run(Thread.java:748) Even though the error presented itself and showed failure for install of plugin.  I rebooted the Jenkins server and it showed installed in the plugin section.  I then was able to use the plugin successfully.

            People

            • Assignee:
              Unassigned
              Reporter:
              gkonovalenko Gavriil Konovalenko
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: