- Plesk Onyx 17.5 for Linux
Note: This article has the reference to the issue with the fix available:
- #PPPM-7398 "Fixed the issue where updating the default SSL/TLS certificate via the XML API resulted in the web server configuration getting corrupted."
- Plesk Onyx 17.5.3 Update 41 19 February 2018 (Linux)
- Default certificate is issued by Let's Encrypt.
- After updating default certificate using XML-RPC, server configurations are broken and Apache or Nginx cannot start:
# service httpd start
Starting httpd: Syntax error on line 118 of /etc/httpd/conf/plesk.conf.d/server.conf:
SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-pYAmnC' does not exist or is empty
# service nginx start
nginx: [emerg] BIO_new_file("/usr/local/psa/var/certificates/certwjFGVTD") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/psa/var/certificates/certwjFGVTD','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Note: Web servers might work correctly but the following error is sent via email:
CONFIG_TEXT: Cron <[email protected]> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Output of config test was:
AH00526: Syntax error on line 79 of /etc/apache2/plesk.conf.d/webmails/example.com_webmail.conf:
SSLCertificateFile: file '/opt/psa/var/certificates/cert-LG8jtV' does not exist or is empty Action 'configtest' failed.
The Apache error log may have more information.
error: error running shared postrotate script for '/var/log/apache2/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1
- The following errors can be found in
CONFIG_TEXT: ERR  '/usr/local/psa/admin/bin/nginx-config' '-t' failed with code 1.
nginx: [emerg] BIO_new_file("/usr/local/psa/var/certificates/cert-yBuuRB") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/psa/var/certificates/cert-yBuuRB','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
ERR [panel] New configuration files for the Apache web server were not created due to the errors in configuration templates: Syntax error on line 45 of /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf:
SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-nBc0yQ' does not exist or is empty. <a target="_blank" href="http://kb.plesk.com/en/products/?id=52&qprod=52">Search in KB</a>
Plesk bug with ID PPPM-7398 which is fixed in Plesk Onyx 17.5.3 Update 41.
Install the latest micro-updates or consider upgrading to the latest Plesk version: