Can't Determine 504 Bad Gateway Cause

Posted February 9, 2014 3.7k views
I'm getting a 504 error from Nginx. When I look in the Nginx error.log.1, I see: "2014/01/21 18:06:02 [error] 698#0: *2 connect() failed (111: Connection refused) while connecting to upstream..." When I try to look in the Rails production.log, the server returns "Killed". When I try to restart Unicorn, I get "master failed to start, check stderr log for details". When I run `df -h` I get: Filesystem Size Used Avail Use% Mounted on /dev/vda 20G 4.1G 15G 22% / When I run 'df -i' I get: Filesystem Inodes IUsed IFree IUse% Mounted on /dev/vda 1310720 144242 1166478 12% / I tried to find a solution in chat and it was suggested I raise a ticket. Please help. Thanks!

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.

Submit an Answer
2 answers
Check unicorn's error logs, is there anything in there?
Please let me know if you find anything. I have this too.