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

Jenkins missing job after restart. WARNING: could not find file /var/lib/jenkins/jobs/*/config.xml

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jobs are missing from UI. When checking on Jenkins Home directory all the required build folders and config.xml are present. After comparing config.xml from old config.xml file found that the tags for plugins and class are missing.

      Found below on logs.

      Caused: java.io.IOException: Unable to read /var/lib/jenkins/jobs/{JobName}/config.xml
      2020-08-18 06:43:44.972+0000 [id=57] WARNING c.c.h.p.folder.AbstractFolder#loadChildren: could not load /var/lib/jenkins/jobs/{JobName}
      org.xmlpull.v1.XmlPullParserException: name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f)
      at org.kxml2.io.KXmlParser.exception(Unknown Source)
      at org.kxml2.io.KXmlParser.error(Unknown Source)
      at org.kxml2.io.KXmlParser.readName(Unknown Source)
      at org.kxml2.io.KXmlParser.parseStartTag(Unknown Source)
      at org.kxml2.io.KXmlParser.nextImpl(Unknown Source)
      at org.kxml2.io.KXmlParser.next(Unknown Source)
      at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
      Caused: com.thoughtworks.xstream.io.StreamException: : name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f)
      at com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:135)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
      at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveUp(AbstractPullReader.java:113)
      at com.thoughtworks.xstream.io.ReaderWrapper.moveUp(ReaderWrapper.java:40)
      at com.thoughtworks.xstream.io.path.PathTrackingReader.moveUp(PathTrackingReader.java:42)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:365)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:269)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      Caused: com.thoughtworks.xstream.converters.ConversionException: : name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f) : : name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f)
      ---- Debugging information ----
      message : : name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f)
      cause-exception : com.thoughtworks.xstream.io.StreamException
      cause-message : : name expected (position:START_TAG <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>@5:97 in java.io.InputStreamReader@3a530a3f)
      class : org.jenkinsci.plugins.workflow.job.WorkflowJob
      required-type : java.util.concurrent.CopyOnWriteArrayList
      converter-type : hudson.util.RobustReflectionConverter
      path : /flow-definition/actions
      line number : 5
      version : not available
      -------------------------------

        Attachments

          Activity

          Hide
          kshiwakoti Kritesh S added a comment -

          Example of missing plugin and class field :

          <?xml version = '1.0' encoding = 'UTF-8'?>
          <flow-definition ="workflow-job@2.39">
          <actions>
          <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction ="pipeline-model-definition@1.7.1"/>
          <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction ="pipeline-model-definition@1.7.1">
          <jobProperties/>
          <triggers/>
          <parameters/>
          <options/>
          </org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction>
          </actions>
          <description/>
          <keepDependencies>false</keepDependencies>
          <properties>
          <hudson.plugins.jira.JiraProjectProperty ="jira@3.1.1">
          <siteName>http://jira.xxxxxx:8080/</siteName>
          </hudson.plugins.jira.JiraProjectProperty>
          <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty ="gitlab-plugin@1.5.13">
          <gitLabConnection>gitw</gitLabConnection>
          </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty>
          <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty ="ownership@0.13.0"/>
          <com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.JobRestrictionProperty ="job-restrictions@0.8"/>
          <hudson.plugins.throttleconcurrents.ThrottleJobProperty ="throttle-concurrents@2.0.2">
          <categories ="java.util.concurrent.CopyOnWriteArrayList"/>
          <throttleEnabled>false</throttleEnabled>
          <throttleOption>project</throttleOption>
          <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams>
          <paramsToUseForLimit/>
          </hudson.plugins.throttleconcurrents.ThrottleJobProperty>

          </properties>
          <definition ="workflow-cps@2.81">
          <scm ="git@4.2.2">
          <configVersion>2</configVersion>
          <userRemoteConfigs>
          <hudson.plugins.git.UserRemoteConfig>
          <url>https://gitw.xxxx/yyyy.git</url>
          <credentialsId>xxxxxxxx</credentialsId>
          </hudson.plugins.git.UserRemoteConfig>
          </userRemoteConfigs>
          <branches>
          <hudson.plugins.git.BranchSpec>
          <name>branch-xxxx</name>
          </hudson.plugins.git.BranchSpec>
          </branches>
          <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
          <gitTool>Default</gitTool>
          <submoduleCfg ="list"/>
          <extensions/>
          </scm>
          <scriptPath>Jenkinsfile</scriptPath>
          <lightweight>true</lightweight>
          </definition>
          <triggers/>
          <disabled>false</disabled>
          </flow-definition>

          Show
          kshiwakoti Kritesh S added a comment - Example of missing plugin and class field : <?xml version = '1.0' encoding = 'UTF-8'?> <flow-definition ="workflow-job@2.39"> <actions> <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobAction ="pipeline-model-definition@1.7.1"/> <org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction ="pipeline-model-definition@1.7.1"> <jobProperties/> <triggers/> <parameters/> <options/> </org.jenkinsci.plugins.pipeline.modeldefinition.actions.DeclarativeJobPropertyTrackerAction> </actions> <description/> <keepDependencies>false</keepDependencies> <properties> <hudson.plugins.jira.JiraProjectProperty ="jira@3.1.1"> <siteName> http://jira.xxxxxx:8080/ </siteName> </hudson.plugins.jira.JiraProjectProperty> <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty ="gitlab-plugin@1.5.13"> <gitLabConnection>gitw</gitLabConnection> </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> <com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty ="ownership@0.13.0"/> <com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.JobRestrictionProperty ="job-restrictions@0.8"/> <hudson.plugins.throttleconcurrents.ThrottleJobProperty ="throttle-concurrents@2.0.2"> <categories ="java.util.concurrent.CopyOnWriteArrayList"/> <throttleEnabled>false</throttleEnabled> <throttleOption>project</throttleOption> <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams> <paramsToUseForLimit/> </hudson.plugins.throttleconcurrents.ThrottleJobProperty> </properties> <definition ="workflow-cps@2.81"> <scm ="git@4.2.2"> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url> https://gitw.xxxx/yyyy.git </url> <credentialsId>xxxxxxxx</credentialsId> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name>branch-xxxx</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <gitTool>Default</gitTool> <submoduleCfg ="list"/> <extensions/> </scm> <scriptPath>Jenkinsfile</scriptPath> <lightweight>true</lightweight> </definition> <triggers/> <disabled>false</disabled> </flow-definition>
          Show
          kshiwakoti Kritesh S added a comment - Wadeck Follonier Daniel Beck CloudBees Inc.
          Hide
          danielbeck Daniel Beck added a comment -

          This file is obviously messed up. Fix whatever created this file.

          Why did you ping me?

          Show
          danielbeck Daniel Beck added a comment - This file is obviously messed up. Fix whatever created this file. Why did you ping me?

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kshiwakoti Kritesh S
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: