とても重い処理があって(あっちゃダメなんだけど)
2015/12/02 04:38:45 [error] 31572#0: *711812 upstream prematurely closed connection while reading response header from upstream, client: IPアドレス, server: example.com, request: "POST /path HTTP/1.1", upstream: "http://unix:/tmp/unicorn.socket:/path", host: "example.com", referrer: "https://example.com/"
でエラーに。
nginxの設定で、
proxy_read_timeout 180;
に伸ばしてみたけどダメ
E, [2015-12-02T04:38:45.284877 #21386] ERROR -- : worker=6 PID:17845 timeout (61s > 60s), killing
E, [2015-12-02T04:38:45.359676 #21386] ERROR -- : reaped #<Process::Status: pid 17845 SIGKILL (signal 9)> worker=6
I, [2015-12-02T04:38:48.954480 #21614] INFO -- : worker=6 ready
あ、
# unicorn.rb
timeout 180
こっちでした。
http://unicorn.bogomips.org/Unicorn/Configurator.html#method-i-timeout