Actions
Defect #19173
openTrac Migrate Script with Redmine 3.0
Status:
New
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
I have a basic Redmine 3.0 installation, using the redmine migrate_from_trac script
mysql Ver 15.1 Distrib 5.5.41-MariaDB, for Linux (x86_64) using readline 5.1 ruby 2.0.0p353 (2013-11-22) [x86_64-linux] Rails 4.2.0
CentOS 7 install, using EPEL's ruby version.
[root@ticket redmine]# ./bin/about sh: svn: command not found sh: darcs: command not found sh: hg: command not found sh: cvs: command not found sh: bzr: command not found Environment: Redmine version 3.0.0.stable Ruby version 2.0.0-p353 (2013-11-22) [x86_64-linux] Rails version 4.2.0 Environment production Database adapter Mysql2 SCM: Git 1.8.3.1 Filesystem Redmine plugins: redmine_agile 1.3.7
[root@ticket redmine]# rake redmine:migrate_from_trac RAILS_ENV="production" rake aborted! NoMethodError: undefined method `set_inheritance_column' for TracMigrate::TracAttachment(Table doesn't exist):Class /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing' /var/www/redmine/lib/tasks/migrate_from_trac.rake:121:in `<class:TracAttachment>' /var/www/redmine/lib/tasks/migrate_from_trac.rake:119:in `<module:TracMigrate>' /var/www/redmine/lib/tasks/migrate_from_trac.rake:25:in `block (2 levels) in <top (required)>' Tasks: TOP => redmine:migrate_from_trac (See full trace by running task with --trace) [root@ticket redmine]#
And again with --trace:
[root@ticket redmine]# rake redmine:migrate_from_trac RAILS_ENV="production" --trace ** Invoke redmine:migrate_from_trac (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:migrate_from_trac rake aborted! NoMethodError: undefined method `set_inheritance_column' for TracMigrate::TracAttachment(Table doesn't exist):Class /usr/local/share/gems/gems/activerecord-4.2.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing' /var/www/redmine/lib/tasks/migrate_from_trac.rake:121:in `<class:TracAttachment>' /var/www/redmine/lib/tasks/migrate_from_trac.rake:119:in `<module:TracMigrate>' /var/www/redmine/lib/tasks/migrate_from_trac.rake:25:in `block (2 levels) in <top (required)>' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `call' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain' /usr/share/ruby/monitor.rb:211:in `mon_synchronize' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `each' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:in `run' /usr/local/share/gems/gems/rake-10.4.2/bin/rake:33:in `<top (required)>' /usr/local/bin/rake:23:in `load' /usr/local/bin/rake:23:in `<main>' Tasks: TOP => redmine:migrate_from_trac
Related issues
Actions