Question
DigitalOcean Rails Droplet Nginx Timeout
Hey Guys,
Went through the steps in this 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?
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.
×
Now I am getting this in my tail -n 100 /home/unicorn/log/unicorn.log
I have now progressed to a new error: