プロジェクト

全般

プロフィール

Vote #71694

未完了

trac import issue

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
0
issue_org_id:
10738
author_id:
54548
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
40
ステータス-->[New]

説明

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 `

'
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

Admin Redmine さんがほぼ4年前に更新

  • カテゴリImporters_15 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0