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

Unable to Upgrade from 1.339 to 1.346 or 1.347

    Details

    • Similar Issues:

      Description

      For the second time in a row the upgrade fails.
      It seems hudsons' new revisions doesn't like our config file.
      Back to hudson v1.339 goes without a problem.

      Here is the error shown in hudson start page (the config.xml is attached):

      org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /opt/tse/hudson_home/config.xml
      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
      at hudson.model.Hudson.executeReactor(Hudson.java:667)
      at hudson.model.Hudson.(Hudson.java:585)
      at hudson.WebAppMain$2.run(WebAppMain.java:224)
      Caused by: hudson.util.IOException2: Unable to read /opt/tse/hudson_home/config.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:152)
      at hudson.model.Hudson$11.run(Hudson.java:2076)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at hudson.model.Hudson$3.runTask(Hudson.java:649)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Invalid reference
      ---- Debugging information ----
      reference : ../../../hudson.plugins.sectioned__view.ListViewSection/jobNames/comparator
      class : hudson.model.Hudson
      required-type : java.util.TreeSet
      path : /hudson/views/hudson.plugins.sectioned_view.SectionedView[4]/sections/hudson.plugins.sectioned_view.JobGraphsSection/jobNames/comparator
      line number : 651
      -------------------------------
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:56)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.converters.collections.TreeSetConverter.unmarshal(TreeSetConverter.java:69)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:265)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:223)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:174)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:186)
      at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:229)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:265)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:223)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:174)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:86)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
      at hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:77)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:265)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:223)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:174)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
      at hudson.util.XStream2.unmarshal(XStream2.java:70)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
      at hudson.XmlFile.unmarshal(XmlFile.java:148)
      ... 9 more

        Attachments

          Activity

          Hide
          fprumbau fprumbau added a comment -

          Our release platform could be upgraded without problem from 1.335 -> 1.348. Of course the config is slightly different.

          Show
          fprumbau fprumbau added a comment - Our release platform could be upgraded without problem from 1.335 -> 1.348. Of course the config is slightly different.
          Hide
          mindless Alan Harder added a comment -

          easiest would be disable sectioned-view, upgrade hudson, visit main config and click "save" (this will erase all the sectioned-view stuff in your config.xml, then reactivate sectioned-view and reconfigure it.

          Show
          mindless Alan Harder added a comment - easiest would be disable sectioned-view, upgrade hudson, visit main config and click "save" (this will erase all the sectioned-view stuff in your config.xml, then reactivate sectioned-view and reconfigure it.
          Hide
          christoph_pickl christoph_pickl added a comment -

          i recently had exactly the same problem, but managed to fix it by doing following:

          • backup HUDSON/config.xml
          • upgrade to 1.348 (actually used new 1.349 version)
          • let hudson create a new config.xml and merge both manually (stuff inside views-tag, ...)
          • upgraded the "Hudson Sectioned View" plugin (which was IMHO the root cause for this exception)
          • restarted hudson and all views should be as they were before

          good luck,
          ~christoph

          Show
          christoph_pickl christoph_pickl added a comment - i recently had exactly the same problem, but managed to fix it by doing following: backup HUDSON/config.xml upgrade to 1.348 (actually used new 1.349 version) let hudson create a new config.xml and merge both manually (stuff inside views-tag, ...) upgraded the "Hudson Sectioned View" plugin (which was IMHO the root cause for this exception) restarted hudson and all views should be as they were before good luck, ~christoph
          Hide
          fprumbau fprumbau added a comment -

          Thank you very much. The solution is

          a) update sectioned view plug (1.05 -> 1.10)
          b) update hudson

          So this issue can be closed.

          Show
          fprumbau fprumbau added a comment - Thank you very much. The solution is a) update sectioned view plug (1.05 -> 1.10) b) update hudson So this issue can be closed.

            People

            • Assignee:
              Unassigned
              Reporter:
              fprumbau fprumbau
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: