Migrate from Mantis problem

Added by ken hayber over 9 years ago

Trying to migrate from mantis 1.0.5, I get the following error.
Any ideas? I verified that I could log in from taz to thor using the given credentials and see all the data.

khayber@taz ~/redmine-0.7.0 $ rake redmine:migrate_from_mantis RAILS_ENV="production" --trace
(in /home/khayber/redmine-0.7.0)
  • Invoke redmine:migrate_from_mantis (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute redmine:migrate_from_mantis

WARNING: Your Redmine data will be deleted during this process.
Are you sure you want to continue ? [y/N] y

Please enter settings for your Mantis database
adapter [mysql]:
host [localhost]: thor
database [bugtracker]: mantis
username [root]: mantis
password []: mantis
encoding [UTF-8]:

rake aborted!
Validation failed: Login activerecord_error_taken
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/validations.rb:946:in `save_without_transactions!'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:112:in `save!'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:80:in `transaction'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:100:in `transaction'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:112:in `save!'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:120:in `rollback_active_record_state!'
/home/khayber/redmine-0.7.0/vendor/rails/activerecord/lib/active_record/transactions.rb:112:in `save!'
/home/khayber/redmine-0.7.0/lib/tasks/migrate_from_mantis.rake:255:in `migrate'
/home/khayber/redmine-0.7.0/lib/tasks/migrate_from_mantis.rake:246:in `each'
/home/khayber/redmine-0.7.0/lib/tasks/migrate_from_mantis.rake:246:in `migrate'
/home/khayber/redmine-0.7.0/lib/tasks/migrate_from_mantis.rake:503
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/bin/rake:16:in `load'
/usr/bin/rake:16

Replies (2)

RE: Migrate from Mantis problem - Added by ken hayber over 9 years ago

FYI - I finally found that this exception occurred when trying to migrate the 'admin' account. I changed the code a bit to get past this, but still don't know the reason.

RE: Migrate from Mantis problem - Added by ken hayber over 9 years ago

Duh! It conflicts with redmine 'admin' account. Typical mantis has 'Administrator' I think.

(1-2/2)