rake db:migrate RAILS_ENV=production ERROR when trying to migrate from Redmine 0.8.7.stable.3339 (MySQL) to 2.2.3
Added by Daniel Salvat over 11 years ago
Dear all,
I am following the wiki page to upgrade my very old Redmine version to the current one: 2.2.3. (http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade)
This is the bundle list:
Gems included by the bundle: * actionmailer (3.2.12) * actionpack (3.2.12) * activemodel (3.2.12) * activerecord (3.2.12) * activeresource (3.2.12) * activesupport (3.2.12) * arel (3.0.2) * builder (3.0.0) * bundler (1.2.3) * coderay (1.0.9) * erubis (2.7.0) * hike (1.2.1) * i18n (0.6.4) * journey (1.0.4) * jquery-rails (2.0.3) * json (1.7.7) * mail (2.4.4) * mime-types (1.21) * multi_json (1.6.1) * mysql2 (0.3.11) * net-ldap (0.3.1) * pg (0.14.1) * polyglot (0.3.3) * rack (1.4.5) * rack-cache (1.2) * rack-openid (1.3.1) * rack-ssl (1.3.3) * rack-test (0.6.2) * rails (3.2.12) * railties (3.2.12) * rake (10.0.3) * rdoc (3.12.2) * rmagick (2.13.2) * ruby-openid (2.1.8) * sprockets (2.2.2) * sqlite3 (1.3.7) * thor (0.17.0) * tilt (1.3.4) * treetop (1.4.12) * tzinfo (0.3.36)
And this is my Gem list:
*** LOCAL GEMS *** actionmailer (3.2.12, 3.2.11, 2.1.2) actionpack (3.2.12, 3.2.11, 2.1.2) activemodel (3.2.12, 3.2.11) activerecord (3.2.12, 3.2.11, 2.1.2) activerecord-mysql-adapter (0.0.1) activeresource (3.2.12, 3.2.11, 2.1.2) activesupport (3.2.12, 3.2.11, 2.1.2) addressable (2.2.8) arel (3.0.2) bcrypt-ruby (3.0.1) bigdecimal (1.1.0) builder (3.0.4, 3.0.0) bundler (1.2.3) capybara (1.1.2) capybara-webkit (0.12.1) childprocess (0.3.3) chunky_png (1.2.6) coderay (1.0.9) compass (0.12.2) compass-rails (1.0.3) configuration (1.3.2) database_cleaner (0.7.1) devise (2.0.4) diff-lcs (1.1.3) ejs (1.1.1) erubis (2.7.0) execjs (1.4.0) factory_girl (2.6.4) factory_girl_rails (1.7.0) ffi (1.0.11) fssm (0.2.9) hike (1.2.1) hoe (3.5.0) i18n (0.6.4, 0.6.1) i18n-js (2.1.2) io-console (0.3) jasmine (1.1.0) jasmine-core (1.1.0) journey (1.0.4) jquery-rails (2.1.3, 2.0.3) json (1.7.7, 1.7.6, 1.5.4) libv8 (3.11.8.13 x86_64-linux) libwebsocket (0.1.4) mail (2.4.4) metaclass (0.0.1) mime-types (1.21, 1.19) minitest (2.5.1) mocha (0.12.3) multi_json (1.6.1, 1.5.0) mysql (2.9.1) mysql2 (0.3.11) net-ldap (0.3.1) nokogiri (1.5.2) orm_adapter (0.0.6) pg (0.14.1) polyglot (0.3.3) rack (1.4.5, 1.4.3) rack-cache (1.2) rack-openid (1.3.1) rack-ssl (1.3.3, 1.3.2) rack-test (0.6.2) rails (3.2.12, 3.2.11, 2.1.2) railties (3.2.12, 3.2.11) rake (10.0.3, 0.9.2.2) rdoc (3.12.2, 3.12, 3.9.4) ref (1.0.2) rmagick (2.13.2) rspec (2.9.0) rspec-core (2.9.0) rspec-expectations (2.9.0) rspec-mocks (2.9.0) rspec-rails (2.9.0) ruby-openid (2.1.8) rubygems-bundler (1.1.0) rubyzip (0.9.9) rvm (1.11.3.6) sass (3.2.3) sass-rails (3.2.5) selenium-webdriver (2.24.0) shoulda (2.11.3) sprockets (2.2.2) sqlite3 (1.3.7, 1.3.6) test-unit (2.5.4, 1.2.3) therubyracer (0.11.3) thor (0.17.0, 0.16.0) tilt (1.3.4, 1.3.3) transitions (0.0.9) treetop (1.4.12) tzinfo (0.3.36, 0.3.35) uglifier (1.3.0) warden (1.1.1) xpath (0.1.4) yard (0.8.5.2)
When I execute Step 4 - Update the database, I get this error:
web@mistest:~/redmine-2.2.3> rake db:migrate RAILS_ENV=production rake aborted! undefined method `write_inheritable_attribute' for ActionWebService::Base:Class /home/web/redmine-2.2.3/plugins/actionwebservice/lib/action_web_service/support/class_inheritable_options.rb:3:in `class_inheritable_option' /home/web/redmine-2.2.3/plugins/actionwebservice/lib/action_web_service/base.rb:36:in `<class:Base>' /home/web/redmine-2.2.3/plugins/actionwebservice/lib/action_web_service/base.rb:33:in `<module:ActionWebService>' /home/web/redmine-2.2.3/plugins/actionwebservice/lib/action_web_service/base.rb:1:in `<top (required)>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/redmine-2.2.3/plugins/actionwebservice/lib/action_web_service.rb:39:in `<top (required)>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/redmine-2.2.3/plugins/actionwebservice/init.rb:1:in `<top (required)>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require' /home/web/redmine-2.2.3/lib/redmine/plugin.rb:130:in `block in load' /home/web/redmine-2.2.3/lib/redmine/plugin.rb:121:in `each' /home/web/redmine-2.2.3/lib/redmine/plugin.rb:121:in `load' /home/web/redmine-2.2.3/config/initializers/30-redmine.rb:12:in `<top (required)>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `block in load' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/engine.rb:587:in `each' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/engine.rb:587:in `block in <class:Engine>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing' /home/web/redmine-2.2.3/config/environment.rb:14:in `<top (required)>' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/application.rb:103:in `require' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/application.rb:103:in `require_environment!' /home/web/.rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.12/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks' /home/web/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval' /home/web/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)
I am certainly missing something here. Could you please help me?
Thank you so much.
Cheers,
Daniel.
Replies (1)
RE: rake db:migrate RAILS_ENV=production ERROR when trying to migrate from Redmine 0.8.7.stable.3339 (MySQL) to 2.2.3 - Added by Daniel Salvat over 11 years ago
Seems like the actionwebservice plugin is not longer supported. I removed it from the plugins folder.