- Plesk for Linux
One of the following messages might appear on Plesk Home:
PLESK_ERROR: Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: ...
PLESK_ERROR: Due to the following errors in the configuration templates, no new configuration files could be created for the Apache webserver: Can not restart web server: graceful restart failed, perform full restart httpd stop failed 9 / usr / sbin / httpd processes are killed
PLESK_ERROR: 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: <...>
When opening Tools & Settings > Webserver Configurations Troubleshooter and filtering status by "Error", records with "File Path: N/A" or "Related domain: Deleted" are shown.
Webserver Configurations Troubleshooter shows one of the following messages:
When checking configurations:
PLESK_INFO: There is an extra configuration with id X belongs to the missed domain with id Y
When rebuilding configurations:
PLESK_ERROR: Error: Can not reconfigure web server configurations: Unable to execute httpdmng: Domain with name '' does not exist
Apache and nginx (if enabled) web-servers are up and running and their configuration is does not have any errors:
# apachectl -t
# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
The Plesk database contains records about non-existent configuration files or old error messages.
Remove the old information via Plesk:
Go to Tools & Settings > Webserver Configurations Troubleshooter.
Note: If the Webserver Configurations Troubleshooter option is not shown, install it following the instructions available in this KB article.
Click the button > Set Status search filter to Error from the drop-down menu:
The list of broken configuration files will appear. Select all, then click Rebuild > Selected.
If configuration files could not be repaired, select them and click Remove.
Click Check configuration to make sure there is no broken configuration left.
Connect to the Plesk server via SSH.
Create a folder for temporary files:
# mkdir -p /tmp/plesksupport
Create a file with affected domains:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -Ne"select name from domains where id in (select objectId from Configurations where status<>'ok')" > /tmp/plesksupport/domainlist.txt
Reconfigure the affected domains:
# cat /tmp/plesksupport/domainlist.txt | while read domain; do plesk repair web -y $domain; echo "$domain - success"; done
# plesk repair web -server
Remove broken configuration entries from the Plesk database:
# plesk db "delete from Configurations where status <> 'ok'\G"
Validate configuration files:
# plesk repair web -validate-configuration
none of the troubleshooting steps helped..
I used both of these methods and still have the same problem. On the last step of the SSH solution I still receive the following:
Checking for extra configurations in database not owned by any object
There are some unnecessary configurations in the database. Please
check https://support.plesk.com/hc/articles/213389789 for solution [WARNING]
Error messages: 0; Warnings: 1; Errors resolved: 0
Executing the "plesk db delete..." command preceding that there is nothing reported, and it is evidently not removing the extra entries.
Please sign in to leave a comment.