How do I get the site back up and running? I am quite new to the community so I am not sure what I am doing. I wanted to access the files via SFTP but didn’t have the original root password so I reset it in order to access it now the site is giving me 502 bad gateway error. And I am not sure how to fix it.
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!
So basically, mine was a Django project.After resetting my root password, I re-activated my virtual environment and restarted nginx and gunicorn.This solved my error.
Nginx restart : sudo service nginx restart Gunicorn restart : gunicorn --reload <your wsgi folder name>.wsgi bind 0.0.0.0:8000
That is unusual. A password reset can force a reboot of the droplet. If your nginx was proxying for another service like node.js/ruby or something else, make sure that the underlying service is running and restart it if it is not.
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.