I am going crazy here. Until recently my app was working fine and now
I seem to be unable to use background workers because they die as soon
as they are launched.

The interesting thing is that they happen even with no jobs on the
queue.

When I look at the heroku logs I see that the worker starts up and
dies directly after.

####

2011-04-11T11:09:41-07:00 app[worker.1]: (in /app)
2011-04-11T11:09:43-07:00 heroku[worker.1]: State changed from
starting to up
2011-04-11T11:09:44-07:00 heroku[worker.1]: State changed from
stopping to down

####

Sometimes I get a more elaborate response:

####

2011-04-11T11:13:00-07:00 app[worker.1]: SIGTERM
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/actionpack-3.0.6/lib/action_controller/base.rb:203:in
`<class:Base>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/actionpack-3.0.6/lib/action_controller/base.rb:169:in
`<module:ActionController>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/actionpack-3.0.6/lib/action_controller/base.rb:3:in `<top
(required)>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/config/environments/
production.rb:53:in `block in <top (required)>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:47:in `class_eval'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:47:in `configure'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/config/environments/
production.rb:1:in `<top (required)>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`require'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`block in require'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:225:in
`block in load_dependency'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:596:in
`new_constants_in'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:225:in
`load_dependency'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`require'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application/bootstrap.rb:11:in `block in
<module:Bootstrap>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/initializable.rb:25:in `instance_exec'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/initializable.rb:25:in `run'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/initializable.rb:50:in `block in
run_initializers'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/initializable.rb:49:in `each'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/initializable.rb:49:in
`run_initializers'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:134:in `initialize!'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:77:in `method_missing'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/config/environment.rb:
5:in `<top (required)>'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:103:in `require'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:103:in
`require_environment!'
2011-04-11T11:13:00-07:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/
gems/railties-3.0.6/lib/rails/application.rb:217:in `block in
initialize_tasks'
2011-04-11T11:13:00-07:00 app[worker.1]: /usr/ruby1.9.2/lib/ruby/1.9.1/
rake.rb:634:in `call'
2011-04-11T11:13:00-07:00 app[worker.1]: /usr/ruby1.9.2/lib/ruby/1.9.1/
rake.rb:629:in `each'
2011-04-11T11:13:00-07:00 app[worker.1]: /usr/ruby1.9.2/lib/ruby/1.9.1/
rake.rb:629:in `execute'

#####

I have tried removing gems, I have tried changing my DelayedJob gem
with a different version, and I'm really not getting anywhere. Any
suggestions are very welcome.

(PS, I am running Rails 3.0.6 and Ruby 1.9.2. I tried different Rails
versions in the 3.0.* range and even downgraded to a different Heroku
stack with 1.8.7 Ruby with no success)

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to