TITLE:
Subdomain config update leaves symbolic links in /etc/nginx/plesk.conf.d/forwarding directory
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk Onyx 17.0, latest MU, CentOS 7.2 and 7.3, 64-Bit
PROBLEM DESCRIPTION:In several cases on different servers, after a customer has created or updated a subdomain configuration, symbolic links in /etc/nginx/plesk.conf.d/forwarding remain like:
lrwxrwxrwx 1 root root 35 Apr 28 20:23 last_nginx.conf -> admin.customerdomain.tld_nginx.conf
or
lrwxrwxrwx 1 root root 32 May 9 20:42 last_.othercustomerdomain.tld_nginx.conf -> _.othercustomerdomain.net_nginx.conf
These symbolic links are causing a warning message on the Nginx syntax check "nginx -t", because they duplicate existing configurations:
nginx: [warn] conflicting server name "admin.customerdomain.tld" on 88.99.88.99:80, ignored
nginx: [warn] conflicting server name "_.othercustomerdomain.tld" on 88.99.88.99:80, ignored
Duplicate domain configuration files for these domain exist in /etc/nginx//plesk.conf.d/wildcards and /etc/nginx/plesk.conf.d/vhosts along with the /etc/nginx/plesk.conf.d/forwarding versions. Those duplicates cause more warning messages even after the symbolic links are removed manually. This could be related to the same bug, but maybe it is another, additional bug.
STEPS TO REPRODUCE:lrwxrwxrwx 1 root root 35 Apr 28 20:23 last_nginx.conf -> admin.customerdomain.tld_nginx.conf
or
lrwxrwxrwx 1 root root 32 May 9 20:42 last_.othercustomerdomain.tld_nginx.conf -> _.othercustomerdomain.net_nginx.conf
These symbolic links are causing a warning message on the Nginx syntax check "nginx -t", because they duplicate existing configurations:
nginx: [warn] conflicting server name "admin.customerdomain.tld" on 88.99.88.99:80, ignored
nginx: [warn] conflicting server name "_.othercustomerdomain.tld" on 88.99.88.99:80, ignored
Duplicate domain configuration files for these domain exist in /etc/nginx//plesk.conf.d/wildcards and /etc/nginx/plesk.conf.d/vhosts along with the /etc/nginx/plesk.conf.d/forwarding versions. Those duplicates cause more warning messages even after the symbolic links are removed manually. This could be related to the same bug, but maybe it is another, additional bug.
I was unable to reproduce it, but I have seen it randomly on two different servers. It seems to be caused by frequent or high-frequency customer domain updates.
ACTUAL RESULT:Redundant / unnecessary symbolic links in Nginx configuration directory.
EXPECTED RESULT:No redundant configuration files or links.
ANY ADDITIONAL INFORMATION:Reconfiguration, e.g. through Troubleshooter, does not remove the symbolic links. Maybe Troubleshooter is actuall CAUSING the issue. I remember that there were issues when the customers initially created the subdomains, then we used troubleshooter to reconfigure, now we are seeing the extra symbolic links.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug
Last edited: