Nginx, Rails and Oauth. upstream prematurely closed connection

后端 未结 1 629
孤城傲影
孤城傲影 2021-02-07 08:30

I have a strange problem that appears in production environment only when I use nginx and unicorn. When I use unicorn without nginx, it doesn\'t happen.

The problem. I h

1条回答
  •  难免孤独
    2021-02-07 09:04

    ERROR -- : worker=0 PID:6005 timeout (31s > 30s), killing
    

    It goes without saying that you just need setup timeout to more then 30 in you unicorn config

    Try at least

    timeout 60
    

    http://unicorn.bogomips.org/Unicorn/Configurator.html#method-i-timeout

    0 讨论(0)
提交回复
热议问题