【问题标题】:how to install Redmine_RE plugin on Redmine.3.1.0如何在 Redmine.3.1.0 上安装 Redmine_RE 插件
【发布时间】:2015-08-18 06:33:06
【问题描述】:

我已经在 windows 上安装了 Redmine 3.1.0。我想在这个版本的 Redmine 上安装 Redmine_RE 插件。但是当我将 Redmine_re zip 复制到 redmine 的 plugins 文件夹中并重新启动 redmine 服务器时,它退出并出现以下错误

C:\Sites\redmine-3.1.0>bundle exec rails server webrick -e production
DL is deprecated, please use Fiddle
DL is deprecated, please use Fiddle
=> Booting WEBrick
=> Rails 4.2.3 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activerecord-4.2.3/lib/acti
ve_record/scoping/named.rb:143:in `scope': The scope body needs to be callable.
(ArgumentError)
        from C:/Sites/redmine-3.1.0/plugins/redmine_re/app/models/re_artifact_pr
operties.rb:6:in `<class:ReArtifactProperties>'
        from C:/Sites/redmine-3.1.0/plugins/redmine_re/app/models/re_artifact_pr
operties.rb:1:in `<top (required)>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:360:in `require_or_load'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:317:in `depend_on'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:233:in `require_dependency'
        from C:/Sites/redmine-3.1.0/plugins/redmine_re/init.rb:6:in `<top (requi
red)>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/Sites/redmine-3.1.0/lib/redmine/plugin.rb:155:in `block in load'

        from C:/Sites/redmine-3.1.0/lib/redmine/plugin.rb:146:in `each'
        from C:/Sites/redmine-3.1.0/lib/redmine/plugin.rb:146:in `load'
        from C:/Sites/redmine-3.1.0/config/initializers/30-redmine.rb:21:in `<to
p (required)>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:268:in `load'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:268:in `load'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/engine.rb:652:in `block in load_config_initializer'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/notifications.rb:166:in `instrument'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/engine.rb:651:in `load_config_initializer'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/engine.rb:615:in `each'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/engine.rb:615:in `block in <class:Engine>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:30:in `instance_exec'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:30:in `run'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:55:in `block in run_initializers'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block i
n tsort_each'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (
2 levels) in each_strongly_connected_component'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:210:in `block (
2 levels) in each_strongly_connected_component_from'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_st
rongly_connected_component_from'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:209:in `block i
n each_strongly_connected_component_from'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:44:in `each'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:44:in `tsort_each_child'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:203:in `each_st
rongly_connected_component_from'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block i
n each_strongly_connected_component'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_st
rongly_connected_component'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_e
ach'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/initializable.rb:54:in `run_initializers'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/application.rb:352:in `initialize!'
        from C:/Sites/redmine-3.1.0/config/environment.rb:14:in `<top (required)
>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-
4.2.3/lib/active_support/dependencies.rb:274:in `require'
        from C:/Sites/redmine-3.1.0/config.ru:3:in `block in <main>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/builder.rb:55:in `instance_eval'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/builder.rb:55:in `initialize'
        from C:/Sites/redmine-3.1.0/config.ru:in `new'
        from C:/Sites/redmine-3.1.0/config.ru:in `<main>'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/builder.rb:49:in `eval'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/builder.rb:49:in `new_from_string'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/builder.rb:40:in `parse_file'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/server.rb:299:in `build_app_and_options_from_config'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/server.rb:208:in `app'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/server.rb:61:in `app'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/server.rb:336:in `wrapped_app'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib
/rack/server.rb:272:in `start'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/server.rb:80:in `start'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/commands_tasks.rb:80:in `block in server'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/commands_tasks.rb:75:in `tap'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/commands_tasks.rb:75:in `server'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-4.2.3
/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

请建议如何解决这个问题。

【问题讨论】:

    标签: plugins redmine


    【解决方案1】:

    您应该删除已安装的插件,切换到插件的github页面上的分支towards_redmine_3_compatibility,然后将其下载为zip。

    不要忘记将提取的文件夹重命名为redmine_re

    (对不起,我没有足够的声誉来评论你的问题)

    【讨论】:

    • 您好,感谢您的帮助。Remine 服务器已启动并正在运行。但是在尝试使用 Redmine_re 保存需求时,我在 redmine 的生产日志中收到以下错误。 ('NameError(未定义的局部变量或方法connection' for #&lt;ReArtifactRelationship:0x8045268&gt;): lib/plugins/acts_as_list/lib/active_record/acts/list.rb:220:in bottom_item' lib/plugins/acts_as_list/lib/active_record/acts/list.rb:214:in `bottom_position_in_list' lib/plugins/acts_as_list/lib/active_record/acts/list. rb:205:in 你能帮我解决这个问题吗@ste26054
    猜你喜欢
    • 1970-01-01
    • 2013-06-07
    • 2011-06-24
    • 2012-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-15
    • 2011-04-25
    相关资源
    最近更新 更多