Ruby Forum Ruby on Rails > Random Closed Stream error...

Posted by Sonny Chee (soroe)
on 26.05.2008 21:29
Hey Guys,

I've been getting a random 'closed stream' exception with my app.  I
can't reliably duplicate the problem.  It seems to crop up every 20th
request or so...  A snippet from the call-stack appears below. If I hit
the browser refresh button, the request completes successfully.

I'm working on Ubuntu 8.04 (Hardy Heron) with Rails 2.0.2 and Mongrel
1.1.4


Any ideas would be really appreciated.


==================================
closed stream

/usr/lib/ruby/1.8/tempfile.rb:151:in `close'
/usr/lib/ruby/1.8/tempfile.rb:151:in `callback'
vendor/rails/activerecord/lib/active_record/validations.rb:518:in `call'
vendor/rails/activerecord/lib/active_record/validations.rb:518:in `send'
vendor/rails/activerecord/lib/active_record/validations.rb:518:in
`validates_presence_of'
Posted by Foreero Ivan (ivmafo)
on 28.06.2008 00:40
(Received via mailing list)
Did you ssolve this problem , I've the same error sometimes  any  idea
of what is the problem or  how fix that ??

On 26 mayo, 14:29, Sonny Chee <rails-mailing-l...@andreas-s.net>
Posted by Sonny Chee (soroe)
on 28.06.2008 00:54
Foreero Ivan wrote:
> Did you ssolve this problem , I've the same error sometimes  any  idea
> of what is the problem or  how fix that ??
> 
> On 26 mayo, 14:29, Sonny Chee <rails-mailing-l...@andreas-s.net>

Ivan,

Unfortunately, not.  I haven't had time to fully investigate.  I suspect 
it has something to do with the image_science graphics package that I 
use with attachment_fu.  Would you, by any chance also be using 
either/both of these plugins?

Sonny.
Posted by Foreero Ivan (ivmafo)
on 28.06.2008 20:01
No , I have  not these plugins  installed in my app. I thought that it 
have to do with mongrel.

I'll investigate about this , if I  found something to solve this I'll 
warning you .. and if you have something please let me know what you 
found.

Thanks for pay attention to my question
Posted by Sonny Chee (soroe)
on 19.08.2008 21:04
Foreero Ivan wrote:
> No , I have  not these plugins  installed in my app. I thought that it 
> have to do with mongrel.
> 
> I'll investigate about this , if I  found something to solve this I'll 
> warning you .. and if you have something please let me know what you 
> found.
> 
> Thanks for pay attention to my question

Ivan,

Are you using Ubuntu 8.04 or some other flavour of Linux?  I've never 
seen this issue when my app is deployed to a server with Solaris....

Sonny.