• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

nginx 502 Bad Gateway Error

PriyanA

Regular Pleskian
Hi,

If I change any Service Plans for any website from the Panel, ALL THE OTHER website on the server stops and return "502 Bad Gateway - nginx" Error until the Service Plan process completed in the panel.

Is this normal behavior of the Plesk Panel 12?

Thank you.

-------
OS CentOS 6.5 (Final)

Plesk version 12.0.18 Update #41
--------
 
If I change any Service Plans for any website from the Panel, ALL THE OTHER website on the server stops and return "502 Bad Gateway - nginx" Error until the Service Plan process completed in the panel.

Is this normal behavior of the Plesk Panel 12?

Yes, this behaviour is absolute normal. Please keep in mind, that the service plan changes result in a re-configuration of the depending webserver configurations, where all files are rebuild based on the service plan settings - during this short time, you might experience such issues.
 
Thank you IgorG and UFHH01.

IgorG, above solution didn't work.

Why this changing Service Plan to one website affect the ALL OTHER WEBSITES on the server?

Are there any solution for this?

I just tried via a "Customer Login", just changing SSL to "default certificate" to "Not Selected" have the same affect on ALL OTHER WEBSITES - return "502 Bad Gateway - nginx" :eek:

This is really bad! If you have many Customers login to Plesk Panel and changing setting on there websites. ALL OTHER WEBSITES will return a "502 Bad Gateway - nginx" :(
 
Last edited:
Hi PriyanA,

you are trying to reproduce the 502 - error in combination with the setting changes, but you seem to ignore, that a nginx reload/restart is done within seconds. Even with 300 domains on one of my servers, we never got any complaint about the non-availability of any domains, because of 1 or 2 seconds downtime, during the last years. Webserver reloads/restarts are necessary when you change webserver configuration files and can't be avoided. Compare such downtimes to the rest of the year and you still have a 99,99 percent uptime. :)
 
Hi UFHHH01,

Thabnk you for your reply.

Of cause! I tried to reproduced the "502 Bad Gateway - nginx" error via a Customer Panel to see how far its goes :)

I don't have 300 websites running on a server. I have 4 VPSs running about 10 websites each but all of them are e-commerce websites (Magento).

First noticed the issue when a customer asked me about emails he has received regarding failied Cron Jobs (of cause Magento Crons) and lucky I remembered at that same time I was changing some "Service Plan" settings on that Server.

Priyan A
 
Back
Top