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

infinite loop on node startup - Caught exception evaluating: h.escape(item.why) in /ajaxBuildQueue.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • 2.375

      Hello

       

      Jenkins cannot start any job on startup. It generates an infinite loop in some Java part of the code:

      Aug 23 20:23:51 jenkins-master jenkins[1015358]: java.lang.StackOverflowError
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at java.base/java.util.Collections$ReverseComparator.compare(Collections.java:5212)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at java.base/java.util.Collections$ReverseComparator.compare(Collections.java:5203)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at java.base/java.util.TreeMap.getEntryUsingComparator(TreeMap.java:374)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at java.base/java.util.TreeMap.getEntry(TreeMap.java:343)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at java.base/java.util.TreeMap.containsKey(TreeMap.java:231)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at jenkins.model.lazy.AbstractLazyLoadRunMap.getByNumber(AbstractLazyLoadRunMap.java:512)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:495)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at jenkins.model.lazy.AbstractLazyLoadRunMap.newestBuild(AbstractLazyLoadRunMap.java:428)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at jenkins.model.lazy.LazyBuildMixIn.getLastBuild(LazyBuildMixIn.java:244)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:944)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.AbstractProject.getLastBuild(AbstractProject.java:138)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.Job.isLogUpdated(Job.java:314)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.AbstractProject.getCauseOfBlockage(AbstractProject.java:1077)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.Queue.getCauseOfBlockageForTask(Queue.java:1240)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.Queue.getCauseOfBlockageForItem(Queue.java:1197)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.Queue$BlockedItem.getCauseOfBlockage(Queue.java:2630)
      Aug 23 20:23:51 jenkins-master jenkins[1015358]: #011at hudson.model.AbstractProject.getBuildingDownstream(AbstractProject.java:1115)

       

       

      (the daemon.log quickly grows to hundred of mb)

       

      Reverting to jenkins 2.363 fixes the issue

       

      Jenkins is configured following this tutorial:

      https://cloud.google.com/architecture/using-jenkins-for-distributed-builds-on-compute-engine

            Unassigned Unassigned
            sylvestre_ Sylvestre Ledru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: