I set up the 1 click droplet with Ubuntu and Rails. After setting up Git and uploaded the project I worked on it for some weeks without any problem. Then I did a power cycle from the DigitalOcean web UI and since then I got the 502 error.
I’ve tried everything, rebooting from UI, rebooting from the console, changing permissions on the project to the same user as nginx, rebooting nginx, rebooting unicorn, but until now nothing worked.
Any suggestions on resolving this?
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.
One the one-click Rails app,
unicorn
is launched with therails
user.What are the permissions on
/root/test_app/
? The sample application that is running on the one-click app is in/home/rails/
Usually people just remove the contents of that directory and install their app there.Each request to the root will give me a bunch of permission denied errors in the nginx error logs: