网站配置是 nginx+passenger,上传小文件没问题,上传 1M 以上的文件就报这个错了。
nginx 部分配置是
keepalive_timeout 65;
passenger_max_pool_size 6;
client_max_body_size 10m;
nignx 中的日志是:
2015/07/02 11:40:59 [error] 11176#0: 908849 open() "/root/demo/upload/UploadAction" failed (2: No such file or directory), client: 121.28.35.197, server: XXXX, request: "POST /upload/UploadAction HTTP/1.1", host: "XXXX", referrer: "XXXX/html5up-150127225933/" App 11183 stderr: [ 2015-07-02 11:41:03.0486 11205/0x0000000257cfe0(Worker 1) utils.rb:85 ]: ** Exception Errno::ENOSPC in Rack application object (No space left on device @ io_write - /tmp/RackMultipart20150702-11205-1jpgg8n.zip) (process 11205, thread 0x0000000257cfe0(Worker 1)):
2015-07-02 11:41:03.0491 11163/7fb9c2083700 age/Hel/Req/Utils.cpp:89 ]: [Client 1-2493] Sending 502 response: application did not send a complete response 2015/07/02 11:41:03 [error] 11176#0: *909061 recv() failed (104: Connection reset by peer) while reading upstream, client: 61.51.222.47, server: XXXX, request: "POST /upload/pluginzip HTTP/1.1", upstream: "passenger:unix:/tmp/passenger.a5MmWLs/agents.s/server:", host: "XXXX", referrer: "XXXXX"
找不到问题在哪儿