• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Forwarded to devs Nginx Caching size can be set to zero, which causes a web server configuration error

Bitpalast

Plesk addicted!
Plesk Guru
Username: Peter Debik

TITLE

Nginx Caching size can be set to zero, which causes a web server configuration error

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian, latest MU
CentOS 7.9

PROBLEM DESCRIPTION

It is possible to set the Nginx cache size to zero. However, that value is considered an invalid entry into the max_size configuration parameter of Nginx. As subscribers can manage this setting by themselves, they can cause issues to the system in general by setting a false value.

STEPS TO REPRODUCE

Set the cache size to zero.

ACTUAL RESULT

Webserver configuration error (e.g. in web server configurations trouble shooter)

EXPECTED RESULT

a) Zero must not be allowed as a parameter.
or
b) When set to zero, the cache should be disabled.

ANY ADDITIONAL INFORMATION

First seen in
and confirmed issue in our own servers.

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Peter, the issue PPP-50663 is resolved in 18.0.31, it seems you have a too old version of Plesk, not latest MU?
 
It's just recently occured twice in two different subscriptions on a system that was upgraded by Plesk staff and is running 18.0.31 MU #2, last updated December 1st. No other issues on that system.
 
@IgorG I think we caught it. I was able to speak to the customer who caused the false configuration. He told me that he is a noob and did NOT use the Apache/Nginx settings. Instead he disabled Nginx caching in the Wordpress Toolkit. So maybe developers might want to check whether this can cause the zero setting in the Nginx caching values. I think that this is a very reasonable starting point for further analysis, because there is another issue linked with the same configuration option in Wordpress Toolkit: When you turn Nginx caching on/off there, the Apache/Nginx setting page setting is not affected by it. For example when I turn off Nginx caching in WP Toolkit, the corresponding switch on the Nginx settings is not turned off. When I toggle the switch on the Nginx settings page, the corresponding switch in WP Toolkit is not modified. So probably what developers have done is to remove Nginx caching values or setting them to "zero" when the switch is toggled in WP Toolkit, but have not actually turned Nginx caching off or removed all the corresponding settings in the Plesk panel option for it.
 
Looks like bug is related to upgrading case when wrong cache size value was stored in the database and the user tried to turn cache from WordPress toolkit.

Reported bug for this: PPPM-12605
 
Back
Top