Search Engine: Elastic

Article ID: 130899, created on May 31, 2017, last review on May 31, 2017

  • Applies to:
  • Operations Automation 7.0

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

  1. Unpack the template file

    [root@hostname ~]# unzip template.zip
    
  2. Repack it

    [root@hostname ~]# zip -r  template-new.zip readme.txt website-apache website-common website-iis webspace-apache webspace-common webspace-iis
    
  3. 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/
    
  4. Upload fixed template via PCP > Services > Web Hosting > Website Templates.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF