与Unicorn一起运行的Rails:SIGWINCH被忽略,因为我们没有守护进程

时间:2016-02-13 00:19:35

标签: ruby-on-rails vagrant unicorn

Rails 4.2

我跑“流浪汉”。

我安装了Virtual Box。

我正在使用Mac OSX 10.11

我对流浪汉的环境很敏感。

我启动了我的应用并转到我的应用的首页。这很慢,但它确实有效。

然后尝试在浏览器中查看另一个页面。页面渲染需要将近2分钟,在此期间我看到:

  ./bin/unicorn_rails
  I, [2016-02-12T23:59:43.291050 #20214]  INFO -- : listening on addr=0.0.0.0:8080 fd=11
  I, [2016-02-12T23:59:43.291348 #20214]  INFO -- : worker=0 spawning...
  I, [2016-02-12T23:59:43.293053 #20214]  INFO -- : master process ready
  I, [2016-02-12T23:59:43.297287 #20243]  INFO -- : worker=0 spawned pid=20243
  I, [2016-02-12T23:59:43.297441 #20243]  INFO -- : Refreshing Gem list
  I, [2016-02-13T00:00:03.677384 #20243]  INFO -- : worker=0 ready
  E, [2016-02-13T00:06:42.781557 #20214] ERROR -- : worker=0 PID:20243 timeout (61s > 60s), killing
  E, [2016-02-13T00:06:43.051335 #20214] ERROR -- : reaped #<Process::Status: pid 20243 SIGKILL (signal 9)> worker=0
  I, [2016-02-13T00:06:43.074907 #20214]  INFO -- : worker=0 spawning...
  I, [2016-02-13T00:06:43.259004 #20263]  INFO -- : worker=0 spawned pid=20263
  I, [2016-02-13T00:06:43.270408 #20263]  INFO -- : Refreshing Gem list
  I, [2016-02-13T00:07:07.999131 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.020710 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.020774 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.020798 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.020820 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.398987 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.399073 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.516064 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.564657 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.608567 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.656556 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.716912 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.770429 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.820702 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.872056 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:08.941071 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:09.010447 #20214]  INFO -- : SIGWINCH ignored because we're not daemonized
  I, [2016-02-13T00:07:09.977588 #20263]  INFO -- : worker=0 ready

我有两个问题:

1。)当我去头版时为什么没有记录到终端?我习惯看到记录了大量数据。

2。)之前有没有人见过这个错误? “SIGWINCH被忽略了,因为我们没有被守护”

2 个答案:

答案 0 :(得分:0)

1)我有时也发现了一些东西,我的解决方案是拖尾开发日志。 tail -f log/development.log

2)https://github.com/defunkt/unicorn/blob/ea730f93b20ef582128f7c664f7b57953f855a09/lib/unicorn/http_server.rb#L303 这不是一个错误,但我同意它会堵塞你的日志。

答案 1 :(得分:0)

这是因为终端在运行后调整了大小

./bin/unicorn_rails

以下是问题(issue link

的链接