milgner / redmine_airbrake_server

A Redmine plugin which enables it to receive application error notifications Airbrake-style
28 stars 10 forks source link

Problem with server - exceptions won't save #11

Open lchojnowski opened 12 years ago

lchojnowski commented 12 years ago

Everything is configured properly, but when i hit rake airbrake:test i get the following error:

2011-12-17T07:28:10+00:00 heroku[router]: POST projects.xxx.com/notifier_api/v2/notices/ dyno=web.1 queue=0 wait=0ms service=64ms status=500 bytes=674
2011-12-17T07:28:10+00:00 app[web.1]: 
2011-12-17T07:28:10+00:00 app[web.1]: NoMethodError (undefined method `custom_fields' for nil:NilClass):
2011-12-17T07:28:10+00:00 app[web.1]:   vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:117:in `check_custom_field_assignments'
2011-12-17T07:28:10+00:00 app[web.1]:   vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:115:in `each'
2011-12-17T07:28:10+00:00 app[web.1]:   vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:115:in `check_custom_field_assignments'

T07:28:10+00:00 app[web.1]:   vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:85:in `read_settings'
2011-12-17T07:28:10+00:00 app[web.1]:   vendor/plugins/redmine_airbrake_server/app/controllers/airbrake_controller.rb:21:in `index'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `send'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:in `call_filters'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actio

2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
2011-12-17T07:28:10+00:00 app[web.1]:   .bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   /home/heroku_rack/lib/date_header.rb:14:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/connection.rb:76:in `pre_process'
2011-12-17T07:28:10+00:00 app[web.1]:   /home/heroku_rack/lib/last_access.rb:15:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/connection.rb:74:in `pre_process'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/connection.rb:57:in `process'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/connection.rb:42:in `receive_data'
2011-12-17T07:28:10+00:00 app[web.1]:   eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
2011-12-17T07:28:10+00:00 app[web.1]:   /home/heroku_rack/lib/static_assets.rb:9:in `call'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/backends/base.rb:57:in `start'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/connection.rb:74:in `catch'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/controllers/controller.rb:80:in `start'
2011-12-17T07:28:10+00:00 app[web.1]:   eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/runner.rb:177:in `send'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/runner.rb:177:in `run_command'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/runner.rb:143:in `run!'
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) bin/thin:6
2011-12-17T07:28:10+00:00 app[web.1]:   /usr/ruby1.8.7/bin/thin:19:in `load'
2011-12-17T07:28:10+00:00 app[web.1]: 
2011-12-17T07:28:10+00:00 app[web.1]: 
2011-12-17T07:28:10+00:00 app[web.1]:   thin (1.2.6) lib/thin/server.rb:156:in `start'
2011-12-17T07:28:10+00:00 app[web.1]: Rendering /app/public/500.html (500 Internal Server Error)
2011-12-17T07:28:10+00:00 app[web.1]:   /usr/ruby1.8.7/bin/thin:19
2011-12-17T07:28:10+00:00 heroku[nginx]: 79.189.24.58 - - [16/Dec/2011:23:28:10 -0800] "POST /notifier_api/v2/notices/ HTTP/1.1" 500 674 "-" "Ruby" projects.unitedideas.pl
milgner commented 12 years ago

Thanks for reporting. I'll look into it, but it may take a few days - pre-christmas hustle, you know? :)

lchojnowski commented 12 years ago

Thanks!

lchojnowski commented 12 years ago

BTW: It also causes error under creating / modifying project:

2011-12-18T07:59:07+00:00 app[web.1]: Processing ProjectsController#settings (for 77.255.254.58 at 2011-12-17 23:59:07) [GET]
2011-12-18T07:59:07+00:00 app[web.1]:   Parameters: {"action"=>"settings", "id"=>"boomway-wp", "controller"=>"projects"}
2011-12-18T07:59:07+00:00 app[web.1]: Rendering template within layouts/base
2011-12-18T07:59:07+00:00 app[web.1]: Rendering projects/settings
2011-12-18T07:59:08+00:00 app[web.1]: ActionView::TemplateError (No route matches {:action=>"update", :controller=>"airbrake_server_project_settings"}) on line #4 of vendor/plugins/redmine_airbrake_server/app/views/airbrake_server_project_settings/_show.html.erb:
2011-12-18T07:59:08+00:00 app[web.1]: 
2011-12-18T07:59:08+00:00 app[web.1]: 1: <%
2011-12-18T07:59:08+00:00 app[web.1]: 2:   @settings = AirbrakeServerProjectSettings.find_or_create(@project)
2011-12-18T07:59:08+00:00 app[web.1]: 3: %>
2011-12-18T07:59:08+00:00 app[web.1]: 4: <% form_for :settings, :url => { :controller => 'airbrake_server_project_settings', :action => 'update' } do |f| -%>
2011-12-18T07:59:08+00:00 app[web.1]: 5: <%= hidden_field_tag 'project_id', @project.id %>
2011-12-18T07:59:08+00:00 app[web.1]: 
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:420:in `generate'
2011-12-18T07:59:08+00:00 app[web.1]: 6: <table>
2011-12-18T07:59:08+00:00 app[web.1]: 7:    <tr>
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:218:in `rewrite_path'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:197:in `rewrite_url'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:175:in `rewrite'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:625:in `url_for'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/url_helper.rb:85:in `send'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/url_helper.rb:85:in `url_for'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:37:in `form_tag'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:443:in `html_options_for_form'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:443:in `tap'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_tag_helper.rb:445:in `html_options_for_form'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/form_helper.rb:281:in `form_for'
2011-12-18T07:59:08+00:00 app[web.1]:     .bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:34:in `render'
lchojnowski commented 12 years ago

So i have to disable it temoprarly.

lchojnowski commented 12 years ago

Hello! Any updates?