• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • dimensionsscm-plugin
    • None
    • Java 7
      Jenkins 1.609.x
      dimensionsscm:0.8.12 'Jenkins Dimensions Plugin'

      After some successful executions, my job fails trying to run a checkout.

      FATAL: Unable to run checkout callout (IOException: Exception during checkout (DimensionsRuntimeException: Dimensions command 'UPDATE /BRIEF /WORKSET="XXX:YYYYYYYY" /USER_DIR="/usr/local/jenkins/jobs/XXXX_JOB/workspace" ' failed (DimensionsRuntimeException: Work area is empty.

      Then, it will continue failing until a restart of the jenkins instance.

      A custom log of the execution is provided.

          [JENKINS-32430] checkout fails - DMN4503209E

          I don't know why updating into an empty work area would cause a problem reading metadata (which is what the message says).

          Perhaps the Clear the contents of the workspace option may not be clearing the workspace properly (an "All Jenkins Logs" file may have information on why that is) which might be because some process is locking some files from being deleted. This could then be leaving behind some corrupt metadata? The "locked file" theory is strengthened by the fact that a restart of the instance (assuming that this is a single host master-based build rather than a slave-based configuration) resets the issue.

          One workaround may be to try the Use slave based checkout option in the Advanced settings for Dimensions Plugin. This will do the update using dmcli, rather than the Java API, which run in a new process that ends, so even if it holds open any files, they should be released when dmcli exits. This will need dmcli to be installed and runnable on the machine(s) where the Jenkins workspace is located (Jenkins server if single host installation of Jenkins).

          David Conneely added a comment - I don't know why updating into an empty work area would cause a problem reading metadata (which is what the message says). Perhaps the Clear the contents of the workspace option may not be clearing the workspace properly (an "All Jenkins Logs" file may have information on why that is) which might be because some process is locking some files from being deleted. This could then be leaving behind some corrupt metadata? The "locked file" theory is strengthened by the fact that a restart of the instance (assuming that this is a single host master-based build rather than a slave-based configuration) resets the issue. One workaround may be to try the Use slave based checkout option in the Advanced settings for Dimensions Plugin. This will do the update using dmcli, rather than the Java API, which run in a new process that ends, so even if it holds open any files, they should be released when dmcli exits. This will need dmcli to be installed and runnable on the machine(s) where the Jenkins workspace is located (Jenkins server if single host installation of Jenkins).

          Version 0.8.13 includes additional logging that may help resolve problems with locating 'dmcli' when Use slave based checkout, and diagnose why the original problem occurred. This additional logging appears in the Jenkins System Log.

          David Conneely added a comment - Version 0.8.13 includes additional logging that may help resolve problems with locating 'dmcli' when Use slave based checkout , and diagnose why the original problem occurred. This additional logging appears in the Jenkins System Log.

          Using dmcli works around the issue, but never received diagnostics that helped to understand what was happening in the reporter's environment. Please re-open if new diagnostics (from 0.8.13 or later) can be provided.

          David Conneely added a comment - Using dmcli works around the issue, but never received diagnostics that helped to understand what was happening in the reporter's environment. Please re-open if new diagnostics (from 0.8.13 or later) can be provided.

            Unassigned Unassigned
            escoem Emilio Escobar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: