relaxdiego/redmine_backlogs — Issue #405: Couldn't find IssueStatus with ID=0 (ActiveRecord::RecordNotFound)
Author: k2s
Created: 2012-01-30 09:54:29+00:00
State: open

ChiliProject version: ChiliProject 2.6.0.ec9352dff (MySQL)
Backlogs version: Backlogs version v0.8.0 (386fdf6df06f37040fe4c80ac87fb0c27ea94a46), Redmine version 2.6.0.ec9352dff (supported)

On top of issues I see always red error message: Backlogs error: Couldn't find IssueStatus with ID=0 (ActiveRecord::RecordNotFound)

Please how to fix or diagnose the problem ?

```
Processing IssuesController#show (for IP at 2012-01-30 09:32:09) [GET]
Parameters: {"id"=>"7", "action"=>"show", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
Couldn't find IssueStatus with ID=0 (ActiveRecord::RecordNotFound): /usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activerecord-2.3.14/lib/active_record/base.rb:1620:in `find_one'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activerecord-2.3.14/lib/active_record/base.rb:1603:in `find_from_ids'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activerecord-2.3.14/lib/active_record/base.rb:620:in `find'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/app/models/rb_story.rb:239:in `burndown'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/app/models/rb_story.rb:239:in `collect'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/app/models/rb_story.rb:239:in `burndown'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/cache.rb:162:in `fetch'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/rubies/ree-1.8.7-2011.12/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/cache.rb:162:in `fetch'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/app/models/rb_story.rb:233:in `burndown'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:29:in `initialize'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:28:in `each'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:28:in `initialize'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:27:in `each'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:27:in `initialize'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in `new'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in `scrum_statistics'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/cache.rb:162:in `fetch'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/rubies/ree-1.8.7-2011.12/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activesupport-2.3.14/lib/active_support/cache.rb:162:in `fetch'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_project_patch.rb:165:in `scrum_statistics'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `send'
/usr/local/rvm/gems/ree-1.8.7-2011.12@redmine/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_issue_patch.rb:99:in `velocity_based_estimate'
/opt/redmine/chiliproject/vendor/plugins/redmine_backlogs/lib/backlogs_hooks.rb:74:in `view_issues_show_details_bottom'
/opt/redmine/chiliproject/lib/redmine/hook.rb:60:in `send'
/opt/redmine/chiliproject/lib/redmine/hook.rb:60:in `call_hook'
/opt/redmine/chiliproject/lib/redmine/hook.rb:60:in `each'
/opt/redmine/chiliproject/lib/redmine/hook.rb:60:in `call_hook'
/opt/redmine/chiliproject/lib/redmine/hook.rb:57:in `tap'
/opt/redmine/chiliproject/lib/redmine/hook.rb:57:in `call_hook'
/opt/redmine/chiliproject/lib/redmine/hook.rb:141:in `call_hook'
/opt/redmine/chiliproject/app/views/issues/show.rhtml:45:in `_run_rhtml_app47views47issues47show46rhtml'
...
```