Symptoms
The situation described below affect only legacy hosting (not NG). Task "Preparing document root and website structure for domain service with ID 101" fails with error:
Feb 16 01:33:33.587 : ERR [task:14049533:7560 1:24289:7f75cffff700 lib ]: [ InteractiveHostOps::perform] ExSystem: module_id:'Common', ex_type_id:'1',Message:'Internal error: /bin/mkdir /bin/mkdir -p /usr/local/pem/vhosts/100001/webspace/httpsdocs/folder01 failed with code 1 saying: STDOUT: '' STDERR '/bin/mkdir: `/usr/local/pem/vhosts/100001/webspace/httpsdocs/folder01': Permission denied
Cause
Incorrect ownership of webspace directories.
Resolution
Find find system user owning the webspace:
[root@websrv ~]# grep 100001 /etc/passwd b100001:x:10003:10001::/usr/local/pem/vhosts/100001/:/bin/false
Set correct ownership for the directory the task fails to process:
chown b100001.pemcln /usr/local/pem/vhosts/100001/webspace/httpsdocs/folder01
If there are number of directories affected, fix it globally:
[root@websrv ~]# chown -R b100001.pemcln /usr/local/pem/vhosts/100001/webspace/httpsdocs/
[root@websrv ~]# chown -R b100001.pemcln /usr/local/pem/vhosts/100001/webspace/httpdocs/
[root@websrv ~]# chown b100001.pemsrv /usr/local/pem/vhosts/100001/webspace/httpsdocs/
[root@websrv ~]# chown b100001.pemsrv /usr/local/pem/vhosts/100001/webspace/httpdocs/