Search Engine: Elastic

Article ID: 3091, created on Nov 23, 2007, last review on May 9, 2014

  • Applies to:
  • Operations Automation


Task "Update Apache domain service <ds_id> at <webserver>" fails with the following error:
ExSystem: ERRCODE 0 ERRCODE_MINOR 0 OpMkDir: /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>: Not a directory


Common issue with such kind of tasks is that end customer can specify invalid DocumentRoot for their site, e.g. "index.html" instead of a directory. In this case POA fails to create a directory "index.html" if a file with the same name already exist.


To fix such kind of tasks, follow these steps:

1. Login to the server, mentioned in the task name using root credentials
2. Rename the file referenced in the task error:
# mv /usr/local/pem/vhosts/<host_id>/webspace/httpdocs/<DocumentRoot> /usr/local/pem/vhosts/<host_id>/webspace/httpdocs/<DocumentRoot>.bak
3. Restart the task

After the task completes successfully, you can change DocumentRoot to a directory using CCP and rename .bak file back into original state:
# mv /usr/local/pem/vhosts/<host_id>/webspace/httpdocs/<DocumentRoot>.bak /usr/local/pem/vhosts/<host_id>/webspace/httpdocs/<DocumentRoot>

5356b422f65bdad1c3e9edca5d74a1ae 8fc71f07abe5b233fea1ae0377cd5e3d

Email subscription for changes to this article
Save as PDF