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

Script Security Plugins latests version caused Jenkins 2.173 failed to start

    Details

    • Similar Issues:

      Description

      I updating my jenkins from 2.32.2 to 2.173, after many tries of removing/adding .jpi files inside plugins file, I already come to conclusion that the script-security plugins causing this error because when I removing these plugins, the jenkins is able too boot but with lots of missing dependency error due to script-security is not present

       

      java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper
       at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:125)
       at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105)
       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:1096)
       at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
       at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      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:1130)
       at jenkins.model.Jenkins.<init>(Jenkins.java:932)
       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)

       

      I really hope that you guys can help me in this, thank.

       

      I honestly didn't know wether the other plugins that caused this or it's purely from script-security that caused this, in some case, I'll give my list of plugins that need script-security to be able to ran

       

       

       

      Dependency errors: Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to restore the functionality provided by these plugins.
      
      Command Agent Launcher Plugin version 1.3
        script-security version 1.36 is missing. To fix, install version 1.36 or later.
      
      JUnit Plugin version 1.27
        script-security version 1.30 is missing. To fix, install version 1.30 or later.
      
      CloudBees AWS Credentials Plugin version 1.26
        script-security version 1.53 is missing. To fix, install version 1.53 or later.
      
      Pipeline: Supporting APIs version 2.20
        script-security version 1.39 is missing. To fix, install version 1.39 or later.
      
      Downstream dependency errors:
      
      GitHub Pipeline for Blue Ocean version 1.0.0-b15
         Pipeline REST API for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Git Pipeline for Blue Ocean version 1.0.0-b15
        Pipeline REST API for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Pipeline version 2.5
        Pipeline: Input Step version 2.9 failed to load. Fix this plugin first.
      
      Config API for Blue Ocean version 1.0.0-b15
        REST Implementation for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Pipeline: Build Step version 2.7
        Pipeline: Supporting APIs version 2.20 failed to load. Fix this plugin first.
      
      Pipeline: Stage View Plugin version 2.10
        Pipeline: REST API Plugin version 2.10 failed to load. Fix this plugin first.
      
      Pipeline: Declarative version 1.3.3.1
        Pipeline: Shared Groovy Libraries version 2.13 failed to load. Fix this plugin first.
      
      GitHub Branch Source Plugin version 1.10.1
        GitHub plugin version 1.29.4 failed to load. Fix this plugin first.
      
      Pipeline REST API for Blue Ocean version 1.0.0-b15
        REST Implementation for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Matrix Project Plugin version 1.14
        JUnit Plugin version 1.27 failed to load. Fix this plugin first.
      
      Pipeline: Multibranch version 2.20
        Pipeline: Groovy version 2.57.3 failed to load. Fix this plugin first.
      
      Maven Integration plugin version 3.2
        JUnit Plugin version 1.27 failed to load. Fix this plugin first.
      
      Git plugin version 3.9.3
        Matrix Project Plugin version 1.14 failed to load. Fix this plugin first.
      
      Pipeline: Nodes and Processes version 2.22
        Pipeline: Supporting APIs version 2.20 failed to load. Fix this plugin first.
      
      Build Blocker Plugin version 1.7.3
        Matrix Project Plugin version 1.14 failed to load. Fix this plugin first.
      
      Prometheus metrics plugin version 1.1.1
        JUnit Plugin version 1.27 failed to load. Fix this plugin first.
      
      Autofavorite for Blue Ocean version 1.2.3
        Pipeline: Job version 2.25 failed to load. Fix this plugin first.
      
      Pipeline: Job version 2.25
        Pipeline: Supporting APIs version 2.20 failed to load. Fix this plugin first.
      
      Rebuilder version 1.30
        Matrix Project Plugin version 1.14 failed to load. Fix this plugin first.
      
      Pipeline: Declarative Extension Points API version 1.3.3.1
        Pipeline: Groovy version 2.57.3 failed to load. Fix this plugin first.
      
      GitHub plugin version 1.29.4
        Jenkins Git plugin version 3.9.3 failed to load. Fix this plugin first.
      
      Pipeline Graph Analysis Plugin version 1.9
        Pipeline: Groovy version 2.57.3 failed to load. Fix this plugin first.
      
      Parameterized Trigger plugin version 2.35.2
        Conditional BuildStep version 1.3.6 failed to load. Fix this plugin first.
      
      CloudBees AWS Credentials Plugin version 1.26
        Pipeline: Declarative Extension Points API version 1.3.3.1 failed to load. Fix this plugin first.
      
      Pipeline: Shared Groovy Libraries version 2.13
        Pipeline: Groovy version 2.57.3 failed to load. Fix this plugin first.
      
      Pipeline: Groovy version 2.57.3
        Pipeline: Supporting APIs version 2.20 failed to load. Fix this plugin first.
      
      Personalization for Blue Ocean version 1.0.0-b15
        Events API for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Blue Ocean beta version 1.0.0-b15
        Dashboard for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      GitHub Organization Folder Plugin version 1.5
        Pipeline: Groovy version 2.57.3 failed to load. Fix this plugin first.
      
      Pipeline: REST API Plugin version 2.10
        Pipeline: Job version 2.25 failed to load. Fix this plugin first.
      
      Conditional BuildStep version 1.3.6
        Maven Integration plugin version 3.2 failed to load. Fix this plugin first.
      
      Environment Injector Plugin version 2.1.6
        Matrix Project Plugin version 1.14 failed to load. Fix this plugin first.
      
      Display URL for Blue Ocean version 2.2.0
        Pipeline: Job version 2.25 failed to load. Fix this plugin first.
      
      REST Implementation for Blue Ocean version 1.0.0-b15
        Favorite version 2.3.2 failed to load. Fix this plugin first.
      
      Events API for Blue Ocean version 1.0.0-b15
        Pipeline REST API for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      
      Build Pipeline Plugin version 1.5.8
        Jenkins Parameterized Trigger plugin version 2.35.2 failed to load. Fix this plugin first.
      
      Multijob plugin version 1.32
        Maven Integration plugin version 3.2 failed to load. Fix this plugin first.
      
      Pipeline: Input Step version 2.9
        Pipeline: Supporting APIs version 2.20 failed to load. Fix this plugin first.
      
      Pipeline: Declarative Agent API version 1.1.1
        Pipeline: Declarative Extension Points API version 1.3.3.1 failed to load. Fix this plugin first.
      
      Favorite version 2.3.2
        Matrix Project Plugin version 1.14 failed to load. Fix this plugin first.
      
      Dashboard for Blue Ocean version 1.0.0-b15
        Events API for Blue Ocean version 1.0.0-b15 failed to load. Fix this plugin first.
      

       

        Attachments

          Activity

          Hide
          akom Alexander Komarov added a comment - - edited

          I had the same issue when I upgraded only some (not all) plugins while runing Jenkins 2.174. My plugins were all 3-5 months old.

          1. I installed the kubernetes plugin, which pulled in some dependencies (some pipeline, etc). The log shows that the upgrade failed (see attached), but Jenkins UI happily restarted on completion.
          2. Jenkins would not start (error in this ticket)
          3. I restored plugins, Jenkins started
          4. I then upgraded all plugins, Jenkins started fine.
            upgrade-log.txt
          Show
          akom Alexander Komarov added a comment - - edited I had the same issue when I upgraded only some (not all) plugins while runing Jenkins 2.174. My plugins were all 3-5 months old. I installed the kubernetes plugin, which pulled in some dependencies (some pipeline, etc). The log shows that the upgrade failed (see attached), but Jenkins UI happily restarted on completion. Jenkins would not start (error in this ticket) I restored plugins, Jenkins started I then upgraded all plugins, Jenkins started fine. upgrade-log.txt
          Hide
          wl2776 Vladimir Eremeev added a comment - - edited

          Same situation here. 

          Jenkins version 2.176.3

          Script Security plugin version 1.64

           

          After routine plugin update Jenkins has started crashing on startup and showing exception, similar to one, provided in the bug description.

           

          I've searched for the errors and have found this bug report.

           

          Tried removing script-security plugin, and Jenkins has started.

          Then, I've tried installing script-security plugin version 1.64 and crashes appeared again.

           

          Update.

          Actually, crashes were caused by Active-choice plugin. It was recently updated from 2.1 to 2.2

           

          I've found this by rolling back script-security plugin. All versions from 1.64 back to 1.50 have caused crash. That suggested that the cause was somewhere else.

          Show
          wl2776 Vladimir Eremeev added a comment - - edited Same situation here.  Jenkins version 2.176.3 Script Security plugin version 1.64   After routine plugin update Jenkins has started crashing on startup and showing exception, similar to one, provided in the bug description.   I've searched for the errors and have found this bug report.   Tried removing script-security plugin, and Jenkins has started. Then, I've tried installing script-security plugin version 1.64 and crashes appeared again.   Update. Actually, crashes were caused by Active-choice plugin. It was recently updated from 2.1 to 2.2   I've found this by rolling back script-security plugin. All versions from 1.64 back to 1.50 have caused crash. That suggested that the cause was somewhere else.
          Hide
          cazsan Casimir Bonnet added a comment -

          Same issue here.

          As Vladimir Eremeev said, rollbacking uno-choices to 2.1 made the script-securtiy (v1.64) working and the whole jenkins to work back again.

          Show
          cazsan Casimir Bonnet added a comment - Same issue here. As Vladimir Eremeev said, rollbacking uno-choices to 2.1 made the script-securtiy (v1.64) working and the whole jenkins to work back again.
          Hide
          wl2776 Vladimir Eremeev added a comment -

          Updating Active choice to 2.2.1 has solved the issue

          https://issues.jenkins-ci.org/browse/JENKINS-59389

          Show
          wl2776 Vladimir Eremeev added a comment - Updating Active choice to 2.2.1 has solved the issue https://issues.jenkins-ci.org/browse/JENKINS-59389
          Hide
          brendanhatton Brendan Hatton added a comment -

          I encountered a similar issue after updating the script-security plugin. For me the problem was related to the OWASP family of plugins (dependency-check, dependency-track, formatter).

          The way I solved it was to

          1. Disabled the script-security plugin to allow jenkins to start
          2. install two additional plugins which were complaining in the logs - Active Choices and Static Analysis Utilities

          This was a big pain for us

           

          Show
          brendanhatton Brendan Hatton added a comment - I encountered a similar issue after updating the script-security plugin. For me the problem was related to the OWASP family of plugins (dependency-check, dependency-track, formatter). The way I solved it was to Disabled the script-security plugin to allow jenkins to start install two additional plugins which were complaining in the logs - Active Choices and Static Analysis Utilities This was a big pain for us  

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              dimasrizkyhp Dimas Rizky
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: