• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Nginx Bad Gateway

Alex12345678910

New Pleskian
Hi,

Someone decided to chmod -r the entire server yesterday. we have restored all the web and database permissions and these are now working.

When we try and login to the server we get a 502 bad gateway nginx... whne we look at the logs we see:

2015/10/07 08:09:25 [crit] 6197#0: *177 connect() to unix:/var/run/sw-engine.sock failed (13: Permission denied) while connecting to upstream, client: 31.53.107.164, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "212.48.87.9:8443"

Any ideas on how to repair or fix permissions for this?

Thanks
 
Hi Alex12345678910,

first, please have a look at: [IMPORTANT]: READ THIS FIRST TO FIND QUICK SOLUTION FOR THE EXISTING ISSUE/QUESTION

You will find as well a link to the Odin - Knowledge-Base, where you have a search option. Searching would point to for example:

Investigations should be done with the help of logs. Please visit and bookmark:


Services
  • Stop: /etc/init.d/psa stop
  • Start: /etc/init.d/psa start
  • Restart: /etc/init.d/psa restart
Please use these commands and report further issues.


Sometimes, it is as well a good idea to change the log - level, to get more informations in psa - log - files:




Another way to find, solve and/or repair issues, is to use the "bootstrapper repair utility" ( for Plesk 12.5, you should use the "Plesk Self Repair Utility" ) :

/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

If you experience issues/problems and need help with the investigations, please consider to post the corresponding - log - file(s).
 
Back
Top