Louis commented on issue #2535 at GitLab.org / charts / GitLab Chart

Louis
2021-01-26T14:39:58Z

Actually this allow user to sign in without getting a 500 but this doesn't seem to squash it completely.

We still see the error below when looking at a user identity tab in the admin space for a user that used to be linked to AD.

Settingslogic::MissingSetting (Missing setting 'servers' in 'ldap'...

Sanitized GKE logs

{
"insertId": "147ne8g2898i1b",
"jsonPayload": {
"format": "html",
"status": 500,
"redis_read_bytes": 183,
"db_count": 5,
"view_duration_s": 0,
"username": "xxxxxxxxxx",
"cpu_s": 0.04,
"method": "GET",
"redis_shared_state_duration_s": 0.000675,
"exception.backtrace": [
"lib/gitlab/auth/ldap/config.rb:31:in `servers'",
"lib/gitlab/auth/ldap/config.rb:45:in `providers'",
"lib/gitlab/auth/ldap/config.rb:58:in `valid_provider?'",
"lib/gitlab/auth/o_auth/provider.rb:62:in `config_for'",
"lib/gitlab/auth/o_auth/provider.rb:77:in `label_for'",
"app/views/admin/identities/_identity.html.haml:3",
"app/views/admin/identities/index.html.haml:15",
"app/controllers/application_controller.rb:125:in `render'",
"ee/lib/gitlab/ip_address_state.rb:10:in `with'",
"ee/app/controllers/ee/application_controller.rb:44:in `set_current_ip_address'",
"app/controllers/application_controller.rb:482:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:473:in `set_session_storage'",
"lib/gitlab/i18n.rb:73:in `with_locale'",
"lib/gitlab/i18n.rb:79:in `with_user_locale'",
"app/controllers/application_controller.rb:467:in `set_locale'",
"lib/gitlab/error_tracking.rb:52:in `with_context'",
"app/controllers/application_controller.rb:532:in `sentry_context'",
"app/controllers/application_controller.rb:460:in `block in set_current_context'",
"lib/gitlab/application_context.rb:56:in `block in use'",
"lib/gitlab/application_context.rb:56:in `use'",
"lib/gitlab/application_context.rb:22:in `with_context'",
"app/controllers/application_controller.rb:451:in `set_current_context'",
"lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'",
"lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'",
"lib/gitlab/metrics/transaction.rb:56:in `run'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `call'",
"lib/gitlab/request_profiler/middleware.rb:17:in `call'",
"lib/gitlab/jira/middleware.rb:19:in `call'",
"lib/gitlab/middleware/go.rb:20:in `call'",
"lib/gitlab/etag_caching/middleware.rb:21:in `call'",
"lib/gitlab/middleware/multipart.rb:172:in `call'",
"lib/gitlab/middleware/read_only/controller.rb:50:in `call'",
"lib/gitlab/middleware/read_only.rb:18:in `call'",
"lib/gitlab/middleware/same_site_cookies.rb:27:in `call'",
"lib/gitlab/middleware/handle_malformed_strings.rb:21:in `call'",
"lib/gitlab/middleware/basic_health_check.rb:25:in `call'",
"lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'",
"lib/gitlab/middleware/request_context.rb:23:in `call'",
"config/initializers/fix_local_cache_middleware.rb:9:in `call'",
"lib/gitlab/metrics/requests_rack_middleware.rb:76:in `call'",
"lib/gitlab/middleware/release_env.rb:12:in `call'"
],
"duration_s": 0.0329,
"meta.feature_category": "authentication_and_authorization",
"controller": "Admin::IdentitiesController",
"remote_ip": "10.131.225.177",
"meta.user": "xxxxxxxxx",
"meta.remote_ip": "10.131.225.177",
"exception.message": "Missing setting 'servers' in 'ldap' section in /srv/gitlab/config/gitlab.yml",
"redis_shared_state_read_bytes": 183,
"user_id": 2,
"db_cached_count": 0,
"correlation_id": "01EWZH3R6YZMM8H3AM5BYT1TV7",
"redis_calls": 1,
"redis_write_bytes": 872,
"redis_shared_state_calls": 1,
"queue_duration_s": 0.003385,
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
"action": "index",
"params": [
{
"value": "xxxx.xxxx",
"key": "user_id"
}
],
"exception.class": "ActionView::Template::Error",
"db_write_count": 0,
"db_duration_s": 0.00411,
"meta.caller_id": "Admin::IdentitiesController#index",
"redis_duration_s": 0.000675,
"path": "/admin/users/xxxx.xxxx/identities",
"redis_shared_state_write_bytes": 872
}
"timestamp": "2021-01-26T14:21:12.329Z",
"severity": "INFO",
"labels": {
"k8s-pod/gitlab_com/webservice-name": "default",
"k8s-pod/app": "webservice",
"compute.googleapis.com/resource_name": "gke-xxxxxxxxxx-8beb8c74-b71l",
"k8s-pod/pod-template-hash": "6c689d5cc6",
"k8s-pod/release": "gitlab"
},
"logName": "projects/xxxxxxxxxx/logs/stdout",
"receiveTimestamp": "2021-01-26T14:21:16.015269905Z"
}