Hello,
I’m trying to deploy my first Rails app but keep getting a 504 Gateway Time-out nginx error all the time.
I followed this tutorial meticulously: https://www.digitalocean.com/community/articles/how-to-launch-your-ruby-on-rails-app-with-the-digitalocean-one-click-image
I already spent hours reading other (similar) tutorials as well as my various error logs. Unfortunately, I can’t get any information out of those logs, so I don’t know what I am missing.
This would be one line from my NGINX error log (the other lines all look virtually the same):
2014/05/21 10:04:12 [error] 731#0: *216 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 85.177.244.29, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "mydomain.com"
Can anybody tell me what I am doing wrong here?
Thanks for any help.
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!
Is there anything in <code>/home/unicorn/log/unicorn.log</code> ? <br> <br>I’d also try restarting the unicorn service if you haven’t done so after deploying new code: <br> <br><pre>service unicorn restart</pre>
No, interestingly, when I try to open that file from within the log directory using nano unicorn.log, I get a blank screen in my terminal on Mac OS X for a few seconds. It then says Killed in my terminal. What could this mean?
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.