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

Script Security Plugins latests version caused Jenkins 2.173 failed to start

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: depgraph-view-plugin
    • Labels:
      None
    • Environment:
      Jenkins Version : 2.173
      Script Security Plugins Version : 1.58
    • 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

          Issue Links

            Activity

            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  
            Hide
            efimov_ay Alex E added a comment - - edited

            Found that the actual error is in `depgraph-view` plugin starting from version 1.0.0

            Exception is:

            2020-03-04 09:19:43.498+0000 [id=30]    WARNING hudson.ExtensionFinder$Sezpoz#_find: Failed to load com.barchart.jenkins.cascade.GraphProjectActionFatoryjava.lang.ClassNotFoundException: hudson.plugins.depgraph_view.DependencyGraphProjectActionFactory        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1383)        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336)        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1083)        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)Caused: java.lang.NoClassDefFoundError: hudson/plugins/depgraph_view/DependencyGraphProjectActionFactory        at java.lang.ClassLoader.defineClass1(Native Method)        at java.lang.ClassLoader.defineClass(ClassLoader.java:763)        at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1149)        at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:712)        at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1320)        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373)        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336)        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:498)        at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)        at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:81)        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:2040)        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)        at net.java.sezpoz.IndexItem.element(IndexItem.java:134)Caused: java.lang.InstantiationException        at net.java.sezpoz.IndexItem.element(IndexItem.java:146)        at hudson.ExtensionFinder.getClassFromIndex(ExtensionFinder.java:741)        at hudson.ExtensionFinder.access$900(ExtensionFinder.java:89)        at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:701)        at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:690)        at hudson.ExtensionFinder$GuiceFinder.refreshExtensionAnnotations(ExtensionFinder.java:302)        at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:264)        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)        at java.lang.Class.newInstance(Class.java:442)
            ......

            EDIT:
            Looks like it's Maven cascade release plugin issue (according to this issue)

            Show
            efimov_ay Alex E added a comment - - edited Found that the actual error is in `depgraph-view` plugin starting from version 1.0.0 Exception is: 2020-03-04 09:19:43.498+0000 [id=30] WARNING hudson.ExtensionFinder$Sezpoz#_find: Failed to load com.barchart.jenkins.cascade.GraphProjectActionFatoryjava.lang.ClassNotFoundException: hudson.plugins.depgraph_view.DependencyGraphProjectActionFactory at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1383) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1083) at java.lang. ClassLoader .loadClass( ClassLoader .java:357)Caused: java.lang.NoClassDefFoundError: hudson/plugins/depgraph_view/DependencyGraphProjectActionFactory at java.lang. ClassLoader .defineClass1(Native Method) at java.lang. ClassLoader .defineClass( ClassLoader .java:763) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1149) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:712) at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1320) at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44) at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:81) at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:2040) at java.lang. ClassLoader .loadClass( ClassLoader .java:424) at java.lang. ClassLoader .loadClass( ClassLoader .java:357) at net.java.sezpoz.IndexItem.element(IndexItem.java:134)Caused: java.lang.InstantiationException at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder.getClassFromIndex(ExtensionFinder.java:741) at hudson.ExtensionFinder.access$900(ExtensionFinder.java:89) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:701) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:690) at hudson.ExtensionFinder$GuiceFinder.refreshExtensionAnnotations(ExtensionFinder.java:302) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:264) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang. Class .newInstance( Class .java:442) ...... EDIT: Looks like it's Maven cascade release plugin issue (according to this issue )
            Hide
            ggrazioli Guido Grazioli added a comment -

            Jesse Glick sorry the error mentioned in the most recent comment has nothing to do with this ticket, and also is not related to depgraph-view (indirectly, it is a problem in a dependant, see: https://github.com/jenkinsci/depgraph-view-plugin/issues/23#issuecomment-586879983 ). However, i searched the dev docs but couldn't find any way to declare conflicting plugin versions in pomfiles, have you got any leads about that, if possible at all?

            Show
            ggrazioli Guido Grazioli added a comment - Jesse Glick sorry the error mentioned in the most recent comment has nothing to do with this ticket, and also is not related to depgraph-view (indirectly, it is a problem in a dependant, see: https://github.com/jenkinsci/depgraph-view-plugin/issues/23#issuecomment-586879983  ). However, i searched the dev docs but couldn't find any way to declare conflicting plugin versions in pomfiles, have you got any leads about that, if possible at all?
            Hide
            jglick Jesse Glick added a comment -

            any way to declare conflicting plugin versions in pomfiles

            Not sure what this would mean exactly.

            Show
            jglick Jesse Glick added a comment - any way to declare conflicting plugin versions in pomfiles Not sure what this would mean exactly.
            Hide
            jglick Jesse Glick added a comment -

            JENKINS-59389 was claimed as the root cause for at least one reporter. Other reported issues are likely unrelated and possibly user error. I do not think there is any actionable bug report here, so closing. If you continue to have issues, better to file fresh bug reports with complete steps to reproduce from scratch or, at a minimum, log files detailing a complete error.

            Show
            jglick Jesse Glick added a comment - JENKINS-59389 was claimed as the root cause for at least one reporter. Other reported issues are likely unrelated and possibly user error. I do not think there is any actionable bug report here, so closing. If you continue to have issues, better to file fresh bug reports with complete steps to reproduce from scratch or, at a minimum, log files detailing a complete error.

              People

              • Assignee:
                Unassigned
                Reporter:
                dimasrizkyhp Dimas Rizky
              • Votes:
                1 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: