`
chineping
  • 浏览: 11693 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

problem- redmine_ldap_sync error:"Internal error505"

 
阅读更多

log:

ldap 用户认证登录log:

web log----   Internal error  505

$ tail -f apps/redmine/htdocs/log/production.log

Processing SettingsController#plugin (for 1x.x6.xx.x0 at 2012-11-23 11:49:29) [GET]  Parameters: {"controller"=>"settings", "action"=>"plugin", "id"=>"redmine_ldap_sync"}

Rendering template within layouts/admin

Rendering settings/plugin

ActionView::TemplateError (undefined method `fetch' for "":String) on line #13 of vendor/plugins/redmine_ldap_sync/app/views/settings/_ldap_sync_settings.html.erb:

10: "

11: %>

12: <% AuthSourceLdap.all.each_with_index do |ldap, i| -%>

13: <fieldset class="collapsible <%= 'collapsed' unless ldap.ldapsync_active? %>">

14:   <legend onclick="toggleFieldset(this);"><%= ldap.name %></legend>

15:   <div <%= 'style="display:none"' unless ldap.ldapsync_active? %>>

16:

 

    vendor/plugins/redmine_ldap_sync/app/views/settings/_ldap_sync_settings.html.erb:13

    vendor/plugins/redmine_ldap_sync/app/views/settings/_ldap_sync_settings.html.erb:12:in `each'

    vendor/plugins/redmine_ldap_sync/app/views/settings/_ldap_sync_settings.html.erb:12:in `each_with_index'

    vendor/plugins/redmine_ldap_sync/app/views/settings/_ldap_sync_settings.html.erb:12

    app/views/settings/plugin.html.erb:6

    app/views/settings/plugin.html.erb:4

 

redmine_ldap sync log:

 

Processing AccountController#login (for xx.x.x.xx8 at 2012-11-23 12:09:38) [POST]

  Parameters: {"back_url"=>"http%3A%2F%2Fxx.x.x.x5%3A8080%2Fredmine%2F", "controller"=>"account", "username"=>"x.x", "password"=>"[FILTERED]", "authenticity_token"=>"xx »", "action"=>"login"}
NoMethodError (undefined method `fetch' for "":String):
  app/models/user.rb:156:in `try_to_login_without_redmine_ldap_sync'
  app/controllers/account_controller.rb:143:in `password_authentication'
  app/controllers/account_controller.rb:138:in `authenticate_user'
  app/controllers/account_controller.rb:30:in `login'
  passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
 
 
Synchronizing AuthSource rdm67...
rake aborted!
wrong number of arguments (1 for 2)
/home/scm/redmine/apps/redmine/htdocs/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:54:in `get_user_dn'
/home/scm/redmine/apps/redmine/htdocs/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:54:in `sync_users'
/home/scm/redmine/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.14/lib/active_record/base.rb:726:in `create'
/home/scm/redmine/apps/redmine/htdocs/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:52:in `sync_users'
/home/scm/redmine/apps/redmine/htdocs/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:49:in `each'
/home/scm/redmine/apps/redmine/htdocs/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:49:in `sync_users'
 

======================logs  end=============================

sovle:

reference --->   install http://www.redmine.org/wiki/redmine/Plugins

                         参考  2.1. For Redmine 1.x,运行命令后, 

                                    rake db:migrate_plugins RAILS_ENV=production

   在admin--->plugins ,设置如下图,但图中属性设置:1、2、3 不熟悉怎么设置,属性设置无法有大写,填写大写字母后,应用自动别成全小写,why?????????

设置好,之后运行:

rake redmine:plugins:redmine_ldap_sync:sync_users RAILS_ENV=production --trace

 

原因:1、plugin版本不对,git clone 下载的master,对应redmine版本2.X,运行的redmine是1.4.x 需git checkout  -b redmine-1.4.x  origin/redmine-1.4.x

======================not  end=============================
后续问题: 用户导入 ok   ldap 组导入不成功。redmine_ldap_sync 属性设置估计有问题导致组无法同步,等待解决

 

  • 大小: 14.3 KB
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics