I powered down our CentOS droplet for backup/snapshot. When I powered it back on the Web2py site did not come back up. We just get a 502 Bad Gateway nginx response. Nothing changed in the configuration or files that we are aware of prior to the shutdown. I have gone through the https://www.digitalocean.com/community/tutorials/how-to-deploy-web2py-python-applications-with-uwsgi-and-nginx-on-centos-7 and verified that everything is still setup as shown, but still no joy. Web2py is running as expected. (I’m currently hosting the site for our client on port 8000 via Web2py) The uWSGI per the instructions is hosting the http test as expected. I’m not seeing any errors that are helping me at this moment. But I think I’ve gone over this to many times to see this objectively and am asking for any guidance/help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I could suggest checking your Nginx error log so that you could see the actual error rather than the generic 502 error:
tail -100 /var/log/nginx/error.log
If you get a file not found when running the above, you would need to check the exact location of your error log by running:
grep -r error /etc/nginx/*
Feel free to share the output of the error log here.
Also, it would help if you could share the Nginx reverse proxy rule that you have in place.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.