Instance with multiple LDAP servers hit 500 after activating cloud license
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
https:///users/sign_in return 500 error after activating cloud license. This happens when Multiple LDAP is configured. The problem doesn't come up for Legacy license
Steps to reproduce
- Have a GitLab instance and configured with 2 LDAP servers
- Activate cloud license
- Observe 500 errors when accessing https:///users/sign_in
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
...
"exception.class": "ActionView::Template::Error",
"exception.message": "undefined method `user_ldapsecondary_omniauth_callback_path' for #<ActionDispatch::Routing::RoutesProxy:0x00007fe8cc8724b0 @scope=#<SessionsController:0x0000000014dfc0>, @routes=#<ActionDispatch::Routing::RouteSet:0x00007fe9019c3b40>, @helpers=#<Module:0x00007fe9016a73f8>, @script_namer=nil>\nDid you mean? user_ldapmain_omniauth_callback_path",
"exception.backtrace": [
"app/views/devise/sessions/_new_ldap.html.haml:6",
"ee/app/helpers/ee/application_helper.rb:50:in `render_ce'",
"ee/app/views/devise/sessions/_new_ldap.html.haml:5",
"app/views/devise/shared/_signin_box.html.haml:10",
"app/views/devise/shared/_signin_box.html.haml:7:in `each'",
"app/views/devise/shared/_signin_box.html.haml:7:in `each_with_index'",
"app/views/devise/shared/_signin_box.html.haml:7",
"app/views/devise/sessions/new.html.haml:18",
"app/controllers/application_controller.rb:144:in `render'",
"app/controllers/sessions_controller.rb:62:in `new'",
"ee/app/controllers/ee/sessions_controller.rb:32:in `new'",
...
Output of checks
This happens on GitLab v16.2.2
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)
Workaround
Run gitlab-ctl restart after activating cloud license.
Edited by 🤖 GitLab Bot 🤖