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

unhandled FileNotFountException in org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.getFileInfo

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • fstrigger-plugin
    • None
    • rhel 5, clearcase dynamic view

      Due to SCM change polling not working (log error) on CC Dynamic views, I'm using the FS trigger instead.

      On startup, as Jenkins looks through jobs, see a few of these in the log

      SEVERE: Error on trigger startup java.io.FileNotFoundException: /view/foo/vobs/bar/nasty/path.c (No such file or directory)
      org.jenkinsci.plugins.fstrigger.FSTriggerException: java.io.FileNotFoundException: /view/foo/vobs/bar/nasty/path.c (No such file or directory)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.getFileInfo(FolderContentTrigger.java:213)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.getFileInfoMaster(FolderContentTrigger.java:146)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.getMd5Map(FolderContentTrigger.java:124)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.refreshMemoryInfo(FolderContentTrigger.java:100)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.start(FolderContentTrigger.java:340)
      at org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.start(FolderContentTrigger.java:30)
      at hudson.model.AbstractProject.onLoad(AbstractProject.java:266)
      at hudson.model.Project.onLoad(Project.java:88)
      at hudson.model.Items.load(Items.java:115)
      at jenkins.model.Jenkins$14.run(Jenkins.java:2346)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:797)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Is this a case where the FS trigger should just catch the FNF and log a complaint to its polling log?

      Also, should the FS triggered jobs fire as early as they do in Jenkins startup, or should Jenkins get far up enough to service the web before activating polling?

          [JENKINS-11568] unhandled FileNotFountException in org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger.getFileInfo

          I think it's a special case due to Clearcase.
          Maybe the /view is not mounted.
          The check is done at startup and at schedule. Maybe I need to add the ability to not check at startup.

          Could you attach your configuration file (config.xml)?

          Gregory Boissinot added a comment - I think it's a special case due to Clearcase. Maybe the /view is not mounted. The check is done at startup and at schedule. Maybe I need to add the ability to not check at startup. Could you attach your configuration file (config.xml)?

          the only parts of the config file that should be relevant are shown

          note that while this is a CC dynamic view, Jenkins isn't starting the view as part of the job. its started previously. so it should be just as any file path based workspace. CC/MVFS is notoriously horrible in having ghosts of files or files mysteriously truncated on read, etc. Its also particularly abysmal in syncing change (like renames or branch updates without view restarts)

          <triggers class="vector">
          <org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger>
          <spec>1 * * * *</spec>
          <path>/view/FOO/vobs/BAR</path>
          <includes>*/.c */.h</includes>
          <excludes>understand/**</excludes>
          </org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger>
          </triggers>

          <customWorkspace>/view/FOO/vobs</customWorkspace>

          Greg Moncreaff added a comment - the only parts of the config file that should be relevant are shown note that while this is a CC dynamic view, Jenkins isn't starting the view as part of the job. its started previously. so it should be just as any file path based workspace. CC/MVFS is notoriously horrible in having ghosts of files or files mysteriously truncated on read, etc. Its also particularly abysmal in syncing change (like renames or branch updates without view restarts) <triggers class="vector"> <org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger> <spec>1 * * * *</spec> <path>/view/FOO/vobs/BAR</path> <includes>*/.c */.h</includes> <excludes>understand/**</excludes> </org.jenkinsci.plugins.fstrigger.triggers.FolderContentTrigger> </triggers> <customWorkspace>/view/FOO/vobs</customWorkspace>

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/fstrigger/triggers/FolderContentTrigger.java
          http://jenkins-ci.org/commit/fstrigger-plugin/31175ee65040b68ad897b51c144dcfa76e6555d6
          Log:
          Fixed JENKINS-11568

          Compare: https://github.com/jenkinsci/fstrigger-plugin/compare/e60e0a3...31175ee

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/fstrigger/triggers/FolderContentTrigger.java http://jenkins-ci.org/commit/fstrigger-plugin/31175ee65040b68ad897b51c144dcfa76e6555d6 Log: Fixed JENKINS-11568 Compare: https://github.com/jenkinsci/fstrigger-plugin/compare/e60e0a3...31175ee

          I added a check for this kind of issue

          Gregory Boissinot added a comment - I added a check for this kind of issue

            gbois Gregory Boissinot
            moncreaff Greg Moncreaff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: