redmine:migrate_from_trac -stack level太深错误

时间:2013-09-02 06:02:12

标签: ruby-on-rails-3 redmine trac

成功安装redmine后,尝试将数据从trac迁移到redmine。我收到以下错误....任何解决此问题的工作

 user@user:~/redmine-2.3$ rake redmine:migrate_from_trac RAILS_ENV="production"

    WARNING: a new project will be added to Redmine during this process.
    Are you sure you want to continue ? [y/N] y

    Trac directory []: /home/user/implementation Trac database adapter (sqlite3, mysql2, postgresql) [sqlite3]: 
    Trac database encoding [UTF-8]: 
    Target project identifier []: implementation

    Migrating components.......................................................................................................................................................................................
    Migrating milestones.......................................
    Migrating custom fields...
    Migrating tickets..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
    Migrating wiki.....

    Components:      178/183
    Milestones:      39/39
    Tickets:         2082/2082
    Ticket files:    0/421
    Custom values:   2812/2812
    Wiki edits:      5/5
    Wiki files:      0/0
    rake aborted!
    stack level too deep

    Tasks: TOP => redmine:migrate_from_trac
    (See full trace by running task with --trace)

1 个答案:

答案 0 :(得分:0)

这是典型的堆栈溢出错误,意味着在无限循环中递归调用函数。这是由该脚本中的错误引起的,可能是因为您的数据以某种方式损坏而脚本无法忍受。

尝试使用--verbose标志调用脚本,或检查日志文件以获取错误消息。尝试通过减少数据输入(例如没有票证)运行脚本testwise来查找数据中的错误。