Article ID: 122296, created on Jul 8, 2014, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux 4.7
  • Virtuozzo containers for Linux 4.6
  • Virtuozzo hypervisor

Symptoms

  1. Container restoration fails with the following error message:

    ~# vzarestore -e 101
    Restore container: #101 from 1f4a60fd-60c3-904b-91e0-f5956f5c201e/20140708111258...
    * Operation with the Container #101 is started
    * Restoring backup 1f4a60fd-60c3-904b-91e0-f5956f5c201e/20140708111258 from localhost
    * Backup storage: preparing to restore operation
    * Backup storage: getting private backup data
    * Initializing restore operation
    * Operation with the Container #101 is finished with errors: Application template .mod_perl is not installed..
    Restore failed: Application template .mod_perl is not installed.
    Restore operation failed.
    
  2. Container templates cannot be listed:

    ~# vzpkg list 101
    Error: App template mod_perl not found
    

Cause

The mentioned application template package has been deleted from the system.

Resolution

  1. Find the container's OS template:

    ~# grep OSTEMPLATE /vz/private/101/ve.conf
    OSTEMPLATE=".centos-6-x86_64"
    

    If the original container is not available anymore, the information about the OS template and installed application templates can be retrieved using the following command:

    ~# vzarestore --print-ct-config BACKUP_ID [--storage ...] | grep TEMPLATE
    
  2. Install the necessary template package:

    • On PCS node the package can be installed using yum utility:

      ~# yum install mod_perl-centos-6-x86_64-ez-4.0.0-1.noarch
      

      (you can confirm the correct package using yum search):

      ~# yum search mod_perl-centos
      Loaded plugins: downloadonly, fastestmirror, shaman
      Loading mirror speeds from cached hostfile
       * cl-base: repo.cloudlinux.com
       * cl-updates: repo.cloudlinux.com
      ============================================================================= N/S Matched: mod_perl-centos ==============================================================================
      mod_perl-centos-5-x86-ez.noarch : Mod_perl for CentOS 5 EZ Template
      mod_perl-centos-5-x86_64-ez.noarch : Mod_perl for CentOS 5 (for AMD64/Intel EM64T) EZ Template
      mod_perl-centos-6-x86-ez.noarch : Mod_perl for CentOS 6 EZ Template
      mod_perl-centos-6-x86_64-ez.noarch : Mod_perl for CentOS 6 (for AMD64/Intel EM64T) EZ Template
      
    • On PVCfL and PSBM nodes you can download the necessary package using vzup2date utility:

      ~# vzup2date -z
      (this will open interactive mode, you will need to choose the necessary OS template from the list)
      

      or using vzup2date to download and rpm to install the package (Note: add the ez ending to the OS template specified in the --all-app-for option):

      ~# vzup2date -z -m batch --all-app-for=centos-6-x86_64-ez get
      Getting ez templates information. Please wait...done
      Checking downloaded packages integrity:
              [################################################################] 100%
      Downloading 1 packages
      1 mod_perl-centos-6-x86_64-ez-4.0.0-1.noarch. 100%    3KB  13.6KB/s   00:00 ETA
      
      ~# rpm -ihv /vz/vzup2date/eztemplates/centos-6/pub/mod_perl-centos-6-x86_64-ez-4.0.0-1.noarch.rpm
      Preparing...                ########################################### [100%]
         1:mod_perl-centos-6-x86_6########################################### [100%]
      

Additional information

In case the container restoration fails with "Failed to check template consistency, code 70" error message after executing the steps provided about, please check this article.

Search Words

nano

asd

.mysql templatenot dound

Application template is not installed

Restore failed: Application template .php is not installed.

123

App template not found

Error: /usr/share/vzyum/bin/yum failed, exitcode=1

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef 0c05f0c76fec3dd785e9feafce1099a9 36627b12981f68a16405a79233409a5e

Email subscription for changes to this article
Save as PDF