upload file problem (500 Internal Server Error)

li zJay zjay1987 at gmail.com
Thu Sep 1 09:49:29 UTC 2011


try this?

> worker_rlimit_nofile 10000;
>

On Thu, Sep 1, 2011 at 4:42 PM, Piotr Polok <toplek at polok.pl> wrote:

> 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<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<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 at nginx.org
> http://mailman.nginx.org/**mailman/listinfo/nginx<http://mailman.nginx.org/mailman/listinfo/nginx>
>



-- 
祝好
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110901/f30fe1f5/attachment-0001.html>


More information about the nginx mailing list