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

Cannot delete workspace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ws-cleanup-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.570, workspace clean up plugin 0.2.1, Debian wheezy (master+slave)
    • Similar Issues:

      Description

      After updating Jenkins from 1.567 to 1.570 and Workspace Cleanup Plugin from 0.20 to 0.21, all jobs using workspace cleanup are failing:

      ...
      00:00:00.508 Baue auf Slave comitdev1 (karma git linux fast 64bit) in Arbeitsbereich /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893
      00:00:00.508 
      00:00:00.508 Deleting project workspace... Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts 
      00:00:03.932 Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts 
      00:00:06.941 Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts 
      00:00:06.943 Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
      00:00:06.945 ERROR: Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
      00:00:06.945 [FINDBUGS] Skipping publisher since build result is FAILURE
      00:00:06.946 [PMD] Skipping publisher since build result is FAILURE
      ...
      

      I have checked the workspace, everything looks ok, file permissions are all correct. Downgrade the plugin back to 0.20 fixed the problem.

        Attachments

          Activity

          zhh Hua Zhang created issue -
          zhh Hua Zhang made changes -
          Field Original Value New Value
          Description After updating Jenkins from 1.567 to 1.570 and Workspace Cleanup Plugin from 0.20 to 0.21, all jobs using workspace cleanup are failing:

          {code}
          00:00:06.943 Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
          00:00:06.945 ERROR: Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
          {code}

          I have checked the workspace, everything looks ok, file permissions are all correct. Downgrade the plugin back to 0.20 fixed the problem.
          After updating Jenkins from 1.567 to 1.570 and Workspace Cleanup Plugin from 0.20 to 0.21, all jobs using workspace cleanup are failing:

          {code}
          ...
          00:00:00.508 Baue auf Slave comitdev1 (karma git linux fast 64bit) in Arbeitsbereich /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893
          00:00:00.508
          00:00:00.508 Deleting project workspace... Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts
          00:00:03.932 Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts
          00:00:06.941 Using command: /home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts
          00:00:06.943 Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
          00:00:06.945 ERROR: Cannot delete workspace: java.io.IOException: Cannot run program "/home/jenkins-slave/jenkins-slave-fs-root/workspace/SD-2893/APPLICATION/artifacts": java.io.IOException: error=13, Permission denied
          00:00:06.945 [FINDBUGS] Skipping publisher since build result is FAILURE
          00:00:06.946 [PMD] Skipping publisher since build result is FAILURE
          ...
          {code}

          I have checked the workspace, everything looks ok, file permissions are all correct. Downgrade the plugin back to 0.20 fixed the problem.
          zhh Hua Zhang made changes -
          Attachment cannot-delete-workspace-config.zip [ 26346 ]
          zhh Hua Zhang made changes -
          Attachment ws-cleanup-config.png [ 26349 ]
          vjuranek vjuranek made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 156478 ] JNJira + In-Review [ 195433 ]

            People

            Assignee:
            vjuranek vjuranek
            Reporter:
            zhh Hua Zhang
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: