Error 500 when requesting issues

Added by Arne De Herdt about 12 years ago

Hello,

I just moved my entire redmine environment to another server and to preserve the data i copied the database over.
Everything works except the issues, when I press the issues tab i get the following:

login as: root
root@192.168.0.37's password:
Access denied
root@192.168.0.37's password:
Last login: Mon Jun 28 16:22:43 2010
[root@localhost ~]# vim /etc/httpd/logs/error_log
[root@localhost ~]# vim /etc/httpd/logs/access_log
[root@localhost ~]# vim /opt/redmine/log/production.log

Processing WelcomeController#index (for 192.168.0.18 at 2010-06-28 16:56:18) [GET]
  Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index
Completed in 48ms (View: 40, DB: 2) | 200 OK [http://192.168.0.37/]

Processing ProjectsController#index (for 192.168.0.18 at 2010-06-28 16:56:20) [GET]
  Parameters: {"action"=>"index", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/index
Completed in 90ms (View: 82, DB: 4) | 200 OK [http://192.168.0.37/projects]

Processing ProjectsController#show (for 192.168.0.18 at 2010-06-28 16:56:21) [GET]
  Parameters: {"action"=>"show", "id"=>"externalbugs", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 85ms (View: 50, DB: 10) | 200 OK [http://192.168.0.37/projects/externalbugs]

Processing IssuesController#index (for 192.168.0.18 at 2010-06-28 16:56:22) [GET]
  Parameters: {"project_id"=>"externalbugs", "action"=>"index", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/index.rhtml

ActionView::TemplateError (undefined method `-' for nil:NilClass) on line #16 of app/views/issues/_list.rhtml:
13:     </tr></thead>
14:     <% previous_group = false %>
15:     <tbody>
16:     <% issue_list(issues) do |issue, level| -%>
17:   <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
18:     <% reset_cycle %>
19:     <tr class="group open">

    app/helpers/issues_helper.rb:28:in `issue_list'
    app/helpers/issues_helper.rb:23:in `each'
    app/helpers/issues_helper.rb:23:in `issue_list'
    app/views/issues/_list.rhtml:16:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query'
    app/views/issues/_list.rhtml:1:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query'
    app/views/issues/index.rhtml:62:in `_run_rhtml_app47views47issues47index46rhtml'
    app/controllers/issues_controller.rb:83:in `index'
    app/controllers/issues_controller.rb:82:in `index'
    passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
    passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in `safe_fork'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rails_application'
    passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:247:in `spawn_rails_application'
                                                                                                                                           1966,0-1      98%

Could this be because I've removed a plugin?

Replies (3)

RE: Error 500 when requesting issues - Added by Arne De Herdt about 12 years ago

reinstalling the missing plugin did not solve the issue :( something else seems to be missing...

RE: Error 500 when requesting issues - Added by Felix Schäfer about 12 years ago

Have you upgraded redmine in the process? Make sure you have followed all steps of the upgrade guide. If that still doesn't solve it: what ruby, rails, ... versions?

RE: Error 500 when requesting issues - Added by Arne De Herdt about 12 years ago

I hardly dare to say it but I indeed forgot to run the db:migrate command to reflect the new changes.....

(1-3/3)