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

All matrix jobs disappeared after upgrade to 1.562

    Details

    • Similar Issues:

      Description

      Hi,

      I upgraded a jenkins installation to 1.562 today, which made all matrix jobs disappear from the front page, i.e. they can no longer be viewed or run.

      Here's a snippet from the logs:

      May 04, 2014 6:19:43 PM SEVERE jenkins.InitReactorRunner$1 onTaskFailed

      Failed Loading job foo
      groovy.lang.MissingPropertyException: No such property: hudson for class: Script1
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
      at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
      at Script1.run(Script1.groovy:1)
      at hudson.matrix.FilterScript.evaluate(FilterScript.java:36)
      at hudson.matrix.FilterScript.apply(FilterScript.java:73)
      at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101)
      at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91)
      at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:637)
      at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:504)
      at hudson.model.Items.load(Items.java:273)
      at jenkins.model.Jenkins$18.run(Jenkins.java:2594)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
      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:744)

      This is with jenkins 1.562 (from the Debian package from jenkins-ci.org). The new Matrix Project Plugin (version 1.0) is installed and enabled.

      Please let me know if there is a temporary workaround to make the jobs accessible again and/or what the proper fix for this is.

      The job files are still there (/var/lib/jenkins/jobs/foo/config.xml etc).

        Attachments

          Issue Links

            Activity

            uwehermann Uwe Hermann created issue -
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            What version have you used before?

            The temporary "workaround" is to remove configuration filters from project configurations. Then the Groovy script evaluation will be skipped.

            BTW, evaluation failures should not break the jobs loading...

            Show
            oleg_nenashev Oleg Nenashev added a comment - What version have you used before? The temporary "workaround" is to remove configuration filters from project configurations. Then the Groovy script evaluation will be skipped. BTW, evaluation failures should not break the jobs loading...
            Hide
            uwehermann Uwe Hermann added a comment -

            I don't know which version exactly was running before, sorry.

            The workaround works (somewhat) – I manually edited the config.xml file and commented out the <combinationFilter> line, which makes the project appear again after a jenkins restart or "reload config from disk".

            However, the filter was there intentionally of course, i.e. we need to filter there otherwise other things would break, so a permanent fix for this would be very welcome.

            Show
            uwehermann Uwe Hermann added a comment - I don't know which version exactly was running before, sorry. The workaround works (somewhat) – I manually edited the config.xml file and commented out the <combinationFilter> line, which makes the project appear again after a jenkins restart or "reload config from disk". However, the filter was there intentionally of course, i.e. we need to filter there otherwise other things would break, so a permanent fix for this would be very welcome.
            Hide
            danielbeck Daniel Beck added a comment -

            Could you share the failing script?

            Show
            danielbeck Daniel Beck added a comment - Could you share the failing script?
            Hide
            zgallagher Zachary Gallagher added a comment -

            I'm getting the same error. I didn't lose all my jobs. Can't parse out why I lost the ones I did and kept others. But heres the log output

            Failed Loading job Api_Trunk
            groovy.lang.MissingPropertyException: No such property: hudson for class: Script1
            at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
            at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
            at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
            at Script1.run(Script1.groovy:1)
            at hudson.matrix.FilterScript.evaluate(FilterScript.java:36)
            at hudson.matrix.FilterScript.apply(FilterScript.java:73)
            at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101)
            at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91)
            at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:623)
            at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:490)
            at hudson.model.Items.load(Items.java:273)
            at jenkins.model.Jenkins$18.run(Jenkins.java:2593)
            at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
            at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
            at jenkins.model.Jenkins$7.runTask(Jenkins.java:904)
            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$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)

            Show
            zgallagher Zachary Gallagher added a comment - I'm getting the same error. I didn't lose all my jobs. Can't parse out why I lost the ones I did and kept others. But heres the log output Failed Loading job Api_Trunk groovy.lang.MissingPropertyException: No such property: hudson for class: Script1 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at Script1.run(Script1.groovy:1) at hudson.matrix.FilterScript.evaluate(FilterScript.java:36) at hudson.matrix.FilterScript.apply(FilterScript.java:73) at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101) at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91) at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:623) at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:490) at hudson.model.Items.load(Items.java:273) at jenkins.model.Jenkins$18.run(Jenkins.java:2593) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:904) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
            Hide
            danielbeck Daniel Beck added a comment -

            Zachary Gallagher: Your script is likely referencing a class that's not available in the new Matrix Project plugin's class loader by it's fully qualified name (e.g. hudson.model.Hudson). But it'd be best if you would share your script(s) – or a simplified variant that also shows the problem – to facilitate further analysis.

            Show
            danielbeck Daniel Beck added a comment - Zachary Gallagher : Your script is likely referencing a class that's not available in the new Matrix Project plugin's class loader by it's fully qualified name (e.g. hudson.model.Hudson ). But it'd be best if you would share your script(s) – or a simplified variant that also shows the problem – to facilitate further analysis.
            Hide
            dmeibusch dmeibusch added a comment -

            I've tried with a Groovy script (in Combination Filter) that contains only "true" (the simplest possible expression). Same error and stacktrace.

            Show
            dmeibusch dmeibusch added a comment - I've tried with a Groovy script (in Combination Filter) that contains only "true" (the simplest possible expression). Same error and stacktrace.
            jeremyrampon Jeremy Rampon made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-22879 [ JENKINS-22879 ]
            jeremyrampon Jeremy Rampon made changes -
            Link This issue is related to JENKINS-22837 [ JENKINS-22837 ]
            jeremyrampon Jeremy Rampon made changes -
            Link This issue is related to JENKINS-16587 [ JENKINS-16587 ]
            jeremyrampon Jeremy Rampon made changes -
            Link This issue is related to JENKINS-16587 [ JENKINS-16587 ]
            olivergondza Oliver Gondža made changes -
            Link This issue duplicates JENKINS-22879 [ JENKINS-22879 ]
            olivergondza Oliver Gondža made changes -
            Link This issue duplicates JENKINS-22697 [ JENKINS-22697 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ] Jesse Glick [ jglick ]
            Hide
            jglick Jesse Glick added a comment -

            Fixing in 1.1.

            Show
            jglick Jesse Glick added a comment - Fixing in 1.1.
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            olivergondza Oliver Gondža made changes -
            Link This issue is related to JENKINS-22879 [ JENKINS-22879 ]
            olivergondza Oliver Gondža made changes -
            Link This issue duplicates JENKINS-22879 [ JENKINS-22879 ]
            danielbeck Daniel Beck made changes -
            Link This issue duplicates JENKINS-22879 [ JENKINS-22879 ]
            Hide
            ykaul Yaniv Kaul added a comment -

            I've upgraded from 1.556 to 1.568, and am still seeing this exact exception.
            I'm not seeing JENKINS-22863 in http://jenkins-ci.org/changelog - is it in a build already?

            Show
            ykaul Yaniv Kaul added a comment - I've upgraded from 1.556 to 1.568, and am still seeing this exact exception. I'm not seeing JENKINS-22863 in http://jenkins-ci.org/changelog - is it in a build already?
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            @Yaniv
            Matrix Project Plugin has been decoupled from the Jenkins core.
            You should update the plugin instead of the core

            Show
            oleg_nenashev Oleg Nenashev added a comment - @Yaniv Matrix Project Plugin has been decoupled from the Jenkins core. You should update the plugin instead of the core
            Hide
            ykaul Yaniv Kaul added a comment -

            I have updated both the plugin (used v1.2) and core.
            I've updated all relevant plugins after upgrading the core, exactly because of this change.
            Still the issue appeared.

            Show
            ykaul Yaniv Kaul added a comment - I have updated both the plugin (used v1.2) and core. I've updated all relevant plugins after upgrading the core, exactly because of this change. Still the issue appeared.
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Hide
            jglick Jesse Glick added a comment -

            @ykaul and did you double-check that you are really running 1.2 in /pluginManager/installed? And that you are really seeing the same problem as is reported here and not something else? Best to install Support Core and attach a diagnostic bundle so others can see what you are really running and the original error in the log.

            Show
            jglick Jesse Glick added a comment - @ykaul and did you double-check that you are really running 1.2 in /pluginManager/installed ? And that you are really seeing the same problem as is reported here and not something else? Best to install Support Core and attach a diagnostic bundle so others can see what you are really running and the original error in the log.
            Hide
            ykaul Yaniv Kaul added a comment - - edited

            I've installed from fresh Jenkins 1.569, from RPM. I have the matrix plugin 1.2 installed as well as https://wiki.jenkins-ci.org/display/JENKINS/matrix+combinations+plugin v1.06.
            When creating the simples matrix job, the exception occurs.
            Here's my job:

            • multi-configuration job
            • parameterized:
            • bool parameter (dummy, just to have a parameter)
            • matrix combinations filter: name: FILTER
            • Configuration Matrix:
            • User Defined Axis: name: ax1 values: axA axB
            • User Defined Axis: name: ax2 values: axC axD

            That's it. No steps, no nodes, no git, nothing.
            When I go to execute it:
            avax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/hudson/model/ParametersDefinitionProperty/index.jelly:50:78: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/lib/form/entry.jelly:73:23: <d:invokeBody> No such property: p for class: hudson.plugins.matrix_configuration_parameter.matrixcombinationparameterDefinition.index
            at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60)
            at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:163)
            at hudson.model.AbstractProject.doBuild(AbstractProject.java:1726)
            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)

            See attached support.zip

            Show
            ykaul Yaniv Kaul added a comment - - edited I've installed from fresh Jenkins 1.569, from RPM. I have the matrix plugin 1.2 installed as well as https://wiki.jenkins-ci.org/display/JENKINS/matrix+combinations+plugin v1.06. When creating the simples matrix job, the exception occurs. Here's my job: multi-configuration job parameterized: bool parameter (dummy, just to have a parameter) matrix combinations filter: name: FILTER Configuration Matrix: User Defined Axis: name: ax1 values: axA axB User Defined Axis: name: ax2 values: axC axD That's it. No steps, no nodes, no git, nothing. When I go to execute it: avax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar: file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/hudson/model/ParametersDefinitionProperty/index.jelly:50:78: <st:include> org.apache.commons.jelly.JellyTagException: jar: file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.569.jar!/lib/form/entry.jelly:73:23: <d:invokeBody> No such property: p for class: hudson.plugins.matrix_configuration_parameter.matrixcombinationparameterDefinition.index at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60) at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:163) at hudson.model.AbstractProject.doBuild(AbstractProject.java:1726) 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) See attached support.zip
            ykaul Yaniv Kaul made changes -
            Attachment support.zip [ 26305 ]
            Hide
            jglick Jesse Glick added a comment -

            @ykaul sounds like a separate bug while I filed as JENKINS-23561.

            Show
            jglick Jesse Glick added a comment - @ykaul sounds like a separate bug while I filed as JENKINS-23561 .
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            ikedam ikedam added a comment -

            Every plugin using /lib/project/matrix tag causes the same problem.

            Show
            ikedam ikedam added a comment - Every plugin using /lib/project/matrix tag causes the same problem.
            Hide
            jglick Jesse Glick added a comment -

            @ikedam I grepped @jenkinsci sources for references to this tag. I found only the usage from matrix-combinations-parameter, filed as JENKINS-23561.

            Show
            jglick Jesse Glick added a comment - @ikedam I grepped @jenkinsci sources for references to this tag. I found only the usage from matrix-combinations-parameter , filed as JENKINS-23561 .
            Hide
            ikedam ikedam added a comment -

            Fixed matrix-combinations-parameter-plugin in 1.0.7.
            It will be available in a day.

            Show
            ikedam ikedam added a comment - Fixed matrix-combinations-parameter-plugin in 1.0.7. It will be available in a day.
            ikedam ikedam made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            Hide
            ikedam ikedam added a comment -

            marix-combinations-parameter-plugin no longer depends on /lib/project/matrix tag. (It is anyway required to fix JENKINS-23030).

            Show
            ikedam ikedam added a comment - marix-combinations-parameter-plugin no longer depends on /lib/project/matrix tag. (It is anyway required to fix JENKINS-23030 ).
            Hide
            ykaul Yaniv Kaul added a comment -

            Looks good on my setup: had 1.556, upgraded the plugin first, then to 1.570, and all seems to be working.
            Thanks!

            Show
            ykaul Yaniv Kaul added a comment - Looks good on my setup: had 1.556, upgraded the plugin first, then to 1.570, and all seems to be working. Thanks!
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 155008 ] JNJira + In-Review [ 207676 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                uwehermann Uwe Hermann
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: