SymptomsPOA background task "Create virtual web server <srv_id> on host '<hostname>' (host_id=<host_id>)" fails with the following error message:
Exception during execution of MPF request: 'The system cannot find the path specified. [<response><errorContext description="The system cannot find the path specified." code="0x80070003" executeSeqNo="24"><errorSource namespace="File System Provider Ex" procedure="createBinaryFile"/></errorContext></response>]'.
CauseCommon issue with such kind of tasks is that end customer can specify invalid DocumentRoot for their website, e.g. '<path_to_website_home_directory>/index.html'. In this case POA fails to create a directory "path_to_website_home_directory>/index.html" if a file with the same name already exist.
There is a quick ways to fix such a task: update POA system database and restart the task.
To proceed with the fix follow these steps:
1. Update POA database:
a) for POA 2.6.3 and earlier, use <srv_id> from the task name and run the following commands on the Management Node:
# . /usr/local/pem/bin/db_env.sh
# psql -U $iis_db -h`hostname` -c "UPDATE webvdirs SET location='wwwroot', desire_location='wwwroot' WHERE srv_id =<srv_id>"
b) for POA 2.6.4 and later, use <srv_id> from the task name and run the following commands on the Management Node:
# psql -U plesk -h`hostname` -c "UPDATE iis_webvdirs SET location = 'wwwroot', desire_location = 'wwwroot' WHERE srv_id = <srv_id>"
2. Re-run the failed task in POA Task Manager.