# Files truncated

**URL:** <https://www.ruby-forum.com/t/files-truncated/191217>\
**Category:** NGINX\
**Created:** [July 7, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/files-truncated/191217 "2010-07-07T17:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://www.ruby-forum.com/u/axel)\
**Post date:** [July 7, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/files-truncated/191217/1 "2010-07-07T17:01:06Z")

</div>

Hi guys,

another quick question: I’m still trying to figure out why sometimes  
some files are truncated when they arrive on the client’s browser. For  
instance, a video that lasts 1 minute is cut after 5 second on the  
browser. I found this in my logs:

2010/07/07 16:55:02 [warn] 11417#0: \*1389 an upstream response is  
buffered to a temporary file  
/usr/local/nginx/fastcgi\_temp/8/03/0000000038 while reading upstream,  
client: 213.215.7.xxx, server: [www.yyy.com](http://www.yyy.com), request: “GET  
/reyrant/cyrylot-87.htm HTTP/1.0”, upstream: “fastcgi://127.0.0.1:9000”,  
host: “[www.yyy.com](http://www.yyy.com)”

I tried to issue:  
root@ns20xxx46:/# ls /usr/local/nginx/fastcgi\_temp/8/03/0000000038  
ls: cannot access /usr/local/nginx/fastcgi\_temp/8/03/0000000038: No such  
file or directory

What is that a Warning? Is it normal the file does not exist?

Tksss

Axel

---

<div class="post-metadata">

**Author:** ![axel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://www.ruby-forum.com/u/axel)\
**Post date:** [July 7, 2010, 5:45pm UTC](https://www.ruby-forum.com/t/files-truncated/191217/2 "2010-07-07T17:45:02Z")

</div>

Hello!

On Wed, Jul 07, 2010 at 05:00:21PM +0200, Axel wrote:

> What is that a Warning? Is it normal the file does not exist?  
> It’s warning which mean to say “hey, you are hitting disk, and  
> may want to tune your proxy\_buffers”. And yes, it’s normal that  
> file isn’t visible on disk as it’s temporary file and unlinked  
> right after creation.

Maxim D.

---

<div class="post-metadata">

**Author:** ![axel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://www.ruby-forum.com/u/axel)\
**Post date:** [July 7, 2010, 6:00pm UTC](https://www.ruby-forum.com/t/files-truncated/191217/3 "2010-07-07T18:00:16Z")

</div>

Thanks Maxim.

So I guess my issue is really not related to that warning.  
It seems the connection is closed before the entire file was downloaded  
by the client. Once it happens, the client has the shortened version in  
its cache and is unable to read the full video  
Any idea about it?

Thanks

Axel

Le 7 juil. 2010 à 17:44, Maxim D. a écrit :
