我在使用 Unicorn 运行 Rails 的 Ubuntu 服务器上收到了来自 Nginx 的 504 错误。
当我查看 Nginx error.log.1 时,我看到:
2014/01/21 18:06:02 [error] 698#0: *2 connect() failed (111: Connection refused) while connecting to upstream...
当我尝试查看 Rails production.log 时,服务器返回了Killed
当我尝试重新启动 Unicorn 时,我得到了master failed to start, check stderr log for details
当我跑步时df -h
我得到:
Filesystem Size Used Avail Use% Mounted on
/dev/vda 20G 4.1G 15G 22% /
当我跑步时df -i
我得到:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vda 1310720 144242 1166478 12% /
我尝试删除该production.log
文件并重新启动 Nginx 和 Unicorn。我现在可以重新启动 Unicorn,但仍然收到 504 错误。
我也在 Nginx error.log 中看到此信息:
2014/02/09 05:44:55 [error] 2245#0: *23 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 73.187.444.220, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8080/favicon.ico", host: "foo.com"
请帮忙!