为 redmine v1.1.3 安装可追溯性插件(rake 中止!堆栈级别太深错误)

发布于 2024-11-05 18:50:37 字数 4951 浏览 5 评论 0原文

我安装了 redmine v1.1.3 并使用 sqlite。它工作正常,但我无法完成可追溯性插件安装。

我已经下载了traceability并将其放入C:\redmine-1.1.3\vendor\plugins

set RAILS_ENV=production

rake db:migrate 命令失败

C:\redmine-1.1.3>rake db:migrate --trace
(in C:/redmine-1.1.3)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
stack level too deep
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in `new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in `initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:in `new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:in `map'
C:/redmine-1.1.3/lib/redmine.rb:148
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
C:/redmine-1.1.3/config/initializers/30-redmine.rb:3
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load_without_new_constant_marking'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:621:in `each'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:176:in `process'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'

C:/redmine-1.1.3/config/environment.rb:31
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
C:/redmine-1.1.3/vendor/rails/railties/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load'
C:/Ruby187/bin/rake:19

我使用的是 Windows XP,

C:\redmine-1.1.3>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\redmine-1.1.3>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
i18n (0.4.2)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3 (1.3.3 x86-mingw32)

在带有 MySQL 的 Ubuntu 和带有 MySQL 的 Windows XP 上都会出现此错误。在 Ubuntu 上,由于“堆栈级别太深”错误,我将堆栈大小更改为无限制,但没有任何变化。

I installed redmine v1.1.3 and am using sqlite. It works fine but i am unable to complete traceability plugin installation.

I have downloaded traceability and placed it into C:\redmine-1.1.3\vendor\plugins.

set RAILS_ENV=production

rake db:migrate command fails

C:\redmine-1.1.3>rake db:migrate --trace
(in C:/redmine-1.1.3)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
stack level too deep
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `old_initilize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:28:in `initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in `new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:314:in `initialize'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:in `new'
C:/redmine-1.1.3/lib/redmine/menu_manager.rb:299:in `map'
C:/redmine-1.1.3/lib/redmine.rb:148
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
C:/redmine-1.1.3/config/initializers/30-redmine.rb:3
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load_without_new_constant_marking'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in `load'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:622:in `load_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:621:in `each'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:176:in `process'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
C:/redmine-1.1.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'

C:/redmine-1.1.3/config/environment.rb:31
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
C:/redmine-1.1.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
C:/redmine-1.1.3/vendor/rails/railties/lib/tasks/misc.rake:4
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby187/bin/rake:19:in `load'
C:/Ruby187/bin/rake:19

I am using Windows XP and

C:\redmine-1.1.3>ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]

C:\redmine-1.1.3>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
i18n (0.4.2)
mysql (2.8.1 x86-mingw32)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3 (1.3.3 x86-mingw32)

I get this error on both Ubuntu with MySQL and Windows XP with MySQL. On Ubuntu I changed the stack size to unlimited for "stack level too deep" error but nothing changes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等往事风中吹 2024-11-12 18:50:37

我没有遵循插件安装,而是尝试了下面的代码并且它有效。

RAILS_ENV=production rake db:migrate

Instead of following the plug-in installation I tried below code and it works.

RAILS_ENV=production rake db:migrate
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文