在Nginx + Passenger中为Redmine中的大附件获取截断的响应。
错误日志如下所示:
[ pid=11234 thr=3070954384 file=ext/nginx/HelperAgent.cpp:568 time=2010-11-23 16:05:29.414 ]: Couldn't forward the HTTP response back to the HTTP client: It seems the user clicked on the 'Stop' button in his browser.
我们在登台机器上遇到了这个问题,它与nginx的'proxy_temp-folder(在我们的例子中为/ opt / nginx / proxy_temp)
删除文件夹并重新启动nginx解决了这个问题。
问题可以通过使用Standalone Passenger而不是Nginx模块来解决。
然而,这是非常有趣的,因为独立的乘客是基于Nginx的。 也许它只是使用更合适的configuration。
我们在ubuntu 12.04上运行nginx 1.0.3,并且遇到同样的问题。 我们所做的是用nginx.conf中的passenger_spawn_method smartreplacerails_spawn_method smart已弃用的rails_spawn_method smart 。 这个问题从此消失了。