Symptoms

The task for deleting webspace fails with the following error:

Queue name      domain_service15844
Task name       Delete webspace (ds_id=12345, hd_id=123456) on host 'WINWEB01.HOSTING.LOCAL' (host_id=123).
Task description        Delete webspace (ds_id=12345, hd_id=123456) on host 'WINWEB01.HOSTING.LOCAL' (host_id=123).
Queue status     Failed
Start not earlier than  May-26-2014 14:11
Method name     taskDeleteWS on OBJREF:iis:0:getDomainService:15844
Last execution output   Destination host 'WINWEB01.HOSTING.LOCAL' (#123), IP '10.74.2.122' : Provisioning request failed. Access is denied. [<response><errorContext description="Access is denied.
Object: Cannot move file 'C:\CustomerData\webspaces\webspace_00123456'." code="0x80070005" executeSeqNo="1"><errorSource namespace="File System Provider Ex" procedure="deleteFileEx"/></errorContext></response>]

Cause

One of the possible reasons - the mentioned folder or some files in it are locked by some user.

Resolution

  1. Try to close this folder or files inside if they are opened in RDP session. Log off from the server and re-run the task

  2. If it does not help, check the folder C:\CustomerData\webspaces\webspace_00123456 with the handle tool to find who holds it.

Internal content