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

Scheduled triggering stops working until restart

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

      Jobs configured with a periodic trigger stop being triggered after Jenkins has been running for a few days.

      There are no indications of a problem in the log. The last/next run times shown in the configure page look right. Manually triggering the job works, though the periodic trigger doesn't resume until Jenkins is restarted.

      The Jenkins and plugin versions are what is currently installed though we've seen the problem for some months with different recent versions of Jenkins and various plugins. It might be that the problem has not been noticed more often because of more frequent Jenkins restarts.

      I've attached a thread dump taken while periodic triggers haven't been working for over a day.

        1. hudson.triggers-ALL.log
          42 kB
        2. hudson.triggers-ALL.log
          42 kB
        3. jenkins_log_threaddump-tom.txt
          65 kB
        4. jenkins thread dumps.txt
          13 kB
        5. threadDump.txt
          38 kB
        6. thread-dump1.txt
          67 kB

          [JENKINS-25704] Scheduled triggering stops working until restart

          Tomas D added a comment -

          We just found the same problem. We have pretty much nothing running on our new Jenkins server, created new pipeline. Manually it runs fine, but it failed to run last night. Schedule is set to

          H 2 * * *

          I am attaching threadDump threadDump.txt

          Tomas D added a comment - We just found the same problem. We have pretty much nothing running on our new Jenkins server, created new pipeline. Manually it runs fine, but it failed to run last night. Schedule is set to H 2 * * * I am attaching threadDump threadDump.txt

          Sekhar Babu added a comment -

          I am also facing the same problem from past 1 week.

          Jenkins scheduler is not working as expected and it is not triggered as mentioned time in build periodically. please find the attached thread dumps as well. jenkins thread dumps.txt

          Sekhar Babu added a comment - I am also facing the same problem from past 1 week. Jenkins scheduler is not working as expected and it is not triggered as mentioned time in build periodically. please find the attached thread dumps as well.  jenkins thread dumps.txt

          Daniel Beck added a comment -

          sekhar_babu

          same problem

          It's not; yours is stash pull request builder performing expensive networking operations on the thread processing triggers.

          Daniel Beck added a comment - sekhar_babu same problem It's not; yours is stash pull request builder performing expensive networking operations on the thread processing triggers.

          Sekhar Babu added a comment -

          I have installed in last 2 weeks back scheduler worked fine after that as well. 

          Sekhar Babu added a comment - I have installed in last 2 weeks back scheduler worked fine after that as well. 

          Sekhar Babu added a comment -

          After uninstalling the stash pull request  builder plugin scheduler is working fine . what would be the possible way if need both stash pull requet builder and schedulers as well. 

          Sekhar Babu added a comment - After uninstalling the stash pull request  builder plugin scheduler is working fine . what would be the possible way if need both stash pull requet builder and schedulers as well. 

          Jagadish added a comment -

          Even the same issue for me as well. Jenkins core trigger system has been affected due to stash pull request builder plugin :|

          Jagadish added a comment - Even the same issue for me as well. Jenkins core trigger system has been affected due to stash pull request builder plugin :|

          We too are facing the same issue after upgrading the Jenkins to 2.73 version.

          Suddenly poll scm and timer builds stop working. Jenkins restart fixed the issue but based  on other jenkins forum looks this issue will come again. Please let us know if permanent solution for this issue.

          roshan chandekar added a comment - We too are facing the same issue after upgrading the Jenkins to 2.73 version. Suddenly poll scm and timer builds stop working. Jenkins restart fixed the issue but based  on other jenkins forum looks this issue will come again. Please let us know if permanent solution for this issue.

          david_resnick Can it be possible to assign this to any of known developers??

          HARISHKUMAR TR added a comment - david_resnick Can it be possible to assign this to any of known developers??

          David Resnick added a comment -

          harishkumartr22 I think someone has to be convinced to take it.

          David Resnick added a comment - harishkumartr22 I think someone has to be convinced to take it.

          Chandan Kumar added a comment -

          This is happening to my Jenkins jobs as well. I wanted to run a job at exactly 8:25 am every day with this cron expression: "25 8 * * *". This was working fine for months until now. Changing the exact minute to 'H' seems to help sometimes. e.g. "H 8 * * *" triggers the job, but not at the exact time I need it to trigger. That's a workaround that might work for me, but it's disappointing to not be able to debug this. Cron log is not much help:

          cron checking hudson.model.FreeStyleProject@505fc44a[Cleanup_Builds/my-job] with spec ‘25 8 * * *’
          Dec 17, 2019 8:25:13 AM FINER hudson.triggers.Trigger
          did not trigger hudson.model.FreeStyleProject@505fc44a[Cleanup_Builds/my-job]
          Dec 17, 2019 8:25:13 AM FINE hudson.triggers.Trigger

           

          Chandan Kumar added a comment - This is happening to my Jenkins jobs as well. I wanted to run a job at exactly 8:25 am every day with this cron expression: "25 8 * * *". This was working fine for months until now. Changing the exact minute to 'H' seems to help sometimes. e.g. "H 8 * * *" triggers the job, but not at the exact time I need it to trigger. That's a workaround that might work for me, but it's disappointing to not be able to debug this. Cron log is not much help: cron checking hudson.model.FreeStyleProject@505fc44a [Cleanup_Builds/my-job] with spec ‘25 8 * * *’ Dec 17, 2019 8:25:13 AM FINER hudson.triggers.Trigger did not trigger hudson.model.FreeStyleProject@505fc44a [Cleanup_Builds/my-job] Dec 17, 2019 8:25:13 AM FINE hudson.triggers.Trigger  

            Unassigned Unassigned
            david_resnick David Resnick
            Votes:
            13 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated: