Vote #71694
未完了trac import issue
0%
説明
Hi,
I always get this error during import wiki pages from trac project:
@
Trac directory []: /other/trac/myproject
Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: sqlite3
Trac database encoding [UTF-8]:
Target project identifier []: myproject
Migrating components.......
Migrating milestones..
Migrating custom fields....
Migrating tickets............................................
Migrating wiki..........................................................................rake aborted!
can't convert nil into an exact number
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/time/calculations.rb:286:in -'minus_with_duration'
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/time/calculations.rb:286:in
/usr/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/time/calculations.rb:295:in minus_with_coercion'fake'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:79:in
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:582:in block in migrate'block in method_missing'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:392:in
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in each'method_missing'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:392:in method_missing'migrate'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:580:in
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:765:in block (2 levels) in <top (required)>'call'
/usr/lib/ruby/1.9.1/rake/task.rb:205:in
/usr/lib/ruby/1.9.1/rake/task.rb:205:in block in execute'each'
/usr/lib/ruby/1.9.1/rake/task.rb:200:in
/usr/lib/ruby/1.9.1/rake/task.rb:200:in execute'block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake/task.rb:158:in
/usr/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize'invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake/task.rb:151:in
/usr/lib/ruby/1.9.1/rake/task.rb:144:in invoke'invoke_task'
/usr/lib/ruby/1.9.1/rake/application.rb:116:in
/usr/lib/ruby/1.9.1/rake/application.rb:94:in block (2 levels) in top_level'each'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in
/usr/lib/ruby/1.9.1/rake/application.rb:94:in block in top_level'standard_exception_handling'
/usr/lib/ruby/1.9.1/rake/application.rb:133:in
/usr/lib/ruby/1.9.1/rake/application.rb:88:in top_level'block in run'
/usr/lib/ruby/1.9.1/rake/application.rb:66:in
/usr/lib/ruby/1.9.1/rake/application.rb:133:in standard_exception_handling'run'
/usr/lib/ruby/1.9.1/rake/application.rb:63:in
/usr/bin/rake:32:in `
Tasks: TOP => redmine:migrate_from_trac
@
journals
I've just tried to import db from Trac into the new Redmine instance and got the same issue.
--------------------------------------------------------------------------------
> I've just tried to import db from Trac into the new Redmine instance and got the same issue.
Redmine 2.0.1
--------------------------------------------------------------------------------
Could anyone help with a workaround? Is there any way to migrate a project from Trac?
--------------------------------------------------------------------------------
This should be linked to to defect #6868 as this is exaclty the same issue. And the same patched helped to avoid the nil issue in the Wiki migration.
--------------------------------------------------------------------------------
#14567 is a more comprehensive fix
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Reopened,6868,migrate_from_trac and trac 0.12
relates,New,14567,migrate_from_trac.rake does not convert timestamps in Trac database version 23