"Read error: #<IOError: closed stream>" and uploads

Eric Wong normalperson at yhbt.net
Sun Jan 23 19:59:09 EST 2011


Alexey Bondar <alexey.bondar at gmail.com> wrote:
> Hi. 
> 
> Unicorn 3.3.1 fails with "Read error: #<IOError: closed stream>" on request with attachments bigger than ~150kb. 
> 
> Ruby: 1.9.2-p0
> Rails: 3.0.1
> 
> Full stack trace: http://pastie.org/private/w1vwhbhdm9xtwwnpqog6wa
> Configuration: http://pastie.org/private/hdpiqs0d3xj3qmsjwg
> 
> I use nginx 0.8.x as frontend server. Nginx client_body_buffer_size is 128mb.

Anything in the nginx error log?  Did this happen with Unicorn 1.1.x?
The input code changed in the 3.x series drastically to support
non-rewindable input, so some bugs could've crept in.

-- 
Eric Wong


More information about the mongrel-unicorn mailing list