Welcome! Log In Create A New Profile

Advanced

upload file problem (500 Internal Server Error)

Piotr Polok
September 01, 2011 04:44AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upload file problem (500 Internal Server Error)

Piotr Polok September 01, 2011 04:44AM

Re: upload file problem (500 Internal Server Error)

lm011111 September 01, 2011 05:52AM

Re: upload file problem (500 Internal Server Error)

Piotr Polok September 01, 2011 06:04AM

Re: upload file problem (500 Internal Server Error)

magicbear September 01, 2011 07:17PM

Re: upload file problem (500 Internal Server Error)

Piotr Polok September 05, 2011 02:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready