我正在尝试通过Redmine上传大文件,但一段时间后我在UI中收到"错误"消息。Apache错误日志在按下文件上传按钮后显示错误:
[ 2017-08-24 11:18:55.3637 5133/7f34b3fff700 Ser/Server.h:1039 ]: [Client 1-166] Disconnecting client with error: error reading request body: Unexpected end-of-stream (errno=-1004)
[ 2017-08-24 11:19:25.4897 5313/7fe0e052f780 apa/Hooks.cpp:690 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Unknown error -102 (-102)
Backtrace:
in 'void Hooks::sendRequestBody(const Passenger::FileDescriptor&, request_rec*, bool)' (Hooks.cpp:1200)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:561)
[ 2017-08-24 11:19:25.4900 5133/7f34b2ffd700 Ser/Server.h:1039 ]: [Client 3-186] Disconnecting client with error: error reading request body: Unexpected end-of-stream (errno=-1004)
Redmine 最大附件大小高于文件大小。我增加了阿帕奇Timeout
,KeepAliveTimeout
,设置KeepAlive Off
但没有帮助。
还有类似的问题:
- mod_passenger中出现意外错误:接收 HTTP 上传数据时出错
- 无法在乘客应用程序中上传 behing apache
如何通过红矿上传大文件?
从 Apache 配置中删除了LimitRequestBody
。未更改其他属性。