504 Gateway Timeout after memory resizing

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.

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.

Hi @Casulleres,

It seems like the services Nginx, Unicorn, PostgresSQL didn’t start properly. To check this SSH to your droplet,

ssh root@YourDropletIp

Once you are in see if everything is running on the needed ports:

netstat -tulpen

Now, if something doesn’t work right, I’ll recommend trying to restart them like so

service nginx restart
service unicron restart
service postgresql restart

Once this has been done the websites should be running as expected.

Regards, KDSys