Project

General

Profile

Actions

Defect #4931

closed

Migrating from trac is not possible, fails to allocate memory

Added by el cuco about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
Start date:
2010-02-25
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When trying to import a trac repository, the process will fail due to memory allocation errors (tested on Debian, with 512mb ram and a few GB of swap).

Migrating components............................
Migrating milestones.................
Migrating custom fields..
Migrating tickets............................(TRIMMED DOTS)...................................rake aborted!
failed to allocate memory

(See full trace by running task with --trace)

Eventually, this worked when I commented a few lines in the migration script:

turing:~/redmine-0.8# svn diff
Index: lib/tasks/migrate_from_trac.rake
===================================================================
--- lib/tasks/migrate_from_trac.rake    (revision 2903)
+++ lib/tasks/migrate_from_trac.rake    (working copy)
@@ -309,12 +309,12 @@
         text = text.gsub(/\[(\d+)\]/, 'r\1')
         # Ticket number re-writing
         text = text.gsub(/#(\d+)/) do |s|
-          if $1.length < 10
-            TICKET_MAP[$1.to_i] ||= $1
-            "\##{TICKET_MAP[$1.to_i] || $1}" 
-          else
-            s
-          end
+#           if $1.length < 10
+#             TICKET_MAP[$1.to_i] ||= $1
+#             "\##{TICKET_MAP[$1.to_i] || $1}" 
+#           else
+#             s
+#           end
         end
         # We would like to convert the Code highlighting too
         # This will go into the next line.

However, this is "not optimal" and I would like to have a better solution. See: http://www.redmine.org/boards/2/topics/8923

Actions

Also available in: Atom PDF