I would see 2 potential issues, 1) Either the Config.xml is corrupt while copying
2) The user with which yo are copying these folders across has not provided access to Jenkins user for the xml This is based on the first look at the error log, I would suggest to try these options first. Thanks, Subbu On Fri, Aug 19, 2016 at 10:53 AM, Alok Kumar Singh <[email protected]> wrote: > I am trying to migrate jenkins from one machine to another machine by > copying the complete jenkins folder. It works fine for 1.6xx but it is not > working for any of the 1.5xx version. > Error I can see on the jenkins page : > > [image: [!]] Error > > org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable > to read /var/lib/jenkins/config.xml > at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) > at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) > at jenkins.model.Jenkins.executeReactor(Jenkins.java:904) > at jenkins.model.Jenkins.<init>(Jenkins.java:804) > at hudson.model.Hudson.<init>(Hudson.java:81) > at hudson.model.Hudson.<init>(Hudson.java:77) > at hudson.WebAppMain$2.run(WebAppMain.java:214) > Caused by: hudson.util.IOException2: Unable to read > /var/lib/jenkins/config.xml > at hudson.XmlFile.unmarshal(XmlFile.java:170) > at jenkins.model.Jenkins$16.run(Jenkins.java:2515) > at > org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) > at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) > at jenkins.model.Jenkins$7.runTask(Jenkins.java:893) > 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.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > Caused by: com.thoughtworks.xstream.converters.ConversionException: Invalid > reference > ---- Debugging information ---- > reference : > ../../../hudson.plugins.nested__view.NestedView/views/listView[4]/jobNames/comparator > class : java.util.TreeSet > required-type : java.util.TreeSet > converter-type : > com.thoughtworks.xstream.converters.collections.TreeSetConverter > path : /hudson/views/listView[3]/jobNames/comparator > line number : 610 > class[1] : hudson.model.ListView > converter-type[1] : hudson.util.RobustReflectionConverter > class[2] : java.util.concurrent.CopyOnWriteArrayList > converter-type[2] : hudson.util.RobustCollectionConverter > class[3] : hudson.model.Hudson > version : null > ------------------------------- > at > com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:57) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) > at > com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) > at > com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshalComparator(TreeMapConverter.java:115) > at > com.thoughtworks.xstream.converters.collections.TreeSetConverter.unmarshal(TreeSetConverter.java:86) > 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 > hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333) > at > hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275) > at > hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222) > 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.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71) > at > hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85) > at > com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61) > at > hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:76) > 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 > hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333) > at > hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275) > at > hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222) > 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:1061) > at hudson.util.XStream2.unmarshal(XStream2.java:109) > at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) > at hudson.XmlFile.unmarshal(XmlFile.java:166) > > ... 9 more > > java version on the machine is > > java version "1.7.0_111" . Please suggest. > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/646a0564-c90d-4e21-8c33-5be89762e5b1%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/646a0564-c90d-4e21-8c33-5be89762e5b1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADiXxf9grLgdgRXYr2QOA2srXRgM_9r_pozVMPX_W0%3DsT2C8Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
