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

jenkins does not load after recent update to 2.357

    XMLWordPrintable

Details

    Description

      I have tried disabling security, but still same error after service restart.

        1. service jenkins start
          Job for jenkins.service failed because a timeout was exceeded.
          See "systemctl  status jenkins.service" and "journalctl  -xe" for details.
           
          Tried copying latest plugin(https://plugins.jenkins.io/matrix-auth/), but still jenkins did not load.
           
          Error : 
           
          com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.security.ProjectMatrixAuthorizationStrategy at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:411) at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:46) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:523) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:348) Caused: jenkins.util.xstream.CriticalXStreamException: ---- Debugging information ---- 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 : 12 version : not available ------------------------------- at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:383) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:291) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421) at hudson.util.XStream2.unmarshal(XStream2.java:189) at hudson.util.XStream2.unmarshal(XStream2.java:160) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399) at hudson.XmlFile.unmarshal(XmlFile.java:196) Caused: java.io.IOException: Unable to read /home/jenkins/config.xml at hudson.XmlFile.unmarshal(XmlFile.java:199) at hudson.XmlFile.unmarshal(XmlFile.java:179) at jenkins.model.Jenkins.loadConfig(Jenkins.java:3297) at jenkins.model.Jenkins$12.run(Jenkins.java:3399) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1159) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused: org.jvnet.hudson.reactor.ReactorException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291) at jenkins.InitReactorRunner.run(InitReactorRunner.java:49) at jenkins.model.Jenkins.executeReactor(Jenkins.java:1194) at jenkins.model.Jenkins.<init>(Jenkins.java:984) at hudson.model.Hudson.<init>(Hudson.java:86) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.WebAppMain$3.run(WebAppMain.java:247) Caused: hudson.util.HudsonFailedToLoad at hudson.WebAppMain$3.run(WebAppMain.java:264)
           

      Attachments

        Activity

          danielbeck Daniel Beck added a comment -

          This does not demonstrate a bug in the plugin.

          It's much more likely that the plugin is disabled, or cannot load, likely due to unsatisfied dependencies. Check further up in the logs.

          danielbeck Daniel Beck added a comment - This does not demonstrate a bug in the plugin. It's much more likely that the plugin is disabled, or cannot load, likely due to unsatisfied dependencies. Check further up in the logs.

          Thanks for response.

          Solution in my case (may help others) :

          • take backup of config.xml
          • Set security to false, remove authorizationStrategy & securityRealm from config.xml. This will bring up your jenkins setup.
          • update all plugins. This will update all dependencies.
          • restore config.xml to old one and restart jenkins. 
          raghuwanshisudhir Sudhir Raghuwanshi added a comment - Thanks for response. Solution in my case (may help others) : take backup of config.xml Set security to false, remove authorizationStrategy & securityRealm from config.xml. This will bring up your jenkins setup. update all plugins. This will update all dependencies. restore config.xml to old one and restart jenkins. 

          People

            danielbeck Daniel Beck
            raghuwanshisudhir Sudhir Raghuwanshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: