• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Question Error 502 Bad Gateway timeout for few seconds after save settings

Azurel

Silver Pleskian
Each time updating/change "Apache & nginx Settings" for a single domain the server show for all subscriptions/domains a Error 502 Bad Gateway (for few seconds).

Is here no better way? Is this a bug? This issue is very annoying, you can never work in prime time or test things. I think this is because "restart" nginx? Why plesk "restart" it and not "reload" it with "nginx -s reload"?

CentOS Linux 7.8.2003
Plesk Obsidian Version 18.0.28 Update #2
 
Great, thank you very much! In your article was a hint
Graceful restart for Apache is enabled by default on all new Plesk Obsidian installations.
I use Plesk Obsidian and its was not checked, so this is a bug? I migrated from Onyx.
 
Hi, I have the same problem, I have a plesk VPS hosted in OVH. since yesterday all the hosted websites have an error
502 Bad Gateway
nginx​
In Plesk:
Code:
Details: [2020-07-14 10:17:31.413] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081' '--graceful'] with exit code [255] [2020-07-14 10:17:34.409] ERR [panel] Apache config (15947217180.25276600) generation failed: Template_Exception: Can not restart web server: Apache is down, start it instead of graceful Apache is down, start it instead of graceful file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php line: 114 code: 0 plesk sendmail[6363]: Unable to resolve fqdn: Name or service not known plesk sendmail[6363]: It is impossible to detect the FQDN of the host. Please make sure that the host name is correctly specified in /etc/hosts and goes right after the host's IP address. Depending on your OS, you might need to set the host name in /etc/HOSTNAME or /etc/hostname. plesk sendmail[6363]: Unable to retrieve hostname. Use localhost.localdomain instead. Can not restart web server: Apache is down, start it instead of graceful Apache is down, start it instead of graceful

this has happened since I updated Plesk
Me can you help me please?
 
Check your server hostname with

# hostname

and make sure that it is resolvable to IP of your server first.
 
Back
Top