nginx rails有时会出现404错误,错误日志是(在nginx重启后工作)
2014/05/14 13:29:49 [crit] 32228#0: *3138 connect() to /tmp/passenger.1.0.32203/generation-0/request failed (2: No such file or directory) whil$
$76.186, server: 107.170.10.25, request: "GET /api/v1/search.json?radius=25&longitude=77.62598510831594&latitude=12.934331866450355&per=10&page$
2014/05/14 13:29:51 [crit] 32228#0: *3140 connect() to /tmp/passenger.1.0.32203/generation-0/request failed (2: No such file or directory) whil$
2014/05/14 13:29:51 [error] 32228#0: *3140 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 171.76.76.186$
如果我重新启动nginx一切正常。我使用铁路4乘客4.0.41与rvm 1.25.24 我使用过passenger-nginx ubuntu包。来自https://gorails.com/deploy/ubuntu/14.04
的说明答案 0 :(得分:0)
如果设置passenger_temp_dir /somewhere-appropriate