读书人

problem- redmine_ldap_sync error:quot;I

发布时间: 2012-12-16 12:02:32 作者: rapoo

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 172.16.17.200 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

? Parameters: {"back_url"=>"http%3A%2F%2F172.16.16.245%3A8080%2Fredmine%2F", "controller"=>"account", "username"=>"ping.chen", "password"=>"[FILTERED]", "authenticity_token"=>"KyQwdWrZ6mqfdYlF3QktD8UGeWry//vnvpV0wVd1/js=", "login"=>"登录 ?", "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?????????

problem- redmine_ldap_sync error:

设置好,之后运行:

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 属性设置估计有问题导致组无法同步,等待解决

?

读书人网 >Ruby Rails

热点推荐