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

Active choices plugin causes Jenkins to crash on startup

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: active-choices-plugin
    • Labels:
      None
    • Environment:
      Jenkins version 2.176.3
      OS: Ubuntu 16.04.6 LTS

    • Similar Issues:
    • Released As:
      v 2.2.1

      Description

      After recent update of the Active Choices plugin from version 2.1 to version 2.2 Jenkins crashes on startup.

      It shows following error in the browser:

       

       Error

      java.lang.IllegalStateException: Expected 1 instance of hudson.PluginManager$PluginUpdateMonitor but got 0 at hudson.ExtensionList.lookupSingleton(ExtensionList.java:451) at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:2188) at hudson.maven.PluginImpl.init(PluginImpl.java:58) Caused: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) Caused: java.lang.Error at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282) at jenkins.InitReactorRunner.run(InitReactorRunner.java:48) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1129) at jenkins.model.Jenkins.<init>(Jenkins.java:936) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:233) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:250)

       

      Relevant part of the log file is attached.

       

      Reverting back to version 2.1 solves the issue:

       

      cd jenkins_home/plugins

      sudo mv uno-choice.{bak,jpi}

      sudo systemctl stop jenkins

      sudo systemctl start jenkins

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            Thanks for reporting it. Can you try 2.2.1 please?

            Cheers
            Bruno

            Show
            kinow Bruno P. Kinoshita added a comment - Thanks for reporting it. Can you try 2.2.1 please? Cheers Bruno
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Syncing should happen in some minutes. Then force Jenkins to refresh info from update center.

            Show
            kinow Bruno P. Kinoshita added a comment - Syncing should happen in some minutes. Then force Jenkins to refresh info from update center.
            Hide
            wl2776 Vladimir Eremeev added a comment -

            I've manually downloaded 2.2.1 from https://updates.jenkins.io/download/plugins/uno-choice/

            Now it works.

             

            cd $JENKINS_HOME/plugins
            sudo rm -rf uno-choice*
            sudo wget https://updates.jenkins.io/download/plugins/uno-choice/2.2.1/uno-choice.hpi
            sudo systemctl stop jenkins
            sudo systemctl start jenkins
            
            Show
            wl2776 Vladimir Eremeev added a comment - I've manually downloaded 2.2.1 from https://updates.jenkins.io/download/plugins/uno-choice/ Now it works.   cd $JENKINS_HOME/plugins sudo rm -rf uno-choice* sudo wget https://updates.jenkins.io/download/plugins/uno-choice/2.2.1/uno-choice.hpi sudo systemctl stop jenkins sudo systemctl start jenkins

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                wl2776 Vladimir Eremeev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: