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

Jenkins cannot start new task because of an dead task in build queue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • None

      My jenkins crash while runing build number 105. I restart it but then the "part of ReleaseDailyPipeline#105" appear on the build queue.

      I cannot delete that part, tried to cancel build, delete whole build also not success.

      When I restart the jenkins, the "part of ReleaseDailyPipeline#105" disappear so I can start new build. But after few days the "part of ReleaseDailyPipeline#105" come back and jenkins cannot start new build anymore.
      So every time when I want to start new piple, I have to restart jenkins.

       

      I tried to delete the queue but cannot, the request in verry long time then die.

      I tried to clear whole build queue by command "Jenkins.instance.queue.clear()" but it just freeze, the post request execute but timeout after minutes.

       

      I tried below solution, it also timeout when I set the correct stuck build id:

       

      {{import hudson.model.*def q = Jenkins.instance.queueq.items.findAll

      { it.task.name.startsWith('REPLACEME') }

      .each { q.cancel(it.task) }}}

      {{}}

      I tried to clean the file queue.xml in jenkins home page but doesn't work.{{}}

      {{}}

      I check{{ed the /var/log/jenkins/jenkins.log but don't see anything, no error logged.}}

        1. j1.png
          j1.png
          131 kB
        2. j2.png
          j2.png
          170 kB

            Unassigned Unassigned
            hacrot3000 Truong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: