Symptoms

Change virtual directory task fails with the following error:

Task ID 1000001
Queue name      domain_service10001
Task name       Change virtual directory 'Root' (dir_id=xxxxx) of virtual web server yyyyy on host 'WINWEB001.hosting.local' (host_id=zzz).
Queue status     Failed
Method name     taskModifyVDir on OBJREF:iis:0:getDomainService:10001
Last execution output   VDir not found (id = xxxxx).

Cause

Such task is probably orphaned, because the related virtual directory no longer exists in OA database and site ID yyyyy is missing in IIS on WINWEB001 as well. Most likely such situation occurred because this task was canceled, and next tasks in queue removed the above-mentioned data.

Resolution

  1. Check if virtual directory and site are really absent in OA database:

    plesk=> select * from iis_webvdirs where dir_id = xxxxx;
    (No rows)
    plesk=> select * from iis_webvsrvs where srv_id = yyyyy;
    (No rows)
    
  2. check that the site is absent in IIS Manager on WINWEB001.

If there is no data left, the task is not needed anymore and can be safely canceled.

Internal content