I have a droplet with a rails 5 app working fine. After a deployment I got errors when installing gems and I realized that I had to increase memory.
I had 1Gb and resized to 2Gb. After resize from 1Gb to 2Gb of memory I got this error (504 Gateway Timeout).
Before resizing I poweroff from terminal, all fine, but I did not:
service nginx stop
service unicorn stop
service postgresql stop
Maybe, is this the problem?
Now all 3 services are working fine, but I still get the 504 Gateway Timeout error.
Also, now when In run cap production deploy
it hangs out when installing gems
I’m absolutely lost, and any help will be appreciated.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hi @Casulleres,
It seems like the services Nginx, Unicorn, PostgresSQL didn’t start properly. To check this SSH to your droplet,
Once you are in see if everything is running on the needed ports:
Now, if something doesn’t work right, I’ll recommend trying to restart them like so
Once this has been done the websites should be running as expected.
Regards, KDSys