Project

General

Profile

Wiki issues after upgrading from 0.7.3 to .0.8.4

Added by R. Duval over 14 years ago

Gentlemen,

After upgrading RedMine from 0.7.3 version to 0.8.4 we have faced some troubles regarding Wiki pages.

At the first moment no wiki page was working, all rendered as 500 error. Then we figured we had to run rake db:migrate, done that all existant wiki pages were fully functional, being viewed, edited and removed as usual. But we can't create any new wiki page, every try to create a page causes a 500 error and this is the current stack trace:

Processing WikiController#index (for 172.16.2.237 at 2009-08-28 12:31:14) [GET]
  Session ID: 4c43f66186fb1067ee44e52b6c3f9944
  Parameters: {"action"=>"index", "id"=>"erp-oracle", "page"=>"custom_patterns", "controller"=>"wiki"}

NoMethodError (undefined method `protected?' for #<WikiPage:0xb5a93b9c>):
    /vendor/rails/activerecord/lib/active_record/attribute_methods.rb:251:in `method_missing'
    /app/models/wiki_page.rb:112:in `editable_by?'
    /app/controllers/wiki_controller.rb:202:in `editable?'
    /app/controllers/wiki_controller.rb:63:in `edit'
    /app/controllers/wiki_controller.rb:35:in `index'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:112:in `handle_dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:78:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:37:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch'
    /vendor/rails/railties/lib/commands/servers/webrick.rb:66
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:510:in `require'
    /vendor/rails/railties/lib/commands/server.rb:39
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
    /script/server:3

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

The wiki_pages table looks fine:

mysql> describe wiki_pages;
+------------+--------------+------+-----+---------+----------------+
| Field      | Type         | Null | Key | Default | Extra          |
+------------+--------------+------+-----+---------+----------------+
| id         | int(11)      | NO   | PRI | NULL    | auto_increment |
| wiki_id    | int(11)      | NO   | MUL | NULL    |                |
| title      | varchar(255) | NO   |     | NULL    |                |
| created_on | datetime     | NO   |     | NULL    |                |
| protected  | tinyint(1)   | NO   |     | 0       |                |
| parent_id  | int(11)      | YES  |     | NULL    |                |
+------------+--------------+------+-----+---------+----------------+
6 rows in set (0.01 sec)

Did we miss anything while upgrading?


Replies (2)

RE: Wiki issues after upgrading from 0.7.3 to .0.8.4 - Added by Eric Davis over 14 years ago

Your database looks correct. Did you restart your Redmine web servers after running the migration? (e.g. mongrel, thin, fcgi, passenger)

Eric Davis

RE: Wiki issues after upgrading from 0.7.3 to .0.8.4 - Added by R. Duval over 14 years ago

Shame on me,

Sorry, I thought we had restarted after upgrading but we didn't. After restarting the server every page is working fine.

Thanks Eric Davis.

    (1-2/2)