Hi All,
Need help to troubleshoot the issue.
After configuring the ldap setting in gitlab.rb file when I issue command
sudo gitlab-rake gitlab:ldap:check RAILS_ENV=production
I get the following error:
rake aborted!
NoMethodError: undefined method []' for nil:NilClass /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:108:in
block in <top (required)>’
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:107:in each' /opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:107:in
<top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:241:in load' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:241:in
block in load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:232:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:241:in
load’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/engine.rb:648:in block in load_config_initializer' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/notifications.rb:161:in
instrument’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/engine.rb:647:in load_config_initializer' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/engine.rb:612:in
block (2 levels) in class:Engine’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/engine.rb:611:in each' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/engine.rb:611:in
block in class:Engine’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:30:in instance_exec' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:30:in
run’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:55:in block in run_initializers' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:44:in
each’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:44:in tsort_each_child' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/initializable.rb:54:in
run_initializers’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/application.rb:300:in initialize!' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/railtie.rb:194:in
public_send’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/railtie.rb:194:in method_missing' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in
<top (required)>’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:247:in require' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:247:in
block in require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:232:in load_dependency' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.12/lib/active_support/dependencies.rb:247:in
require’
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/application.rb:276:in require_environment!' /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.12/lib/rails/application.rb:405:in
block in run_tasks_blocks’
Tasks: TOP => gitlab:ldap:check => environment
(See full trace by running task with --trace)
Thanks
Neeraj