copy of Jenkins system not working

294 views
Skip to first unread message

Nordin, Lars P

unread,
Dec 8, 2014, 12:41:27 PM12/8/14
to jenkins...@googlegroups.com
I’m trying to duplicate a current Jenkins setup but I’ve run into problems trying to get the copy working correctly.
Only the deploy jobs are displayed in the UIT and the logs show many of the other jobs fail on job load.
 
 
Dec 08, 2014 12:15:15 PM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading job WebApp-Common_Master
java.io.IOException: Unable to read /var/lib/jenkins/jobs/WebApp-Common_Master/config.xml
        at hudson.XmlFile.read(XmlFile.java:146)
        at hudson.model.Items.load(Items.java:222)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.thoughtworks.xstream.converters.ConversionException: hudson.plugins.git.extensions.impl.C
leanCheckout cannot be cast to hudson.util.DescribableList : hudson.plugins.git.extensions.impl.CleanChe
ckout cannot be cast to hudson.util.DescribableList
---- Debugging information ----
message             : hudson.plugins.git.extensions.impl.CleanCheckout cannot be cast to hudson.util.Des
cribableList
cause-exception     : java.lang.ClassCastException
cause-message       : hudson.plugins.git.extensions.impl.CleanCheckout cannot be cast to hudson.util.Des
cribableList
class               : hudson.util.DescribableList
required-type       : hudson.plugins.git.extensions.impl.CleanCheckout
converter-type      : hudson.util.DescribableList$ConverterImpl
path                : /maven2-moduleset/scm/extensions
line number         : 34
class[1]            : hudson.plugins.git.GitSCM
converter-type[1]   : hudson.util.RobustReflectionConverter
class[2]            : hudson.maven.MavenModuleSet
version             : not available
-------------------------------
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925)
        at hudson.XmlFile.read(XmlFile.java:142)
        ... 10 more
Caused by: java.lang.ClassCastException: hudson.plugins.git.extensions.impl.CleanCheckout cannot be cast to hudson.util.DescribableList
        at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:266)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
        ... 32 more
 
The version of Jenkins is the same and the versions of Java are close (1.7.0_65 vs 1.7.0_71).
I created a copy  by installing Jenkins from rpm, and then copying /var/lib/Jenkins execluding the lower sub-directories in Jenkins/jobs to save space.
 
What do I need to change to fix this?
 

The information contained in this e-mail and in any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This message has been scanned for known computer viruses.

Scott Evans

unread,
Dec 8, 2014, 12:50:31 PM12/8/14
to jenkins...@googlegroups.com
Lars,

Check to make sure you have the same plugins installed/active on the target system as you do on the source configuration (also make sure the versions of the plugins are the same or at least as close as possible).  Also, check to make sure file owner/permissions are correct on the target system (i.e. match the source system) for the job xml files.

Scott

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6EB112EDE53CB44EB4E232D2659E318151781C12%40SPPATLXCHMBX01.servers.global.prv.
For more options, visit https://groups.google.com/d/optout.

Nordin, Lars P

unread,
Dec 8, 2014, 2:13:55 PM12/8/14
to jenkins...@googlegroups.com

Thanks!  (and thanks for the quick reply!) The git-client plugin was in a funky state. Versions 1.0.5 and 1.6.0 were both installed but on the Jenkins copy the v1.0.5 version was the preferred version instead of v.1.6.0. I fixed the problem by uninstalling git-client plugin and installing just the later version.

 

Reply all
Reply to author
Forward
0 new messages