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

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

      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.

          [JENKINS-33095] Upgrade to folder 5.2.1 + matrix-auth 1.3 results in dead Jenkins

          Jesse Glick added a comment -

          Sigh, another case where we needed JENKINS-28942.

          Jesse Glick added a comment - Sigh, another case where we needed JENKINS-28942 .

          Jesse Glick added a comment -

          I released Icon Shim 2.0.3 which should fix this problem. It is not yet on the update centers.

          Jesse Glick added a comment - I released Icon Shim 2.0.3 which should fix this problem. It is not yet on the update centers.

          Brantone added a comment -

          Thanks for the fast update

          Brantone added a comment - Thanks for the fast update

          Jesse Glick added a comment -

          So fixed as far as code goes, but we need to wait for the update center to get the 2.0.3 release. Unfortunately an attempt to manually kick it failed—the UC was regenerated, but with a cached version of the Maven index that still listed 2.0.2.

          Jesse Glick added a comment - So fixed as far as code goes, but we need to wait for the update center to get the 2.0.3 release. Unfortunately an attempt to manually kick it failed—the UC was regenerated, but with a cached version of the Maven index that still listed 2.0.2.

          Brantone added a comment -

          Got updated plugins, all is looking right in the world again.
          Thanks for fast turnaround.

          Brantone added a comment - Got updated plugins, all is looking right in the world again. Thanks for fast turnaround.

          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/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 .

          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).

          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 added a comment - Matrix Auth 1.3.2 does NOT automatically pull in CloudBees Folders Plugin. Installing CloudBees Folders Plugin manually solves the problem.

          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)
          
          

          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)

          M Chon added a comment -

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

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

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

              Created:
              Updated:
              Resolved: