Product:
Search Type:

Task "Update Apache domain service 123 at webserver01.pemprovider.com" fails with error "OpMkDir: /usr/local/pem/vhosts/12345/webspace/httpdocs/index.html: Not a directory"

Article ID: 3091 
Last Review: Jun,19 2008
APPLIES TO:
  • Parallels Automation (PEM)

SYMPTOMS

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

 

CAUSE

Common issue with such kind of tasks is that end customer can specify invalid DocumentRoot for his/her 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.
 

RESOLUTION

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/<hd_id>/webspace/httpdocs/<DocumentRoot> /usr/local/pem/vhosts/<hd_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/<hd_id>/webspace/httpdocs/<DocumentRoot>.bak /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields