Report this

What is the reason for this report?

DigitalOcean Rails Droplet Nginx Timeout

Posted on December 7, 2014

Hey Guys,

Went through the steps in [this] (http://https://www.digitalocean.com/community/tutorials/how-to-1-click-install-ruby-on-rails-on-ubuntu-12-10-with-digitalocean) as well as this tutorial but keep getting a 504 Nginx error.

Here is the output from tail /var/log/nginx/error.log

2014/12/07 16:55:03 [error] 682#0: *50 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 99.235.112.224, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "104.131.76.121"
2014/12/07 16:56:57 [error] 682#0: *50 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 99.235.112.224, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "104.131.76.121"
2014/12/07 16:59:51 [error] 682#0: *53 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 99.235.112.224, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "104.131.76.121"

And here is the error log from tail /home/unicorn/log/unicorn.log

/usr/local/rvm/gems/ruby-2.1.3/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:294:in `join'
/usr/local/rvm/gems/ruby-2.1.3/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.3/bin/unicorn:23:in `load'
/usr/local/rvm/gems/ruby-2.1.3/bin/unicorn:23:in `<main>'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in `<main>'
E, [2014-12-07T17:01:16.737896 #29412] ERROR -- : reaped #<Process::Status: pid 30156 exit 1> worker=0
I, [2014-12-07T17:01:16.738189 #29412]  INFO -- : worker=0 spawning...
I, [2014-12-07T17:01:16.746972 #30169]  INFO -- : worker=0 spawned pid=30169
I, [2014-12-07T17:01:16.778199 #30169]  INFO -- : Refreshing Gem list

Looking for some direction on how to solve this. Is my unicorn gem incorrect?



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!

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.

what was the solution ??

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.