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

Jobs failing with cannot delete directory error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      Jenkins ver 2.89.3 (OS X); p4-plugin ver 1.8.4; Windows slave - Windows 7 Professional SP1
    • Similar Issues:

      Description

      Jobs on our Windows slave machine are often failing with an "Unable to delete directory" error. The directory isn't locked, etc. and a subsequent run may succeed. This happens with various jobs and with different directories. It just started occurring within the last week. No backups are running during the build. We have tried updating Jenkins and the P4 plug-in, as well as Perforce on the slave machine to no avail. Any suggestions or workarounds would be appreciated. 

       

      P4 Task: attempt: 1
      P4 Task: failed: java.io.IOException: Unable to delete directory <path_to_file>.
      ERROR: P4 Task: failed: java.io.IOException: Unable to delete directory <path_to_file>.

        Attachments

          Activity

          arlyn R S created issue -
          p4karl Karl Wirth made changes -
          Field Original Value New Value
          Labels P4_SUPPORT
          Hide
          p4karl Karl Wirth added a comment -

          If you have a support contract please contact support@perforce.com so I can investigate further. Note that if this isn't a permissions error then we are going to need something like Windows process monitor to see what's happening to these directories when we are trying to delete them. Initial thoughts are another job, some background thread still has a lock on the directory or AV software.

          Show
          p4karl Karl Wirth added a comment - If you have a support contract please contact support@perforce.com so I can investigate further. Note that if this isn't a permissions error then we are going to need something like Windows process monitor to see what's happening to these directories when we are trying to delete them. Initial thoughts are another job, some background thread still has a lock on the directory or AV software.
          Hide
          p4karl Karl Wirth added a comment -

          No response so closing for now. Happy to investigate further if this is still a problem.

          Show
          p4karl Karl Wirth added a comment - No response so closing for now. Happy to investigate further if this is still a problem.
          Hide
          p4karl Karl Wirth added a comment -

          No response so closing for now. Happy to investigate further if this is still a problem.

          Show
          p4karl Karl Wirth added a comment - No response so closing for now. Happy to investigate further if this is still a problem.
          p4karl Karl Wirth made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              arlyn R S
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: