Migration problem
Added by Ulrik Guenther over 13 years ago
Hi there,
I'm currently trying to upgrade an older Redmine installtion (0.8.4) to the current release, 1.2.0. I'm now running into problems with the db migration:
# rake db:migrate RAILS_ENV=production --trace (in /public/common/redmine) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate == BuildProjectsTree: migrating ============================================== rake aborted! An error has occurred, this and all later migrations canceled: Validation failed: translation missing: en, field_repository is invalid /public/common/redmine/vendor/rails/activerecord/lib/active_record/validations.rb:1102:in `save_without_dirty!' /public/common/redmine/vendor/rails/activerecord/lib/active_record/dirty.rb:87:in `save_without_transactions!' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' /public/common/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in `rollback_active_record_state!' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in `save!' /public/common/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:186:in `rebuild!' /public/common/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:193:in `call' /public/common/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:193:in `rebuild!' /public/common/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:190:in `each' /public/common/redmine/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb:190:in `rebuild!' ./db/migrate//105_build_projects_tree.rb:3:in `up_without_benchmarks' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `send' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `migrate' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `migrate' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:365:in `__send__' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:365:in `migrate' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:491:in `migrate' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:565:in `call' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:565:in `ddl_transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:565:in `ddl_transaction' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:490:in `migrate' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:477:in `each' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:477:in `migrate' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:401:in `up' /public/common/redmine/vendor/rails/activerecord/lib/active_record/migration.rb:383:in `migrate' /public/common/redmine/vendor/rails/railties/lib/tasks/databases.rake:112 /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/local/bin/rake:19:in `load' /usr/local/bin/rake:19
I'm using PostgreSQL 8.4.3 as database server, the installed gems are:
# gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.5, 2.3.11, 2.3.3) actionpack (2.3.11, 2.3.8) activerecord (2.3.11, 2.3.8) activeresource (2.3.11, 2.3.3) activesupport (3.0.5, 2.3.11, 2.3.4) arel (2.0.9) builder (2.1.2) bundler (1.0.15) cgi_multipart_eof_fix (2.5.0) daemons (1.1.4, 1.1.0) erubis (2.6.6) eventmachine (0.12.10) fastthread (1.0.7) ffi (1.0.0, 0.6.3) gem_plugin (0.2.3) i18n (0.6.0, 0.4.2) mail (2.2.17) mime-types (1.16) mongrel (1.1.5) mongrel_cluster (1.0.5) paperclip (2.3.3) pg (0.11.0) polyglot (0.3.1) rack (1.1.2) rack-mount (0.6.14) rack-test (0.5.7) rails (2.3.11) rake (0.8.7) rmagick (2.13.1) rubygems-update (1.3.7) sources (0.0.2) thin (1.2.11) thor (0.14.6) treetop (1.4.9) tzinfo (0.3.25)
Ruby version is
# ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [amd64-freebsd8]
Does anyone have suggestions?
Thanks in advance,
ulrik