Plesk error: Template processing failed. TemplateException

Follow

Comments

3 comments

  • Avatar
    Jeffrey Zeunert

    I'm unable to create a new domain. I ran a script to automatically update the improper AUTO_INCREMENTS value. That was sucessful. However, I now have new error messages (below) which brought me to this article. I get stuck on step two, I don't have a folder "templates". I'm running Plesk Onyx.

     

    # mv /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php{,.backup}
    mv: cannot stat ‘/usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php’: No such file or directory
    #

    The errors that brought me to this article:

    New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter


    Error: phpinimng failed: configuration test '/usr/sbin/php-fpm --test' failed with code 78, and message: [05-Apr-2020 13:18:26] WARNING: Nothing matches the include pattern '/opt/plesk/php/7.3/etc/php-fpm.d/*.conf' from /opt/plesk/php/7.3/etc/php-fpm.conf at line 119. [05-Apr-2020 13:18:26] ERROR: No pool defined. at least one pool section must be specified in config file [05-Apr-2020 13:18:26] ERROR: failed to post process the configuration [05-Apr-2020 13:18:26] ERROR: FPM initialization failed

    0
    Comment actions Permalink
  • Avatar
    Yulia Plokhotnikova

    Hi @Jeffrey Zeunert,

    "AUTO_INCREMENTS value" should not affect this setting.

    This article is applicable when there are custom templates exist on a server. it is indicated in the symptoms:

    # find /usr/local/psa/admin/conf/templates/custom -type f

    Your error regarding missing templates mean that there are no custom templates. So we can ignore "No such file or directory" error regarding custom templates and concentrate on the main error: 

    New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data.

    To fix it, try to run:
    # plesk repair web

    If it does not help, consider submitting a support request to Plesk directly or to a reseller, depending on where the license was purchased.

    0
    Comment actions Permalink
  • Avatar
    Jeffrey Zeunert

    Hi Yulia. Thanks for your help.  I ended up doing the upgrade to Obsidian and that resolved the problem. Good to know about custom templates and # plesk repair web.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request