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

Upgrade to folder 5.2.1 + matrix-auth 1.3 results in dead Jenkins

    XMLWordPrintable

Details

    Description

      Routine update of plugins on our 1.642 version Dev system (to test out before Prod) and notice the warnings about Folder + Matrix Auth , so do the right thing and back things up, prepared for some config tweaking ...

      Sadly, fails coming back online with:

      hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
          at hudson.WebAppMain$3.run(WebAppMain.java:237)
      Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
          at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
          at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
          at jenkins.model.Jenkins.executeReactor(Jenkins.java:926)
          at jenkins.model.Jenkins.<init>(Jenkins.java:818)
          at hudson.model.Hudson.<init>(Hudson.java:85)
          at hudson.model.Hudson.<init>(Hudson.java:81)
          at hudson.WebAppMain$3.run(WebAppMain.java:225)
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
          at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
          at jenkins.model.Jenkins$8.runTask(Jenkins.java:915)
          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:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
          ... 8 more
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
          at java.util.ArrayList.rangeCheck(ArrayList.java:635)
          at java.util.ArrayList.get(ArrayList.java:411)
          at hudson.ExtensionList.get(ExtensionList.java:171)
          at hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1323)
          at hudson.maven.PluginImpl.init(PluginImpl.java:58)
          ... 13 more
      

      Still unsure how this was caused, definitely know rolling back matrix-auth to 1.1 or 1.2 resolves it.

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/resources/com/cloudbees/hudson/plugins/folder/properties/AuthorizationMatrixProperty/config.jelly
            http://jenkins-ci.org/commit/matrix-auth-plugin/4e43378df03b0843cba30eb86add712151ba69f3
            Log:
            Forgot to include AuthorizationMatrixProperty/config.jelly here.
            Also requiring icon-shim 2.0.3 to force the user to pick up https://github.com/jenkinsci/icon-shim-plugin/pull/2 and avoid JENKINS-33095.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/resources/com/cloudbees/hudson/plugins/folder/properties/AuthorizationMatrixProperty/config.jelly http://jenkins-ci.org/commit/matrix-auth-plugin/4e43378df03b0843cba30eb86add712151ba69f3 Log: Forgot to include AuthorizationMatrixProperty/config.jelly here. Also requiring icon-shim 2.0.3 to force the user to pick up https://github.com/jenkinsci/icon-shim-plugin/pull/2 and avoid JENKINS-33095 .
            jglick Jesse Glick added a comment -

            In order to correct a problem configuring per-folder access control lists, you will need to update Matrix Auth to 1.3.2 (which will pull in Folders 5.2.2 and Icon Shim 2.0.3).

            jglick Jesse Glick added a comment - In order to correct a problem configuring per-folder access control lists, you will need to update Matrix Auth to 1.3.2 (which will pull in Folders 5.2.2 and Icon Shim 2.0.3).

            Matrix Auth 1.3.2 does NOT automatically pull in CloudBees Folders Plugin. Installing CloudBees Folders Plugin manually solves the problem.

            slawomir_czarko Slawomir Czarko added a comment - Matrix Auth 1.3.2 does NOT automatically pull in CloudBees Folders Plugin. Installing CloudBees Folders Plugin manually solves the problem.
            mcsf M Chon added a comment - - edited

            I am seeing this error in jenkins.log on startup.
            I do not have the Cloudbees Folders Plugin installed.
            Will installing it make this error go away?

            INFO: Prepared all plugins
            Jul 07, 2016 10:44:35 AM hudson.ExtensionFinder$Sezpoz scout
            WARNING: Failed to scout com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
            java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
                    at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
                    at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:662)
                    at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:383)
            
            
            mcsf M Chon added a comment - - edited I am seeing this error in jenkins.log on startup. I do not have the Cloudbees Folders Plugin installed. Will installing it make this error go away? INFO: Prepared all plugins Jul 07, 2016 10:44:35 AM hudson.ExtensionFinder$Sezpoz scout WARNING: Failed to scout com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:662) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:383)
            mcsf M Chon added a comment -

            OK, after installing Cloudbees Folders Plugin, these messages went away.

            mcsf M Chon added a comment - OK, after installing Cloudbees Folders Plugin, these messages went away.

            People

              Unassigned Unassigned
              brantone Brantone
              Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: