- Plesk Onyx for Linux
Note: This article has the reference to the issue with the fix available:
- #PPPM-7434 "Fixed the issue where subscriptions could not be completely removed because webmail configuration files were not deleted."
- Plesk Onyx 17.5.3 Update 46 23 April 2018
Attempt to install Let's Encrypt certificate succeeded, but the error appears in Plesk Home screen.
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] BIO_new_file("/usr/local/psa/var/certificates/cert-1RbkCo") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/psa/var/certificates/cert-1RbkCo','r') error:2006D080:BIO routines:BIO_new_file:no such file) nginx: configuration file /etc/nginx/nginx.conf test failed
- The certificate from the error is specified in domain's webmail configuration file:
# grep -r cert-1RbkCo /etc/nginx/plesk.conf.d/*
/etc/nginx/plesk.conf.d/webmails/example.com_webmail.conf: ssl_certificate /opt/psa/var/certificates/cert-1RbkCo;
Attempt to rebuilt web server configuration files fails with:
CONFIG_TEXT: Template_Exception: nginx: [emerg] BIO_new_file("/usr/local/psa/var/certificates/cert-1RbkCo") failed (SSL: error:02001002:system library:fopen:No such file or directory
- Unable to start apache:
CONFIG_TEXT: SSLCertificateFile: file '/opt/psa/var/certificates/cert-*' does not exist or is empty
- Webmail configuration files not removed for domains without web hosting.
This is Plesk bug with ID PPPM-7434, which is planned to be fixed in future Plesk updates.
Perform the following steps as a workaround:
- Connect to the server via SSH .
- Clean up all webmail configuration files, including redundant:
# rm -f /etc/nginx/plesk.conf.d/webmails/*
# rm -f /etc/httpd/conf/plesk.conf.d/webmails/*
# rm -f /etc/httpd/plesk.conf.d/server.conf
Rebuild web server configuration files:
# plesk repair web -server