Hi,

I have Apache (2.2) setup to proxy requests through to Mongrel (0.3.12.4) for a Rails (1.1.2) application (on ruby 1.8.4).  The setup is great, but I'm experiencing some nightly failures.  I thought I'd post here before digging in too deeply, but it looks like Rails is going into lala land and Mongrel can't recover...

Seems like everything gets all backed up in mongrel/rails.rb:64 at:

@guard.synchronize do
              # Rails is not thread safe so must be run entirely within synchronize
              Dispatcher.dispatch (cgi, ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, response.body)
end

Prior to doing a "mongrel_rails restart" the mongrel log is normal and there's nothing unusual in my rails log.  Once I do a "mongrel_rails restart," I get a bunch of the following dumped into the mongrel.log (I assume one for each thread that's chillin' at @guard.synchronize)...

Error calling Dispatcher.dispatch #<Mongrel::StopServer: Timed out thread.>
/usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.12.4/lib/mongrel.rb:472:in `lock'
/usr/local/lib/ruby/1.8/thread.rb:133:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/rails.rb:64:in `process'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:425:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.12.4/lib/mongrel.rb:424:in `process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:495:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.12.4/lib/mongrel.rb:494:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:483:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:774:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.12.4/lib/mongrel.rb:772:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:97:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel- 0.3.12.4/lib/mongrel/command.rb:163:in `run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:194
/usr/local/bin/mongrel_rails:18

If anyone has any ideas please let me know... I promise I'll jump up and down!

Thanks,
Jeremy
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to