kamui / redmine-campfire_notifications

A plugin to display Redmine activity on Campfire
http://atelierconvivialite.com/post/202630568
5 stars 2 forks source link

Issues with crashes and 500 errors in newer versions of Redmine (v1.4, etc.) #1

Open ryanblock opened 12 years ago

ryanblock commented 12 years ago

Had many, many issues getting this working with newer versions of Redmine, first starting with tinder not being bundled correctly and crashing the app (required manually adding gem "tinder", "~> 1.0" to the Redmine Gemfile). Once past that, though, submitting new Redmine issues results in a 500 page with no notification sent to Campfire.

Processing IssuesController#new (for 10.x.x.x at 2012-04-14 22:48:59) [GET]
  Parameters: {"project_id"=>"project", "action"=>"new", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/new
Completed in 186ms (View: 172, DB: 1) | 200 OK [http://redmine/projects/project/issues/new]

Processing IssuesController#create (for 10.x.x.x at 2012-04-14 22:49:04) [POST]
  Parameters: {"project_id"=>"project", "action"=>"create", "authenticity_token"=>"XXXXX", "issue"=>{"start_date"=>"2012-04-14", "custom_field_values"=>{"5"=>"-"}, "estimated_hours"=>"", "parent_issue_id"=>"", "priority_id"=>"10", "is_private"=>"0", "done_ratio"=>"0", "assigned_to_id"=>"", "subject"=>"test", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>""}, "controller"=>"issues", "attachments"=>{"1"=>{"description"=>""}}, "watcher_multiple_group"=>"1,2,3"}
Sending email notification to: 

NoMethodError (undefined method `[]' for nil:NilClass):
  lib/redmine/hook.rb:63:in `send'
  lib/redmine/hook.rb:63:in `call_hook'
  lib/redmine/hook.rb:63:in `each'
  lib/redmine/hook.rb:63:in `call_hook'
  lib/redmine/hook.rb:60:in `tap'
  lib/redmine/hook.rb:60:in `call_hook'
  lib/redmine/hook.rb:141:in `call_hook'
  app/controllers/issues_controller.rb:149:in `create'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:479:in `safe_fork'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in `start'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
  /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99

Rendering /var/www/redmine/public/500.html (500 Internal Server Error)

Versions:

Rails 2.3.14
ianherbert commented 12 years ago

+1 on this also had a lot of issues with the same configuration. Would be interested to know if it's still being support as well.

carlosbrb commented 11 years ago

+1

kamui commented 11 years ago

I'll try and take a look, but I don't use redmine currently so it might be hard for me to debug.

kamui commented 11 years ago

Can anyone provide more exception logs? Ruby version, redmine version, etc.