Actions
Defect #14843
closedError in migrate_from_trac
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Duplicate
Affected version:
Description
Trace:
root@redmine www/redmine# rake redmine:migrate_from_trac --trace RAILS_ENV="production" ** Invoke redmine:migrate_from_trac (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute redmine:migrate_from_trac WARNING: a new project will be added to Redmine during this process. Are you sure you want to continue ? [y/N] y Trac directory []: /root/hacs Trac database adapter (sqlite3, mysql2, postgresql) [sqlite3]: Trac database encoding [UTF-8]: Target project identifier []: migrated Migrating components..... Migrating milestones..... Migrating custom fields Migrating tickets....................................................................................................... ........................................... Migrating wiki.......................................................................................................... ...................rake aborted! no implicit conversion to float from nil /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/core_ext/time/calculations.rb:326:in `minus_wi thout_duration' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/core_ext/time/calculations.rb:326:in `minus_wi thout_coercion' /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.2.12/lib/active_support/core_ext/time/calculations.rb:337:in `-' /var/www/redmine/lib/tasks/migrate_from_trac.rake:79:in `fake' /var/www/redmine/lib/tasks/migrate_from_trac.rake:586:in `migrate' /usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/associations/collection_proxy.rb:89:in `each' /usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/associations/collection_proxy.rb:89:in `send' /usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.12/lib/active_record/associations/collection_proxy.rb:89:in `method_m issing' /var/www/redmine/lib/tasks/migrate_from_trac.rake:584:in `migrate' /var/www/redmine/lib/tasks/migrate_from_trac.rake:769 /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:184:in `invoke_with_call_chain' /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:73:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' /usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/bin/rake:33 /usr/local/bin/rake:19:in `load' /usr/local/bin/rake:19 Tasks: TOP => redmine:migrate_from_trac
Related issues
Updated by Marc Schlaich over 11 years ago
Possible fix could be.
if page.content.updated_on.nil? page.content.save else Time.fake(page.content.updated_on) { page.content.save } end
I'm no ruby developer but it worked for me ;-)
Updated by Marc Schlaich over 11 years ago
Ah, duplicate: #6868 (why is this not resolved after > 3 years, though?!)
Updated by Toshi MARUYAMA over 11 years ago
- Related to Defect #6868: migrate_from_trac and trac 0.12 added
Updated by Toshi MARUYAMA over 11 years ago
- Related to Defect #14844: migrate_from_trac is not run in database transaction added
Updated by Toshi MARUYAMA about 10 years ago
- Related to deleted (Defect #6868: migrate_from_trac and trac 0.12)
Updated by Toshi MARUYAMA about 10 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Updated by Toshi MARUYAMA about 10 years ago
- Is duplicate of Defect #6868: migrate_from_trac and trac 0.12 added
Actions