Redmine文件上载错误 - 断开客户端与错误:错误读取请求正文:意外的流结束(错误= -1004)

时间:2017-08-24 08:31:59

标签: apache redmine

我正在尝试通过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最大附件大小高于文件大小。我增加了Apache TimeoutKeepAliveTimeout,设置KeepAlive Off,但它没有帮助。

有类似的问题:

如何通过Redmine上传大文件?

1 个答案:

答案 0 :(得分:0)

从Apache配置中删除LimitRequestBody。没有改变其他属性。