Upgrading from 2.164.1 to 2.235.1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrading from 2.164.1 to 2.235.1

Sean LeBlanc

Last week, I tried to update to Jenkins 2.235.1, but Jenkins would not come up; it was an error about ProjectMatrixAuthorizationStrategy (see error stack at bottom of email).

Moving back 2.164.1 war did not work, I had to use snapshot of VM to recover. Now, I'm wondering what the best path forward would be? Our current version of the Matrix Authorization Strategy says it is 1.5 (and the update listed in plugin manager is 2.5), but with big red warning about:


"Warning: the new version of this plugin claims to use a different settings format than the installed version. Jobs using this plugin may need to be reconfigured, and/or you may not be able to cleanly revert to the prior version without manually restoring old settings. Consult the plugin release notes for details."


Should I try to update this plugin, then update to 2.235.1? Or go to some interim version of Jenkins between our LTS version (2.164.1) and 2.235.1?


Exception when trying to start Jenkins with 2.235.1 war:

com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.security.ProjectMatrixAuthorizationStrategy

                at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:379)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at org.jenkinsci.jruby.JRubyMapper.realClass(JRubyMapper.java:34)

                at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)

                at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:476)

                at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:326)

Caused: jenkins.util.xstream.CriticalXStreamException: hudson.security.ProjectMatrixAuthorizationStrategy : hudson.security.ProjectMatrixAuthorizationStrategy

---- Debugging information ----

message             : hudson.security.ProjectMatrixAuthorizationStrategy

cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException

cause-message       : hudson.security.ProjectMatrixAuthorizationStrategy

class               : hudson.model.Hudson

required-type       : hudson.model.Hudson

converter-type      : hudson.util.RobustReflectionConverter

path                : /hudson/authorizationStrategy

line number         : 16

version             : not available

-------------------------------

                at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:355)

                at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:269)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

                at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)

                at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)

                at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)

                at hudson.util.XStream2.unmarshal(XStream2.java:161)

                at hudson.util.XStream2.unmarshal(XStream2.java:132)

                at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)

                at hudson.XmlFile.unmarshal(XmlFile.java:180)

Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml

                at hudson.XmlFile.unmarshal(XmlFile.java:183)

                at hudson.XmlFile.unmarshal(XmlFile.java:163)

                at jenkins.model.Jenkins.loadConfig(Jenkins.java:3147)

                at jenkins.model.Jenkins.access$1200(Jenkins.java:318)

                at jenkins.model.Jenkins$13.run(Jenkins.java:3248)

                at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)

                at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)

                at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)

                at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)

                at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)

                at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                at java.lang.Thread.run(Thread.java:745)

Caused: org.jvnet.hudson.reactor.ReactorException

                at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)

                at jenkins.InitReactorRunner.run(InitReactorRunner.java:50)

                at jenkins.model.Jenkins.executeReactor(Jenkins.java:1164)

                at jenkins.model.Jenkins.<init>(Jenkins.java:964)

                at hudson.model.Hudson.<init>(Hudson.java:85)

                at hudson.model.Hudson.<init>(Hudson.java:81)

                at hudson.WebAppMain$3.run(WebAppMain.java:262)

Caused: hudson.util.HudsonFailedToLoad

                at hudson.WebAppMain$3.run(WebAppMain.java:279)

Page generated:

Jun 19, 2020 7:30:09 PM MDT

Jenkins 2.235.1




--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5ef493c9-4a77-4b26-2e8c-e800ebd6d969%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading from 2.164.1 to 2.235.1

Daniel Beck-2
This looks like the matrix-auth plugin is disabled or unable to load. Check the Jenkins log with the error message for why that is.

1.5 is really old, you should update -- probably before the next attempt at updating Jenkins. It's almost certainly safe to do so, this is the documentation underlying the warning (second and third list item):

On Mon, Jun 22, 2020 at 6:14 PM Sean LeBlanc <[hidden email]> wrote:

Last week, I tried to update to Jenkins 2.235.1, but Jenkins would not come up; it was an error about ProjectMatrixAuthorizationStrategy (see error stack at bottom of email).

Moving back 2.164.1 war did not work, I had to use snapshot of VM to recover. Now, I'm wondering what the best path forward would be? Our current version of the Matrix Authorization Strategy says it is 1.5 (and the update listed in plugin manager is 2.5), but with big red warning about:


"Warning: the new version of this plugin claims to use a different settings format than the installed version. Jobs using this plugin may need to be reconfigured, and/or you may not be able to cleanly revert to the prior version without manually restoring old settings. Consult the plugin release notes for details."


Should I try to update this plugin, then update to 2.235.1? Or go to some interim version of Jenkins between our LTS version (2.164.1) and 2.235.1?


Exception when trying to start Jenkins with 2.235.1 war:

com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.security.ProjectMatrixAuthorizationStrategy

                at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:379)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at org.jenkinsci.jruby.JRubyMapper.realClass(JRubyMapper.java:34)

                at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)

                at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

                at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48)

                at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:476)

                at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:326)

Caused: jenkins.util.xstream.CriticalXStreamException: hudson.security.ProjectMatrixAuthorizationStrategy : hudson.security.ProjectMatrixAuthorizationStrategy

---- Debugging information ----

message             : hudson.security.ProjectMatrixAuthorizationStrategy

cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException

cause-message       : hudson.security.ProjectMatrixAuthorizationStrategy

class               : hudson.model.Hudson

required-type       : hudson.model.Hudson

converter-type      : hudson.util.RobustReflectionConverter

path                : /hudson/authorizationStrategy

line number         : 16

version             : not available

-------------------------------

                at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:355)

                at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:269)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

                at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)

                at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)

                at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)

                at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)

                at hudson.util.XStream2.unmarshal(XStream2.java:161)

                at hudson.util.XStream2.unmarshal(XStream2.java:132)

                at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)

                at hudson.XmlFile.unmarshal(XmlFile.java:180)

Caused: java.io.IOException: Unable to read /var/lib/jenkins/config.xml

                at hudson.XmlFile.unmarshal(XmlFile.java:183)

                at hudson.XmlFile.unmarshal(XmlFile.java:163)

                at jenkins.model.Jenkins.loadConfig(Jenkins.java:3147)

                at jenkins.model.Jenkins.access$1200(Jenkins.java:318)

                at jenkins.model.Jenkins$13.run(Jenkins.java:3248)

                at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)

                at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)

                at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)

                at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)

                at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)

                at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

                at java.lang.Thread.run(Thread.java:745)

Caused: org.jvnet.hudson.reactor.ReactorException

                at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)

                at jenkins.InitReactorRunner.run(InitReactorRunner.java:50)

                at jenkins.model.Jenkins.executeReactor(Jenkins.java:1164)

                at jenkins.model.Jenkins.<init>(Jenkins.java:964)

                at hudson.model.Hudson.<init>(Hudson.java:85)

                at hudson.model.Hudson.<init>(Hudson.java:81)

                at hudson.WebAppMain$3.run(WebAppMain.java:262)

Caused: hudson.util.HudsonFailedToLoad

                at hudson.WebAppMain$3.run(WebAppMain.java:279)

Page generated:

Jun 19, 2020 7:30:09 PM MDT

Jenkins 2.235.1




--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5ef493c9-4a77-4b26-2e8c-e800ebd6d969%40gmail.com.


--

Daniel Beck
Senior Software Engineer
CloudBees, Inc.

 


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMo7PtK7a8zF%3DYQKJqePGEd4cTY7UebAHUyTSGjw5GysLwAUQQ%40mail.gmail.com.