• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

URGENT: 502 Bad Gateway - nginx

AshleyY

New Pleskian
Hello - I need some urgent assistance......

When trying to access plesk panel I get this error:

502 Bad Gateway - nginx

When this happens I get no access to any of the websites hosted and cannot login to the server via SSH so I cannot check the logs. Upon restarting the server it all works again for about 5 minutes before happening again.

I have managed in the 5 minutes it's working to get to: /var/log/sw-cp-server/error.log

Code:
2014/06/01 05:05:37 [error] 14397#0: *815 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 62.210.189.135, server: , request: "GET /vtigercrm/vtigerservice.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "178.63.79.75:8443"
2014/06/01 05:06:11 [error] 14397#0: *817 open() "/usr/local/psa/admin/htdocs/robots.txt" failed (2: No such file or directory), client: 66.249.78.159, server: , request: "GET /robots.txt HTTP/1.1", host: "www.creativekids.org.uk:8443"
2014/06/02 09:29:39 [crit] 1262#0: *7 connect() to unix:/var/run/sw-engine.sock failed (2: No such file or directory) while connecting to upstream, client: 81.152.113.187, server: , request: "GET /login_up.php3 HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "178.63.79.75:8443"

Does anyone have any idea's what could be causing this...
Thank you
 
Thank you - I looked at this but the contents of my config file is already set to:

fastcgi_max_temp_file_size 0;
fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;

fastcgi_read_timeout 600;
fastcgi_send_timeout 600;

client_max_body_size 2048m;
include /etc/sw-cp-server/conf.d/*.conf;

Any other ideas?
 
There are may be different reasons. Try to use KB search engine for "502 error nginx" phrase and check corresponding articles.
 
Back
Top