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

Unable to delete a job that has a fstrigger

    Details

    • Similar Issues:

      Description

      I have a fstrigger that polls every minute, and most of the time when I try to delete the job I get an error:
      java.io.IOException: Unable to delete /some/path/.nfs00000000018e26ca00236d2f

      so I look at that file, and it contains the fstrigger polling log.

      If I disable the fstrigger, then I am able to delete the job.

        Attachments

          Issue Links

            Activity

            Hide
            gbois Gregory Boissinot added a comment -

            I tested with the File Leak Detector Plugin and nothing appends in my environment.
            I've got not way to reproduce and anyway to fix it.
            Feel free to look at the source code if you have any Java skills.

            Show
            gbois Gregory Boissinot added a comment - I tested with the File Leak Detector Plugin and nothing appends in my environment. I've got not way to reproduce and anyway to fix it. Feel free to look at the source code if you have any Java skills.
            Hide
            jimsearle Jim Searle added a comment -

            Thanks for continuing to look into this. It seems that Jenkins is running the trigger multiple times, we have a lot of jobs using the file-trigger plugin, with a polling time of every minute... I guess we need to increase this polling time to avoid this?

            Poll @ 10:22:28
            524 descriptors are open

            #5 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:18:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            #98 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:20:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            #280 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:21:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            #370 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:22:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            #404 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:19:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            Poll @ 10:26

            #2 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:24:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            #127 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:25:28 PDT 2012
            at java.io.FileOutputStream.<init>(FileOutputStream.java:181)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97)
            at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90)
            at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130)
            at hudson.triggers.Trigger.checkTriggers(Trigger.java:259)
            at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)

            Show
            jimsearle Jim Searle added a comment - Thanks for continuing to look into this. It seems that Jenkins is running the trigger multiple times, we have a lot of jobs using the file-trigger plugin, with a polling time of every minute... I guess we need to increase this polling time to avoid this? Poll @ 10:22:28 524 descriptors are open #5 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:18:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) #98 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:20:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) #280 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:21:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) #370 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:22:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) #404 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:19:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Poll @ 10:26 #2 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:24:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) #127 $JENKINS_HOME/jobs/<JOB_NAME>/trigger-polling-files.log by thread:Jenkins cron thread on Mon Jun 11 10:25:28 PDT 2012 at java.io.FileOutputStream.<init>(FileOutputStream.java:181) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:97) at hudson.util.StreamTaskListener.<init>(StreamTaskListener.java:90) at org.jenkinsci.lib.xtrigger.AbstractTrigger.run(AbstractTrigger.java:130) at hudson.triggers.Trigger.checkTriggers(Trigger.java:259) at hudson.triggers.Trigger$Cron.doRun(Trigger.java:207) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462)
            Hide
            gbois Gregory Boissinot added a comment -

            Could you test with fstrigger 0.31?
            It should fix the issue.
            Thanks

            Show
            gbois Gregory Boissinot added a comment - Could you test with fstrigger 0.31? It should fix the issue. Thanks
            Hide
            jimsearle Jim Searle added a comment -

            Thanks! I've installed 0.31 and will let you know.

            Show
            jimsearle Jim Searle added a comment - Thanks! I've installed 0.31 and will let you know.
            Hide
            jimsearle Jim Searle added a comment -

            Looks like this is fixed now. Thanks for the support!

            Show
            jimsearle Jim Searle added a comment - Looks like this is fixed now. Thanks for the support!

              People

              • Assignee:
                gbois Gregory Boissinot
                Reporter:
                jimsearle Jim Searle
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: