Hi all!
I have a problem with my Redmine instance which runs on Mongrel. It
is not a cluster, just a single instance of Mongrel 1.1.3. The problem
is that after some time Mongrel stops responding. After a restart
everything works well for a while (sometimes few hours, sometimes one
day).
Here is a snippet from mongrel’s log:
Wed Oct 15 07:50:53 +0200 2008: Reaping 3 threads for slow workers
because of ‘shutdown’
Thread #<Thread:0x2b92970d61a0 sleep> is too old, killing.
Wed Oct 15 07:50:53 +0200 2008: Error calling Dispatcher.dispatch
#<Mongrel::TimeoutError: Mongrel timed out this thread:
shutdown>Thread #<Thread:0x2b92970e0bc8 sleep> is too old, killing.
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
221:in process' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 159:in
process_client’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
158:in each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 158:in
process_client’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
285:in run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 285:in
initialize’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
285:in new' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 285:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
268:in initialize' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 268:in
new’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
268:in run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ configurator.rb:282:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel/
configurator.rb:281:in each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ configurator.rb:281:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in
run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ command.rb:212:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
/usr/bin/mongrel_rails:16:in `load’
/usr/bin/mongrel_rails:16Wed Oct 15 07:50:53 +0200 2008: Error calling
Dispatcher.dispatch #<Mongrel::TimeoutError: Mongrel timed out this
thread: shutdown>Thread #<Thread:0x2b92970e7978 sleep> is too old,
killing.
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
221:in process' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 159:in
process_client’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
158:in each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 158:in
process_client’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
285:in run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 285:in
initialize’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
285:in new' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 285:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
268:in initialize' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb: 268:in
new’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel.rb:
268:in run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ configurator.rb:282:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/…/lib/mongrel/
configurator.rb:281:in each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ configurator.rb:281:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in
run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/ command.rb:212:in
run’
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
/usr/bin/mongrel_rails:16:in `load’
/usr/bin/mongrel_rails:16Waiting for 3 requests to finish, could take
60 seconds.
** Daemonized, any open files are closed. Look at log/mongrel.pid and
log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:8777
** Starting Rails with production environment…
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It
might not work well.
** Mongrel 1.1.3 available at 0.0.0.0:8777
** Writing PID file to log/mongrel.pid
I’m just Redmine user and not a ROR developer so I have a hard time
debugging the above. Any ideas anyone?