hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/foobar/config.xml

Jenkins JIRA | Michael Prokop | 4 years ago
  1. 0

    I'm running Jenkins 1.492. Version 0.9 of the Dependency Graph View Plugin works fine but when I upgrade it to version 0.10 several jobs (AFAICS randomly) fail to load on Jenkins startup. In the log I noticed: {quote} Dec 9 12:32:15 jenkins jenkins: SEVERE: Failed Loading job foobar Dec 9 12:32:15 jenkins jenkins: hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/foobar/config.xml Dec 9 12:32:15 jenkins jenkins: #011at hudson.XmlFile.read(XmlFile.java:141) Dec 9 12:32:15 jenkins jenkins: #011at hudson.model.Items.load(Items.java:220) Dec 9 12:32:15 jenkins jenkins: #011at jenkins.model.Jenkins$17.run(Jenkins.java:2507) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) Dec 9 12:32:15 jenkins jenkins: #011at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) Dec 9 12:32:15 jenkins jenkins: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) Dec 9 12:32:15 jenkins jenkins: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) Dec 9 12:32:15 jenkins jenkins: #011at java.lang.Thread.run(Thread.java:636) Dec 9 12:32:15 jenkins jenkins: Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null Dec 9 12:32:15 jenkins jenkins: ---- Debugging information ---- Dec 9 12:32:15 jenkins jenkins: cause-exception : java.util.ConcurrentModificationException Dec 9 12:32:15 jenkins jenkins: cause-message : null Dec 9 12:32:15 jenkins jenkins: class : hudson.model.FreeStyleProject Dec 9 12:32:15 jenkins jenkins: required-type : hudson.model.FreeStyleProject Dec 9 12:32:15 jenkins jenkins: path : /project/scm Dec 9 12:32:15 jenkins jenkins: line number : 25 Dec 9 12:32:15 jenkins jenkins: ------------------------------- [...] {quote} Seeing the line with TaskGraphBuilder I tried downgrading the plugin to the 0.9 version and all the jobs work fine again. Tried upgrading to 0.10 again and jobs start failing to load, so AFAICT the Dependency Graph View Plugin seem to be involved in the "Jenkins fails to load jobs" problem I'm stumbling upon. If you need any further information please let me know.

    Jenkins JIRA | 4 years ago | Michael Prokop
    hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/foobar/config.xml
  2. 0

    I'm running Jenkins 1.492. Version 0.9 of the Dependency Graph View Plugin works fine but when I upgrade it to version 0.10 several jobs (AFAICS randomly) fail to load on Jenkins startup. In the log I noticed: {quote} Dec 9 12:32:15 jenkins jenkins: SEVERE: Failed Loading job foobar Dec 9 12:32:15 jenkins jenkins: hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/foobar/config.xml Dec 9 12:32:15 jenkins jenkins: #011at hudson.XmlFile.read(XmlFile.java:141) Dec 9 12:32:15 jenkins jenkins: #011at hudson.model.Items.load(Items.java:220) Dec 9 12:32:15 jenkins jenkins: #011at jenkins.model.Jenkins$17.run(Jenkins.java:2507) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) Dec 9 12:32:15 jenkins jenkins: #011at jenkins.model.Jenkins$7.runTask(Jenkins.java:883) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) Dec 9 12:32:15 jenkins jenkins: #011at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) Dec 9 12:32:15 jenkins jenkins: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) Dec 9 12:32:15 jenkins jenkins: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) Dec 9 12:32:15 jenkins jenkins: #011at java.lang.Thread.run(Thread.java:636) Dec 9 12:32:15 jenkins jenkins: Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null Dec 9 12:32:15 jenkins jenkins: ---- Debugging information ---- Dec 9 12:32:15 jenkins jenkins: cause-exception : java.util.ConcurrentModificationException Dec 9 12:32:15 jenkins jenkins: cause-message : null Dec 9 12:32:15 jenkins jenkins: class : hudson.model.FreeStyleProject Dec 9 12:32:15 jenkins jenkins: required-type : hudson.model.FreeStyleProject Dec 9 12:32:15 jenkins jenkins: path : /project/scm Dec 9 12:32:15 jenkins jenkins: line number : 25 Dec 9 12:32:15 jenkins jenkins: ------------------------------- [...] {quote} Seeing the line with TaskGraphBuilder I tried downgrading the plugin to the 0.9 version and all the jobs work fine again. Tried upgrading to 0.10 again and jobs start failing to load, so AFAICT the Dependency Graph View Plugin seem to be involved in the "Jenkins fails to load jobs" problem I'm stumbling upon. If you need any further information please let me know.

    Jenkins JIRA | 4 years ago | Michael Prokop
    hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/foobar/config.xml
  3. 0

    [JENKINS-18424] NPE while reading config.xml - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: Unable to read /var/lib/jenkins/jobs/SXIAO-gerrit_client_android_build/config.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After update from Jenkins 1.3.x to Jenkins 1.44 the jobs could not found any more

    Stack Overflow | 5 years ago | user880625
    hudson.util.IOException2: Unable to read /var/lib/tomcat5.5/hudson/jobs/XXX/config.xml
  6. 0

    [JENKINS-18998] Jobs are not loaded anymore after upgrading to version 1.525 - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.util.IOException2: Unable to read /home/tomcat7/.jenkins/jobs/dacodi_model-production/config.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.util.IOException2

      Unable to read /var/lib/jenkins/jobs/foobar/config.xml

      at hudson.XmlFile.read()
    2. Hudson
      Items.load
      1. hudson.XmlFile.read(XmlFile.java:141)
      2. hudson.model.Items.load(Items.java:220)
      2 frames
    3. jenkins.model
      Jenkins$17.run
      1. jenkins.model.Jenkins$17.run(Jenkins.java:2507)
      1 frame
    4. init
      Reactor.runTask
      1. org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      2. org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      2 frames
    5. jenkins.model
      Jenkins$7.runTask
      1. jenkins.model.Jenkins$7.runTask(Jenkins.java:883)
      1 frame
    6. init
      Reactor$Node.run
      1. org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      2. org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:636)
      3 frames