Articles in this section

Error in Plesk after update: Template_Exception: nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed

kb: bug Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

After a Plesk update, the following error is displayed in Plesk:

Unable to generate the web server configuration file on the host <example.com> because of the following errors:
Template_Exception: nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Please resolve the errors in web server configuration templates and generate the file again.

Cause

This is considered a Plesk bug #PPPM-12735 which will be fixed in an upcoming product release.
It is related to the lack of Lock usage in the nginx driver methods for module management.

WA did not help in https://cpanel.zendesk.com/agent/tickets/95764549, created new PPS in https://webpros.atlassian.net/browse/PPS-18123

Resolution

Until the bug is resolved the following workaround is available:

  1. Connect to the server via SSH

  2. Re-generate the webserver configuration files with the command:

    # plesk sbin httpdmng --reconfigure-all

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.