Project

General

Profile

RedMine 500 Internal Error

Added by Max Sheva over 13 years ago

When i trying access to Issues getting the error 500 internal Server error
Rails 3.0.1
Webrick

Processing IssuesController#show (for 77.120.120.57 at 2010-11-03 22:22:16) [GET]
  Parameters: {"action"=>"show", "id"=>"33", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
DEPRECATION WARNING: using %d in messages is deprecated; use {{count}} instead.. (called from interpolate at /usr/home/admin/data/www/project.krasniy001.com/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:17)
DEPRECATION WARNING: using %d in messages is deprecated; use {{count}} instead.. (called from interpolate at /usr/home/admin/data/www/project.krasniy001.com/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:17)
DEPRECATION WARNING: using %d in messages is deprecated; use {{count}} instead.. (called from interpolate at /usr/home/admin/data/www/project.krasniy001.com/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:17)

ActionView::TemplateError (undefined method `cache_formatted_text?' for #<Class:0x2adb3f38>) on line #55 of app/views/issues/show.rhtml:
52:                               
53: <p><strong><%=l(:field_description)%></strong></p>
54: <div class="wiki">
55: <%= textilizable @issue, :description, :attachments => @issue.attachments %>
56: </div>
57: 
58: <%= link_to_attachments @issue %>

    lib/redmine/wiki_formatting.rb:47:in `to_html'
    app/helpers/application_helper.rb:470:in `textilizable'
    app/views/issues/show.rhtml:55:in `_run_rhtml_app47views47issues47show46rhtml'
    app/controllers/issues_controller.rb:110
    app/controllers/issues_controller.rb:109:in `show'
    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering /usr/home/admin/data/www/project.xxx.com/public/500.html (500 Internal Server Error)

Replies (9)

RE: RedMine 500 Internal Error - Added by Felix Schäfer over 13 years ago

Redmine is rails 2.3.5 only.

RE: RedMine 500 Internal Error - Added by Max Sheva over 13 years ago

I uninstalled version 3.0.1, leaving 2.3.5 but the error still remains

RE: RedMine 500 Internal Error - Added by Felix Schäfer over 13 years ago

Have you restarted webrick? Do your other gems have the correct versions? Was it an upgrade or a new installation? Do you have plugins installed?

RE: RedMine 500 Internal Error - Added by Max Sheva over 13 years ago

Restart webrick, gem-v 1.3.7, upgrade from 0.9.6 to 1.0.2. No plugin installed

RE: RedMine 500 Internal Error - Added by Felix Schäfer over 13 years ago

I meant all gems, not rubygems itself :-) Anyway, just googled for your error and came up with http://www.redmine.org/boards/2/topics/12952, do you see something similar?

RE: RedMine 500 Internal Error - Added by Max Sheva over 13 years ago

cache_formatted_text its no my error, today i upgrade to redmine 1.0.3 this line present in setting
but the error persists, and appears when I try to watch issues in the latest project, in the old projects, issues do not cause errors

Processing IssuesController#index (for 77.120.xxx.xx at 2010-11-04 23:12:12) [GET]
  Parameters: {"project_id"=>"radio", "action"=>"index", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/index.rhtml
DEPRECATION WARNING: using %d in messages is deprecated; use {{count}} instead.. (called from interpolate at /usr/home/admin/data/www/project.krasniy001.com/vendor/rails/activerecord/lib/active_record/i18n_interpolation_deprecation.rb:17)

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
    app/views/issues/_list.rhtml:1:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query'
    app/views/issues/index.rhtml:63:in `_run_rhtml_app47views47issues47index46rhtml'
    app/controllers/issues_controller.rb:84
    app/controllers/issues_controller.rb:83:in `index'
    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'

RE: RedMine 500 Internal Error - Added by Felix Schäfer over 13 years ago

Did all migrations run correctly during the upgrade? If yes, have a look at your DB and see if any records in issues have empty lft, rgt or root_id fields.

RE: RedMine 500 Internal Error - Added by Max Sheva over 13 years ago

Yes, these fields have empty values

RE: RedMine 500 Internal Error - Added by Felix Schäfer over 13 years ago

Then there has been some corruption in your DB. Set lft to 1, rgt to 2 and root_id to the same value as id for records that don't have values in there.

    (1-9/9)