Error 500 when logging in to bundled Mattermost with OAuth
Summary
When logging into the bundled mattermost, we get a 500. The mattermost installation was working prior to upgrading gitlab to 10.1.3. Everything is running in Ubuntu 16.04 installed with the Omnibus package.
Relevant logs and/or screenshots
Here is the associated log in gitlab-workhorse with the site url replaced by URL:
2017-11-14_13:53:28.60197 URL @ - - [2017-11-14 13:53:28.468953986 +0000 UTC]
"GET /oauth/authorize?response_type=code&client_id=fd3bd6f8c08b79918efc0d0bfaf96a6ac75c84d85a2b45d75e908973e70c779e&redirect_uri=https%3A%2F%2FURL%2Fsignup%2Fgitlab%2Fcomplete&state=eyJhY3Rpb24iOiJsb2dpbiIsInJlZGlyZWN0X3RvIjoiL2luZ2VuaWVyaWUvY2hhbm5lbHMvOGN0aWtmNG00dGZlZGY3a2pkeW10bzFyZWVfX29tdG50d3ltODNiajNxNnRldWJvaWRreGJlIiwidG9rZW4iOiJ4c2FmbWQza25ob3RkeXl0dWVhNWlidWVldXo1NnlpaTQ4ZGU4OGpnNDltODN0YW40aTM5MThndXdieGNhejNoIn0%3D HTTP/1.1"
500 2902 "https://URL/users/sign_in" "Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.2.2 Waterfox/55.2.2" 0.132750
Results of GitLab environment info
Expand for output related to the GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.5p376 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.1.0 Redis Version: 3.2.5 Git Version: 2.13.6 Sidekiq Version:5.0.4 Go Version: unknownGitLab information Version: 10.1.3 Revision: e6142bc Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://git.ctaq.ca:9797 HTTP Clone URL: https://git.ctaq.ca:9797/some-group/some-project.git SSH Clone URL: ssh://git@git.ctaq.ca:9796/some-group/some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 5.9.3 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
Checking GitLab Shell ...GitLab Shell version >= 5.9.3 ? ... OK (5.9.3) 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: ... 5/1 ... ok 5/2 ... ok 3/3 ... ok 3/4 ... repository is empty 3/5 ... repository is empty 3/6 ... repository is empty 3/7 ... repository is empty 2/10 ... ok 10/11 ... ok 3/12 ... repository is empty 10/13 ... ok 3/14 ... repository is empty 3/15 ... repository is empty 3/16 ... ok 3/17 ... repository is empty 3/21 ... repository is empty 3/22 ... repository is empty 2/27 ... ok 2/28 ... ok 10/29 ... ok 10/30 ... ok 10/31 ... ok 10/32 ... ok 10/33 ... ok 10/34 ... repository is empty 27/35 ... ok 27/36 ... ok 27/37 ... ok 28/40 ... ok 8/41 ... ok 28/42 ... ok 3/44 ... repository is empty 27/45 ... ok 3/46 ... repository is empty 10/47 ... repository is empty 31/51 ... repository is empty 27/52 ... ok 32/53 ... ok 32/55 ... ok 3/57 ... repository is empty 32/58 ... ok 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) Removed for confidentiality
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... 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: ... 5/1 ... yes 5/2 ... yes 3/3 ... yes 3/4 ... yes 3/5 ... yes 3/6 ... yes 3/7 ... yes 2/10 ... yes 10/11 ... yes 3/12 ... yes 10/13 ... yes 3/14 ... yes 3/15 ... yes 3/16 ... yes 3/17 ... yes 3/21 ... yes 3/22 ... yes 2/27 ... yes 2/28 ... yes 10/29 ... yes 10/30 ... yes 10/31 ... yes 10/32 ... yes 10/33 ... yes 10/34 ... yes 27/35 ... yes 27/36 ... yes 27/37 ... yes 28/40 ... yes 8/41 ... yes 28/42 ... yes 3/44 ... yes 27/45 ... yes 3/46 ... yes 10/47 ... yes 31/51 ... yes 27/52 ... yes 32/53 ... yes 32/55 ... yes 3/57 ... yes 32/58 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.3 ? ... yes (2.3.5) Git version >= 2.7.3 ? ... yes (2.13.6) Git user has default SSH configuration? ... yes Active users: ... 24
Checking GitLab ... Finished