Symptoms
A Dump webspace skeleton or Creating virtual host directory structure task fails with an error like:
Error: truepath /var/www/vhosts/30/106897/webspace/httpdocs/images/templateimage_01.gif: No such file or directory (errno 2).
Cause
The website template does not contain folder information:
[root@hostname ~]# zipinfo template.zip | egrep '/$'
[root@hostname ~]#
Resolution
Unpack the template file
[root@hostname ~]# unzip template.zip
Repack it
[root@hostname ~]# zip -r template-new.zip readme.txt website-apache website-common website-iis webspace-apache webspace-common webspace-iis
Check that folder entries appeared in archive:
[root@hostname ~]# zipinfo template-new.zip | egrep '/$' drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 website-apache/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 website-common/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 website-iis/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-apache/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-common/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-iis/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 website-common/images/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-apache/certs/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-apache/cgi-bin/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-apache/webstat/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-common/images/ drwxr-xr-x 3.0 unx 0 bx stor 17-May-31 16:20 webspace-iis/tests/
- Upload fixed template via PCP > Services > Web Hosting > Website Templates.