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

updating Dependency Graph View Plugin to version 0.10 causes failures in reading Jenkins jobs

      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:

      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: -------------------------------
      [...]

      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-16082] updating Dependency Graph View Plugin to version 0.10 causes failures in reading Jenkins jobs

          Stefan Wolf added a comment -

          The TaskGraphBuilder has nothing to do with the DependencyGraphView Plugin. Moreover, the plugin does not persist anything to disk, so it does not change any xmls at all. Did you downgrade any other plugins, too? If not, can you upgrade the plugin and then just restart Jenkins if the problem occurs again? It could be related to JENKINS-10318.

          Stefan Wolf added a comment - The TaskGraphBuilder has nothing to do with the DependencyGraphView Plugin. Moreover, the plugin does not persist anything to disk, so it does not change any xmls at all. Did you downgrade any other plugins, too? If not, can you upgrade the plugin and then just restart Jenkins if the problem occurs again? It could be related to JENKINS-10318 .

          I don't think it's related to any changes at the XMLs, but instead by just trying to read the files.

          No, I didn't modify/downgrade any other plugins while trying to identify the cause of the problem.

          Yes, I upgraded the DependencyGraphView plugin and restarted Jenkins afterwards of course. I did the same with downgrade as well and retried all of this several times before actually filing the bug report.

          Thanks for the hint regarding JENKINS-10318 - it looks related to my issue, yes. But I'm wondering why I seem to be able to avoid the issue when downgrading to DependencyGraphView plugin v0.9. Any ideas? Does the DependencyGraphView plugin read the configuration files during Jenkins startup or is this just related to API or the running system then? (My /var/lib/jenkins is located on NFS, so maybe it's about a locking issue?)

          Michael Prokop added a comment - I don't think it's related to any changes at the XMLs, but instead by just trying to read the files. No, I didn't modify/downgrade any other plugins while trying to identify the cause of the problem. Yes, I upgraded the DependencyGraphView plugin and restarted Jenkins afterwards of course. I did the same with downgrade as well and retried all of this several times before actually filing the bug report. Thanks for the hint regarding JENKINS-10318 - it looks related to my issue, yes. But I'm wondering why I seem to be able to avoid the issue when downgrading to DependencyGraphView plugin v0.9. Any ideas? Does the DependencyGraphView plugin read the configuration files during Jenkins startup or is this just related to API or the running system then? (My /var/lib/jenkins is located on NFS, so maybe it's about a locking issue?)

            wolfs Stefan Wolf
            mika Michael Prokop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: