# Interesting find: multiple file uploads stopped on Linux

**URL:** <https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779>\
**Category:** Rails\
**Created:** [April 15, 2008, 12:36am UTC](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779 "2008-04-15T00:36:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [April 15, 2008, 12:36am UTC](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779/1 "2008-04-15T00:36:30Z")

</div>

Hi,

I came across something very interesting. I use attachment\_fu for file  
uploads and mongrel\_cluster for scalability. Together they should  
allow me to perform multiple (concurrent) file uploads. This does work  
with uploads started on Windows, but on Linux something strange  
happens: the upload started on Linux hangs.

So, if you start an upload from a Linux machine, and then start an  
upload from a Windows machine, the Windows upload will go through but  
the Linux upload will cause the browser to time out. If you start  
multiple uploads from a Linux machine, they will both fail. If you  
attempt multiple uploads from a Windows machine (or 2 different  
Windows machines), they all work!

I tried many combinations: different Windows, Linux and Solaris  
machines with different browsers (ie, mozilla, firefox, sea-monkey).  
You can trace the upload by looking at the /tmp folder of the web  
server. When a Windows upload starts, you can see a CGIXXXX-0 file  
growing in the /tmp folder. When the Linux upload starts, you can see  
a second CGIXXXX-0 file in the /tmp folder. After 1-2 seconds, the  
temp file corresponding to the Linux upload stops growing (while the  
Windows upload file continues to grow).

Does anyone know why this happens?

Thanks,  
Tiberiu

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [April 15, 2008, 9:05am UTC](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779/2 "2008-04-15T09:05:52Z")

</div>

You could try it with just one mongrel and see if that helps.

> a second CGIXXXX-0 file in the /tmp folder. After 1-2 seconds, the  
> temp file corresponding to the Linux upload stops growing (while the  
> Windows upload file continues to grow).
> 
> Does anyone know why this happens?
> 
> Thanks,  
> Tiberiu

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [April 17, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779/3 "2008-04-17T20:00:21Z")

</div>

False alarm. For some reason the IS&T group at work is somehow capping  
uploads. I tried it from home from a Linux machine and it works.

Tiberiu
