Defect #10738

trac import issue

Added by zio zec about 7 years ago. Updated over 5 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Importers
Target version:-
Resolution: Affected version:1.4.0

Description

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 `-'
/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:295:in `minus_with_coercion'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:79:in `fake'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:582:in `block in migrate'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:392:in `block in method_missing'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `each'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
/usr/lib/ruby/gems/1.9.1/gems/activerecord-2.3.14/lib/active_record/associations/association_collection.rb:392:in `method_missing'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:580:in `migrate'
/other/apache/htdocs/redmine-1.4.0/lib/tasks/migrate_from_trac.rake:765:in `block (2 levels) in <top (required)>'
/usr/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/usr/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/usr/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/usr/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/usr/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/usr/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/usr/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/usr/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/usr/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/bin/rake:32:in `<main>'
Tasks: TOP => redmine:migrate_from_trac
@


Related issues

Related to Redmine - Defect #6868: migrate_from_trac and trac 0.12 Reopened 2010-11-11
Related to Redmine - Patch #14567: migrate_from_trac.rake does not convert timestamps in Tra... New

History

#1 Updated by Stanislav German-Evtushenko almost 7 years ago

I've just tried to import db from Trac into the new Redmine instance and got the same issue.

#2 Updated by Stanislav German-Evtushenko almost 7 years ago

I've just tried to import db from Trac into the new Redmine instance and got the same issue.

Redmine 2.0.1

#3 Updated by Stanislav German-Evtushenko almost 7 years ago

Could anyone help with a workaround? Is there any way to migrate a project from Trac?

#4 Updated by Roland Lammel over 6 years ago

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.

#5 Updated by Craig Rodrigues over 5 years ago

#14567 is a more comprehensive fix

#6 Updated by Toshi MARUYAMA over 5 years ago

  • Related to Patch #14567: migrate_from_trac.rake does not convert timestamps in Trac database version 23 added

Also available in: Atom PDF