upload file problem (500 Internal Server Error)
Piotr Polok
toplek at polok.pl
Thu Sep 1 08:42:43 UTC 2011
HI,
I'm using version: 'nginx version: nginx/1.1.0'
While uploading file I'm getting an error: '500 Internal Server Error'
This is an nginx.log result:
------
2011/09/01 10:39:49 [alert] 28764#0: accept() failed (24: Too many open
files)
2011/09/01 10:39:49 [alert] 28764#0: accept() failed (24: Too many open
files)
2011/09/01 10:39:49 [alert] 28764#0: accept() failed (24: Too many open
files)
2011/09/01 10:39:49 [alert] 28764#0: accept() failed (24: Too many open
files)
2011/09/01 10:39:49 [alert] 28764#0: *13013 socket() failed (24: Too
many open files) while connecting to upstream, client: 127.0.0.1,
server: 192.168.0.222, request: "POST /upload HTTP/1.0", upstream:
"http://127.0.0.1:80/upload", host: "localhost", referrer:
"http://192.168.0.222/CRM/upload4.html"
2011/09/01 10:39:49 [crit] 28764#0: *13013 open() "/var/www/50x.html"
failed (24: Too many open files), client: 127.0.0.1, server:
192.168.0.222, request: "POST /upload HTTP/1.0", upstream:
"http://127.0.0.1:80/upload", host: "localhost", referrer:
"http://192.168.0.222/CRM/upload4.html"
------
The 'lsof -n | wc -l' command gives a result: '1980' value.
The 'cat /proc/sys/fs/file-max' command gives a result: '203296'.
So it is not a too many open files problem?
The upload4.html containt:
-----
<html>
<head>
<title>Test upload</title>
</head>
<body>
<h2>Select files to upload</h2>
<form enctype="multipart/form-data" action="/upload" method="post">
<input type="file" name="file1"><br>
<input type="submit" name="submit" value="upload">
<input type="hidden" name="test" value="value">
</form>
</body>
</html>
-----
Please help ;)
--
best regards
Piotr Polok
More information about the nginx
mailing list