Welcome! Log In Create A New Profile

Advanced

Re: Nginx temp file being deleted errenously

Gregory Edigarov
January 30, 2013 08:28AM
On 01/26/2013 02:36 AM, tulumvinh@gmail.com wrote:
> Hello everyone,
>
> My company processes millions of requests for file uploads/downloads and we
> are looking at Nginx to replace Apache. We are running into a problem that
> I hope you can help -- I have searched the web and even read Nginx HTTP
> Server book by Clement Nedelcu.
>
> At a high level, the flow of a request through our system is as follows:
> user agent posts the data to upload --> Ngixn acting as a reverse proxy
> --> Object store -> post action of passing request to Uwsgi.
>
> Problem: when uploading a large file (~ 100MB) , the post action is
> failing. The error message seen in error.log is "8 sendfile() failed (9:
> Bad file descriptor) while sending request to upstream," message. This use
> case occurs even if no load on the system,
>
> When I enable "debug", I see that after the Nginx streams the bytes to the
> object store, the temp file is deleted. When the post action is executed it
> fails as the temp file is gone.
>
>
> *Note: this error is NOT seen when upload small files.

I would store the file in some temporary space on frontend, and then forwarded it to the storage backend.

--
With best regards,
Gregory Edigarov

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

Nginx temp file being deleted errenously

tulumvinh@gmail.com January 25, 2013 07:36PM

Re: Nginx temp file being deleted errenously

Gregory Edigarov January 30, 2013 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
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