By Casulleres
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.
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!
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
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.