TITLE:
Minor: Configuration Trouble Shooter shows false positive alerts during configuration change
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Onyx 17.07, CentOS 7.3, 64 bit
PROBLEM DESCRIPTION:When the hosting settings of a domain on a slow system or a system with many domains are being changed from for example "web space" to "redirect", the web configuration trouble shooter shows errors for the corresponding hosting configuration files. It is possible that a configuration error message like the one below is mailed although shortly later the configuration is correct on disk.
STEPS TO REPRODUCE:
Code:
Unable to generate the web server configuration file on the host <hostname> because of the following errors:
Template_Exception: nginx: [emerg] open() "/etc/nginx/plesk.conf.d/vhosts/<domain>.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/zz010_psa_nginx.conf:7
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.
Test on a server that takes a while to update hosting settings, for example either on a slow server or on one that has many PHP-FPM children and many domains, so that restarting anything takes a few seconds.
Change the hosting settings of a domain from "web space" to "redirect". Then go into configuration trouble shooter.
ACTUAL RESULT:Change the hosting settings of a domain from "web space" to "redirect". Then go into configuration trouble shooter.
Configuration trouble shooter will claim missing/empty or false configuration files for domainForwarding.php or nginxDomainVhost.php for the related domain.
EXPECTED RESULT:Configuration trouble shooter should not display errors on domains that are currently processing a configuration change, because it is irrelevant if accidentally in that very second a user opens the extension a domain configuration file is being rebuilt and not available for that reason.
ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug