Ngix - 502 Bad Gateway after changing root password

I have a Bad Gateway issue on a Ruby on Rails environment and I know absolutely nothing about Ruby. I am going to be running an app for a week and a half and had this app setup by a contracted whom is not available.

Sorry if there is an answer somewhere already, everything I seen was for PHP environments and I need to solve this in 24 hours before we launch our campaign, so in a bit of panic situation.

The VPS it’s running on: |
Ruby on Rails on 14.04 (Nginx + Unicorn)

What happened before it last

I couldn’t get into the server via FTP or SSH, so I reset the root password. I’m assuming this caused the issue because the site went down right after.

Additional Information

In case it matters, the domain is run through GoDaddy and with an A record pointing to the IP address.

I have, no idea what to do next.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

502 means that whatever is behind NGINX went down (in your case, rails). A root password reset may have restarted your server and you haven’t set your rails application up to start on boot.