Could not authenticate you from Ldapmain because "Undefined method `downcase` for false:falseclass"
Summary
Upgraded gitlab this morning to GitLab Enterprise Edition 10.4.0-ee 00592f0
Users who are already authenticated now sometimes get HTTP 500 responses.
Users who attempt to authenticate via LDAP (active directory) get an error message:
Could not authenticate you from Ldapmain because "Undefined method
downcase
for false:falseclass".
Steps to reproduce
- Configure gitlab.rb as per https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#setting-up-ldap-sign-in using an Active Directory LDAP server
- Authenticate as user
Example Project
N/A
What is the current bug behavior?
Authentication fails
What is the expected correct behavior?
Authentication succeeds
Relevant logs and/or screenshots
Completed 500 Internal Server Error in 1328ms (ActiveRecord: 9.2ms | Elasticsearch: 0.0ms)
NoMethodError (undefined method `downcase' for false:FalseClass):
lib/gitlab/ldap/person.rb:128:in `map'
lib/gitlab/ldap/person.rb:128:in `validate_entry'
lib/gitlab/ldap/person.rb:71:in `initialize'
lib/gitlab/ldap/adapter.rb:39:in `new'
lib/gitlab/ldap/adapter.rb:39:in `block in users'
lib/gitlab/ldap/adapter.rb:38:in `map'
lib/gitlab/ldap/adapter.rb:38:in `users'
lib/gitlab/ldap/adapter.rb:44:in `user'
lib/gitlab/ldap/person.rb:23:in `find_by_dn'
lib/gitlab/ldap/access.rb:72:in `find_ldap_user'
lib/gitlab/ldap/access.rb:81:in `ldap_user'
lib/gitlab/ldap/access.rb:40:in `allowed?'
lib/gitlab/ldap/access.rb:21:in `block in allowed?'
lib/gitlab/ldap/access.rb:13:in `block in open'
lib/gitlab/ldap/adapter.rb:14:in `block in open'
lib/gitlab/ldap/adapter.rb:13:in `open'
lib/gitlab/ldap/access.rb:12:in `open'
lib/gitlab/ldap/access.rb:18:in `allowed?'
app/controllers/application_controller.rb:220:in `ldap_security_check'
lib/gitlab/middleware/multipart.rb:93:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/jira/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:18:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only.rb:31:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
Started POST "/api/v4/internal/allowed" for 127.0.0.1 at 2018-01-23 00:33:44 +0000
NoMethodError (undefined method `downcase' for false:FalseClass):
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:128:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:128:in `validate_entry'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:71:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:39:in `new'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:39:in `block in users'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:38:in `map'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:38:in `users'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:44:in `user'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:23:in `find_by_dn'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:72:in `find_ldap_user'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:81:in `ldap_user'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:40:in `allowed?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:21:in `block in allowed?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:13:in `block in open'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:14:in `block in open'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/net-ldap-0.16.0/lib/net/ldap.rb:644:in `block in open'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/net-ldap-0.16.0/lib/net/ldap.rb:716:in `block in open'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/net-ldap-0.16.0/lib/net/ldap/instrumentation.rb:19:in `instrument'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/net-ldap-0.16.0/lib/net/ldap.rb:711:in `open'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/net-ldap-0.16.0/lib/net/ldap.rb:644:in `open'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:13:in `open'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:12:in `open'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/access.rb:18:in `allowed?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/user_access.rb:31:in `allowed?'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git_access.rb:97:in `check_active_user!'
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/ee/gitlab/git_access.rb:47:in `check_active_user!'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/git_access.rb:45:in `check'
/opt/gitlab/embedded/service/gitlab-rails/ee/lib/ee/gitlab/git_access.rb:11:in `check'
/opt/gitlab/embedded/service/gitlab-rails/lib/api/internal.rb:49:in `block (2 levels) in <class:Internal>'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:57:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:57:in `block (2 levels) in generate_api_method'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:56:in `block in generate_api_method'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:262:in `block in run'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/notifications.rb:166:in `instrument'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:243:in `run'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:313:in `block in build_stack'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:31:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:31:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape_logging-1.7.0/lib/grape_logging/middleware/request_logger.rb:60:in `block in call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape_logging-1.7.0/lib/grape_logging/middleware/request_logger.rb:58:in `catch'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape_logging-1.7.0/lib/grape_logging/middleware/request_logger.rb:58:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-oauth2-1.2.3/lib/rack/oauth2/server/resource.rb:20:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-oauth2-1.2.3/lib/rack/oauth2/server/resource/bearer.rb:8:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:34:in `block in call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:33:in `catch'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/error.rb:33:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/middleware/base.rb:24:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/head.rb:13:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:227:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/endpoint.rb:221:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router/route.rb:72:in `exec'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:119:in `process_route'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:74:in `block in identity'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:93:in `transaction'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:72:in `identity'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:57:in `block in call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:135:in `with_optimization'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/router.rb:56:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/api.rb:119:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/api.rb:45:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/grape-1.0.0/lib/grape/api.rb:40:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/routing/mapper.rb:51:in `serve'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:30:in `each'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/journey/router.rb:30:in `serve'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/routing/route_set.rb:817:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/peek-performance_bar-1.3.0/lib/peek/views/performance_bar/process_utilization.rb:120:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:186:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:164:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:186:in `call!'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:164:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/multipart.rb:93:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/request_profiler/middleware.rb:14:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/jira/middleware.rb:15:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/go.rb:18:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/flipper-0.11.0/lib/flipper/middleware/memoizer.rb:64:in `memoized_call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/flipper-0.11.0/lib/flipper/middleware/memoizer.rb:42:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/etag_caching/middleware.rb:11:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/batch-loader-1.2.1/lib/batch_loader/middleware.rb:11:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-attack-4.4.1/lib/rack/attack.rb:107:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-cors-1.0.2/lib/rack/cors.rb:97:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/etag.rb:24:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/conditionalget.rb:38:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/head.rb:13:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/middleware/read_only.rb:31:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/flash.rb:260:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/session/abstract/id.rb:225:in `context'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/session/abstract/id.rb:220:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.10/lib/active_record/query_cache.rb:36:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:38:in `call_app'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:20:in `block in call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:26:in `tagged'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activesupport-4.2.10/lib/active_support/tagged_logging.rb:68:in `tagged'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/rack/logger.rb:20:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/request_context.rb:18:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/actionpack-4.2.10/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/methodoverride.rb:22:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/runtime.rb:18:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/lock.rb:17:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/sendfile.rb:113:in `call'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/sentry-raven-2.5.3/lib/raven/integrations/rack.rb:50:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/engine.rb:518:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/application.rb:165:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `public_send'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.10/lib/rails/railtie.rb:194:in `method_missing'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:66:in `block in call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:50:in `each'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/urlmap.rb:50:in `call'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:562:in `process_client'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer.rb:52:in `process_client'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:658:in `worker_loop'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:519:in `maintain_worker_count'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:283:in `join'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/unicorn-5.1.0/bin/unicorn:126:in `<top (required)>'
/opt/gitlab/embedded/bin/unicorn:23:in `load'
/opt/gitlab/embedded/bin/unicorn:23:in `<top (required)>'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Output of checks
N/A
Results of GitLab environment info
Expand for output related to GitLab environment info
root@gitlab:/# gitlab-rake gitlab:env:info
System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknown
GitLab information Version: 10.4.0-ee Revision: 00592f0 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.5 URL: https://gitlab HTTP Clone URL: https://gitlab/some-group/some-project.git SSH Clone URL: ssh://git@gitlab:10022/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers: github
GitLab Shell Version: 5.11.0 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
root@gitlab:/# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 5.11.0 ? ... OK (5.11.0) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 16/8 ... ok 18/9 ... ok 8/10 ... ok 8/16 ... ok 8/18 ... ok 8/20 ... ok 8/21 ... ok 8/22 ... ok 8/23 ... ok 8/24 ... ok 8/25 ... ok 165/26 ... ok 8/27 ... ok 8/28 ... ok 8/29 ... ok 8/30 ... ok 8/31 ... ok 165/33 ... ok 165/34 ... ok 165/35 ... ok 165/36 ... ok 8/37 ... ok 8/38 ... ok 8/40 ... ok 8/41 ... ok 8/42 ... ok 165/43 ... ok 8/44 ... ok 8/45 ... ok 8/46 ... ok 8/47 ... ok 8/48 ... ok 8/49 ... ok 8/50 ... ok 8/51 ... ok 8/52 ... ok 8/53 ... ok 8/54 ... ok 8/55 ... ok 8/56 ... ok 8/57 ... ok 8/58 ... ok 8/59 ... ok 8/60 ... ok 8/61 ... ok 7/62 ... ok 8/63 ... ok 8/95 ... ok 44/97 ... ok 44/98 ... ok 44/99 ... ok 44/100 ... ok 44/101 ... ok 44/102 ... ok 44/103 ... ok 44/104 ... ok 44/105 ... ok 44/106 ... ok 44/107 ... ok 44/109 ... ok 8/112 ... ok 8/113 ... ok 8/114 ... ok 8/118 ... ok 16/119 ... ok 9/120 ... repository is empty 16/121 ... ok 50/122 ... ok 44/123 ... ok 6/125 ... ok 8/126 ... ok 8/130 ... ok 72/131 ... ok 165/132 ... ok 72/133 ... ok 8/134 ... ok 8/137 ... repository is empty 84/152 ... ok 83/154 ... ok 83/155 ... ok 83/156 ... ok 83/157 ... ok 83/158 ... ok 83/159 ... ok 94/160 ... ok 83/161 ... ok 84/162 ... ok 165/165 ... ok 28/171 ... ok 16/173 ... ok 72/176 ... ok 28/178 ... ok 72/179 ... ok 72/180 ... ok 72/181 ... ok 72/183 ... ok 72/184 ... ok 72/185 ... ok 84/187 ... ok 92/188 ... ok 92/189 ... ok 92/190 ... ok 72/191 ... ok 94/192 ... ok 94/193 ... ok 94/194 ... ok 92/195 ... ok 95/201 ... ok 95/202 ... ok 95/203 ... ok 95/204 ... ok 95/205 ... ok 95/206 ... ok 95/207 ... ok 95/208 ... ok 95/209 ... ok 95/210 ... ok 95/212 ... ok 94/213 ... ok 8/214 ... ok 16/215 ... ok 92/216 ... ok 94/217 ... ok 50/218 ... ok 94/219 ... ok 94/220 ... ok 31/221 ... ok 72/222 ... ok 50/224 ... ok 72/225 ... ok 8/226 ... ok 72/227 ... ok 78/228 ... ok 94/229 ... ok 72/230 ... ok 72/231 ... ok 102/232 ... ok 92/234 ... ok 10/236 ... ok 72/237 ... ok 94/239 ... ok 72/240 ... ok 92/241 ... ok 16/242 ... ok 72/243 ... ok 84/244 ... ok 106/245 ... ok 72/246 ... ok 44/247 ... ok 94/248 ... ok 94/249 ... ok 8/250 ... ok 44/251 ... ok 72/252 ... ok 72/254 ... ok 92/255 ... ok 92/256 ... repository is empty 72/257 ... ok 26/258 ... ok 111/259 ... ok 104/260 ... repository is empty 72/261 ... ok 92/262 ... ok 19/263 ... ok 8/265 ... ok 72/266 ... ok 120/268 ... ok 120/269 ... ok 120/271 ... ok 120/272 ... ok 120/273 ... ok 120/274 ... ok 120/275 ... ok 120/276 ... ok 120/277 ... ok 94/278 ... ok 26/279 ... ok 8/281 ... ok 72/282 ... ok 97/283 ... ok 94/284 ... ok 83/285 ... ok 120/287 ... ok 92/288 ... ok 83/289 ... ok 83/290 ... ok 119/291 ... ok 83/292 ... ok 94/293 ... ok 83/295 ... ok 83/296 ... ok 84/297 ... ok 130/298 ... ok 130/299 ... ok 94/300 ... ok 72/301 ... ok 72/302 ... ok 106/303 ... ok 92/304 ... ok 94/305 ... ok 120/306 ... ok 132/307 ... ok 72/308 ... ok 130/309 ... ok 83/310 ... ok 106/311 ... repository is empty 92/312 ... ok 139/361 ... ok 139/362 ... ok 139/363 ... ok 139/364 ... ok 139/365 ... ok 139/366 ... ok 139/367 ... ok 139/368 ... ok 139/369 ... ok 139/370 ... ok 139/372 ... ok 139/373 ... ok 139/374 ... ok 139/375 ... ok 139/376 ... ok 139/377 ... ok 139/378 ... ok 139/379 ... ok 139/380 ... ok 139/381 ... ok 139/382 ... ok 139/383 ... ok 139/384 ... ok 139/385 ... ok 139/386 ... ok 139/387 ... ok 139/388 ... ok 139/389 ... ok 139/390 ... ok 139/391 ... ok 139/392 ... ok 139/393 ... ok 139/394 ... ok 139/395 ... ok 139/396 ... ok 139/397 ... ok 139/398 ... ok 139/399 ... ok 139/400 ... ok 139/401 ... ok 139/402 ... ok 139/403 ... ok 139/404 ... ok 139/405 ... ok 139/406 ... ok 139/407 ... ok 132/408 ... ok 132/409 ... ok 138/410 ... repository is empty 148/411 ... ok 148/412 ... ok 139/413 ... ok 50/415 ... ok 104/416 ... ok 120/418 ... ok 106/419 ... ok 120/420 ... ok 139/421 ... ok 94/422 ... ok 139/423 ... ok 120/424 ... ok 119/427 ... ok 139/428 ... ok 139/430 ... ok 135/431 ... ok 92/432 ... ok 148/433 ... ok 139/434 ... ok 92/435 ... ok 148/436 ... ok 92/437 ... ok 148/438 ... ok 148/439 ... ok 92/440 ... ok 148/441 ... repository is empty 148/442 ... ok 75/443 ... ok 92/444 ... ok 92/445 ... ok 92/446 ... ok 92/447 ... ok 92/448 ... ok 83/449 ... ok 148/450 ... ok 92/451 ... ok 148/452 ... ok 148/453 ... ok 148/454 ... ok 148/455 ... ok 148/456 ... ok 148/457 ... ok 165/461 ... ok 165/462 ... ok 165/463 ... ok 165/464 ... ok 165/465 ... ok 165/466 ... ok 165/467 ... ok 165/468 ... ok 165/469 ... ok 165/470 ... ok 165/471 ... ok 165/472 ... ok 165/473 ... ok 165/474 ... ok 92/475 ... ok 165/476 ... ok 165/477 ... ok 165/478 ... ok 165/479 ... ok 165/480 ... ok 165/481 ... ok 52/482 ... ok 165/483 ... ok 165/484 ... ok 165/485 ... ok 165/486 ... ok 165/487 ... ok 165/488 ... ok 165/489 ... ok 165/490 ... ok 165/491 ... ok 165/492 ... ok 165/493 ... ok 165/494 ... ok 165/495 ... ok 165/496 ... ok 165/497 ... ok 92/498 ... ok 165/499 ... ok 165/500 ... ok 165/501 ... ok 165/502 ... ok 164/503 ... ok 166/504 ... ok 166/505 ... ok 165/506 ... ok 165/507 ... ok 165/508 ... ok 165/509 ... ok 165/510 ... ok 165/511 ... ok 165/512 ... ok 165/513 ... ok 165/514 ... ok 165/515 ... ok 165/516 ... ok 165/517 ... ok 164/518 ... ok 92/519 ... ok 106/520 ... ok 47/521 ... ok 72/523 ... ok 148/524 ... ok 148/525 ... ok 72/527 ... ok 8/528 ... ok 8/529 ... ok 8/530 ... ok 8/531 ... ok 8/532 ... ok 8/533 ... ok 83/534 ... ok 148/535 ... ok 8/536 ... ok 92/537 ... ok 92/538 ... ok 92/539 ... ok 92/540 ... ok 92/542 ... ok 72/543 ... ok 92/544 ... ok 139/545 ... ok 119/546 ... repository is empty 139/547 ... ok 148/548 ... ok 139/549 ... ok 92/550 ... ok 164/553 ... ok 94/554 ... ok 148/555 ... ok 106/556 ... ok 72/557 ... ok 120/558 ... ok 92/559 ... ok 92/560 ... ok 92/561 ... ok 83/562 ... ok 83/563 ... repository is empty 92/564 ... ok 192/566 ... ok 191/567 ... ok 192/568 ... ok 191/569 ... ok 83/570 ... ok 191/571 ... ok 191/572 ... ok 191/573 ... ok 191/574 ... ok 191/575 ... ok 191/576 ... ok 192/577 ... ok 192/578 ... ok 145/579 ... ok 192/580 ... ok 83/581 ... ok 120/582 ... ok 171/583 ... ok 104/584 ... ok 148/585 ... repository is empty 148/586 ... ok 175/587 ... ok 83/588 ... ok 72/590 ... ok 133/591 ... ok 83/592 ... ok 92/593 ... ok 104/594 ... repository is empty 120/595 ... ok 72/596 ... ok 83/597 ... ok 54/598 ... ok 83/599 ... ok 83/600 ... ok 83/601 ... ok 83/602 ... ok 83/603 ... ok 104/604 ... ok 75/605 ... ok 72/606 ... ok 104/607 ... ok 83/608 ... ok 83/609 ... ok 173/610 ... ok 8/611 ... ok 75/612 ... ok 120/613 ... ok 23/614 ... ok 94/615 ... ok 83/616 ... ok 72/617 ... ok 72/618 ... ok 106/619 ... repository is empty 83/620 ... ok 32/622 ... ok 106/623 ... ok 83/624 ... ok 50/625 ... ok 148/626 ... ok 177/627 ... ok 120/629 ... ok 145/630 ... ok 139/631 ... ok 199/632 ... ok 106/633 ... ok 106/634 ... ok 106/635 ... ok 83/636 ... ok 83/637 ... ok 120/638 ... ok 83/639 ... ok 206/640 ... ok 83/642 ... ok 203/643 ... repository is empty 173/645 ... ok 171/646 ... ok 201/647 ... ok 203/648 ... ok 72/649 ... ok 83/650 ... ok 83/651 ... ok 32/652 ... ok 206/653 ... ok 206/654 ... ok 46/655 ... ok 92/656 ... ok 75/657 ... ok 32/658 ... ok 148/659 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) rake aborted! NoMethodError: undefined method
downcase' for false:FalseClass /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:128:in
map' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:128:invalidate_entry' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/person.rb:71:in
initialize' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:39:innew' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:39:in
block in users' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:38:inmap' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:38:in
users' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:364:inblock (2 levels) in check_ldap' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:14:in
block in open' /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ldap/adapter.rb:13:inopen' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:359:in
block in check_ldap' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:355:ineach' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:355:in
check_ldap' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/check.rake:344:inblock (3 levels) in <top (required)>' /opt/gitlab/embedded/bin/bundle:23:in
load' /opt/gitlab/embedded/bin/bundle:23:in `' Tasks: TOP => gitlab:check => gitlab:ldap:check (See full trace by running task with --trace)
Possible fixes
Seems to be caused by https://github.com/gitlabhq/gitlabhq/commit/7d1fdcdc836921d2f2324265752107519f47a6de#diff-ca424a499156c25714e95cbc0415d8d5R120