• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Server Error 502 Bad Gateway

First of all, make sure that sw-cp-server service is up and running with

# systemctl status sw-cp-server
● sw-cp-server.service - Startup script for Plesk control panel server
Loaded: loaded (/usr/lib/systemd/system/sw-cp-server.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-10-02 05:24:04 NOVT; 4h 26min ago
Main PID: 2861 (sw-cp-serverd)
CGroup: /system.slice/sw-cp-server.service
├─ 2861 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
└─23483 sw-cp-server: worker process

Try to start it if service is not active. Try to find a reason of problem in log file /var/log/plesk/sw-cp-server/error_log
 
Try to check if Nginx is running under services, I found out that since updating all the packages Nginx isn't starting itself automatically anymore.
 
Hi occinodo,

Try to check if Nginx is running under services
The Plesk "sw-nginx" - package has got nothing to do with "sw-engine" ( Plesk Server Control Panel PHP-FPM - service ) and "sw-cp-server" ( Plesk Control Panel webserver ). Pls. try not to mix your webservers on your server ( apache + nginx ) for your hosted domains with the Plesk Control Panel webserver. :)
 
thanks for reply my issue is resolved by its own i do nothing

this is error log
2017/10/02 14:42:41 [error] 25512#0: *7 open() "/usr/local/psa/admin/htdocs/currentsetting.htm" failed (2: No such file or directory), client: 27.19.182.17, server: , request: "GET /currentsetting.htm HTTP/1.1", host: "213.136.89.33:8443"
2017/10/05 20:37:16 [error] 25512#0: *264 open() "/usr/local/psa/admin/htdocs/a2billing/common/javascript/misc.js" failed (2: No such file or directory), client: 80.211.252.156, server: , request: "GET /a2billing/common/javascript/misc.js HTTP/1.1", host: "213.136.89.33:8443"
 
Back
Top