Upgrading from 0.8.4 to trunk, migration error
Added by Mathias Baumann over 15 years ago
Hello there,
I just tried to update from 0.8.4 to trunk (revision 2819).
I got an error at the database migration..
- sqlite 3
- ruby 1.8.7
- rails 2.2.2
From the redmine root i did:
root:/srv/redmine-svn rake db:migrate_plugins RAILS_ENV="production" --trace (in /srv/redmine-svn) ** Invoke db:migrate_plugins (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! undefined method `default_error_messages=' for ActiveRecord::Errors:Class /srv/redmine-svn/config/initializers/10-patches.rb:2 /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load_without_new_constant_marking' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:550:in `load_application_initializers' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `each' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `load_application_initializers' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:167:in `process' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run' /srv/redmine-svn/config/environment.rb:21 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/misc.rake:3 /usr/lib/ruby/site_ruby/1.8/rake.rb:636:in `call' /usr/lib/ruby/site_ruby/1.8/rake.rb:636:in `execute' /usr/lib/ruby/site_ruby/1.8/rake.rb:631:in `each' /usr/lib/ruby/site_ruby/1.8/rake.rb:631:in `execute' /usr/lib/ruby/site_ruby/1.8/rake.rb:597:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/site_ruby/1.8/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/site_ruby/1.8/rake.rb:607:in `invoke_prerequisites' /usr/lib/ruby/site_ruby/1.8/rake.rb:604:in `each' /usr/lib/ruby/site_ruby/1.8/rake.rb:604:in `invoke_prerequisites' /usr/lib/ruby/site_ruby/1.8/rake.rb:596:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/site_ruby/1.8/rake.rb:590:in `invoke_with_call_chain' /usr/lib/ruby/site_ruby/1.8/rake.rb:583:in `invoke' /usr/lib/ruby/site_ruby/1.8/rake.rb:2047:in `invoke_task' /usr/lib/ruby/site_ruby/1.8/rake.rb:2025:in `top_level' /usr/lib/ruby/site_ruby/1.8/rake.rb:2025:in `each' /usr/lib/ruby/site_ruby/1.8/rake.rb:2025:in `top_level' /usr/lib/ruby/site_ruby/1.8/rake.rb:2064:in `standard_exception_handling' /usr/lib/ruby/site_ruby/1.8/rake.rb:2019:in `top_level' /usr/lib/ruby/site_ruby/1.8/rake.rb:1997:in `run' /usr/lib/ruby/site_ruby/1.8/rake.rb:2064:in `standard_exception_handling' /usr/lib/ruby/site_ruby/1.8/rake.rb:1994:in `run' /usr/bin/rake:32
Any help on this is appreciated.
Greetings,
--Marenz
Replies (2)
RE: Upgrading from 0.8.4 to trunk, migration error - Added by Mathias Baumann over 15 years ago
Here is the script/about output, i forgot to add it earlier.
The whole thing runs on arch linux, 32bit
root:/srv/redmine-svn $ RAILS_ENV="production" script/about /srv/redmine-svn/config/initializers/10-patches.rb:2: undefined method `default_error_messages=' for ActiveRecord::Errors:Class (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load_without_new_constant_marking' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:144:in `load' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:550:in `load_application_initializers' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `each' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:549:in `load_application_initializers' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:167:in `process' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run' from /srv/redmine-svn/config/environment.rb:21 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/about.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/about:4
RE: Upgrading from 0.8.4 to trunk, migration error - Added by Eric Davis over 15 years ago
Can you check that your config/environment.rb
file matches the one in the repository?
http://www.redmine.org/projects/redmine/repository/entry/trunk/config/environment.rb
Eric