OmniAuth - SAML - 500 - NoMethodError (undefined method `omniauth_authorize_path')
Summary
Unable to login - 500 error. This happens with OmniAuto enabled and disabled. Please see the following question for the gitlab.rb config. https://forum.gitlab.com/t/saml-configuration-404-on-metadata/7741
Relevant logs and/or screenshots
Started GET "/gitlab/users/sign_in" for 69.58.249.58 at 2017-05-04 13:57:43 -0500
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 165ms (ActiveRecord: 9.1ms)
NoMethodError (undefined method `omniauth_authorize_path' for #<SessionsController:0x007fa09fddb278>
Did you mean? omniauth_error_path):
app/controllers/sessions_controller.rb:113:in `auto_sign_in_with_provider'
lib/gitlab/middleware/multipart.rb:93:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/etag_caching/middleware.rb:14:in `call'
lib/gitlab/middleware/rails_queue_duration.rb:20:in `call'
lib/gitlab/metrics/rack_middleware.rb:29:in `block in call'
lib/gitlab/metrics/transaction.rb:49:in `run'
lib/gitlab/metrics/rack_middleware.rb:29:in `call'
lib/gitlab/request_context.rb:18:in `call'
Output of checks
Results of GitLab environment info
System information System: CentOS 7.3.1611 Current User: dgit999 Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.10.2 Sidekiq Version:4.2.7
GitLab information Version: 9.0.2 Revision: 3e59fd2 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://xdev.home.www.uprr.com/gitlab HTTP Clone URL: http://xdev.home.www.uprr.com/gitlab/some-group/some-project.git SSH Clone URL: dgit999@xdev.home.www.uprr.com:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.0.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
Checking GitLab Shell ...
GitLab Shell version >= 5.0.0 ? ... OK (5.0.0) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by dgit999:dgit999? default... no User id for dgit999: 18911. Groupd id for dgit999: group dgit999 doesn't exist Try fixing it: sudo chown -R dgit999:dgit999 /var/opt/gitlab/git-data/repositories For more information see: doc/install/installation.md in section "GitLab Shell" Please fix the error above and rerun the checks. Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 3/6 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) projects have namespace: ... 3/6 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.3) Your git bin path is "/opt/gitlab/embedded/bin/git" Git version >= 2.7.3 ? ... yes (2.10.2) Active users: 408
Checking GitLab ... Finished