Add to mattermost fails on updated install
Summary
When I click Add to Mattermost for slash commands in a project I get an error 500
Steps to reproduce
Go to a project. In settings -> integrations ->mattermost slack integrations
What is the current bug behavior?
Error 500
What is the expected correct behavior?
I assume if should work like your video https://youtu.be/PoBaY_rqeKA?t=56s
Relevant logs and/or screenshots
Started GET "/IT/CherwellImport/mattermost/new" for 10.10.110.137 at 2017-03-27 16:37:56 -0700
Processing by Projects::MattermostsController#new as HTML
Parameters: {"namespace_id"=>"IT", "project_id"=>"CherwellImport"}
Completed 500 Internal Server Error in 347ms (ActiveRecord: 8.3ms)
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed):
lib/mattermost/session.rb:75:in `block in get'
lib/mattermost/session.rb:153:in `handle_exceptions'
lib/mattermost/session.rb:74:in `get'
lib/mattermost/session.rb:108:in `oauth_uri'
lib/mattermost/session.rb:88:in `create'
lib/mattermost/session.rb:39:in `block in with_session'
lib/mattermost/session.rb:137:in `with_lease'
lib/mattermost/session.rb:38:in `with_session'
lib/mattermost/client.rb:12:in `with_session'
lib/mattermost/client.rb:28:in `session_get'
lib/mattermost/team.rb:5:in `all'
app/models/project_services/mattermost_slash_commands_service.rb:32:in `list_teams'
app/controllers/projects/mattermosts_controller.rb:37:in `teams'
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/request_context.rb:18:in `call'
Output of checks
Results of GitLab environment info
SSL is a fully signed certificate from digicert.
System information
System: Ubuntu 14.04
Current User: git
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.0
Revision: cf020e6
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://ada.nanaimo.ca
HTTP Clone URL: https://ada.nanaimo.ca/some-group/some-project.git
SSH Clone URL: git@ada.nanaimo.ca:some-group/some-project.git
Using LDAP: yes
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 git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
5/1 ... ok
5/2 ... ok
5/4 ... ok
5/5 ... ok
5/6 ... ok
5/7 ... ok
5/9 ... ok
5/10 ... ok
5/11 ... ok
5/12 ... ok
5/13 ... ok
5/14 ... ok
5/15 ... ok
5/16 ... ok
19/17 ... ok
5/18 ... ok
5/19 ... ok
5/20 ... ok
5/21 ... ok
3/22 ... ok
5/23 ... ok
3/24 ... ok
5/25 ... ok
5/26 ... ok
5/27 ... ok
5/28 ... ok
5/29 ... ok
5/30 ... ok
5/31 ... ok
5/32 ... ok
5/33 ... ok
5/34 ... ok
5/35 ... ok
5/36 ... ok
5/38 ... ok
12/39 ... ok
5/41 ... ok
5/42 ... ok
5/43 ... ok
5/44 ... ok
5/45 ... ok
5/46 ... ok
5/48 ... ok
5/49 ... ok
5/50 ... ok
5/51 ... ok
5/52 ... ok
5/53 ... ok
5/54 ... ok
5/55 ... ok
5/56 ... ok
5/57 ... ok
5/58 ... ok
5/59 ... ok
5/60 ... ok
5/61 ... ok
5/62 ... ok
5/63 ... ok
5/64 ... ok
3/65 ... repository is empty
5/66 ... ok
5/67 ... ok
3/68 ... ok
5/69 ... ok
5/70 ... ok
5/71 ... ok
5/72 ... ok
3/73 ... ok
5/74 ... ok
3/75 ... ok
5/76 ... ok
5/77 ... ok
5/78 ... ok
5/79 ... ok
5/80 ... ok
18/81 ... ok
18/82 ... ok
5/83 ... ok
3/84 ... ok
5/85 ... ok
5/86 ... repository is empty
5/87 ... ok
5/88 ... ok
5/89 ... ok
5/90 ... ok
5/91 ... ok
5/92 ... ok
5/93 ... ok
19/94 ... ok
19/95 ... ok
5/96 ... ok
5/97 ... ok
5/98 ... ok
5/99 ... ok
5/100 ... ok
5/101 ... ok
18/102 ... ok
5/103 ... ok
5/104 ... ok
5/105 ... ok
5/106 ... ok
3/107 ... ok
5/108 ... ok
5/109 ... ok
5/110 ... ok
5/111 ... ok
5/112 ... ok
5/113 ... ok
3/114 ... ok
5/115 ... ok
5/116 ... ok
5/117 ... ok
5/118 ... ok
5/119 ... ok
19/120 ... ok
5/121 ... ok
5/122 ... ok
5/123 ... ok
5/124 ... ok
19/125 ... ok
5/126 ... ok
5/127 ... ok
5/128 ... ok
5/129 ... ok
5/130 ... ok
19/131 ... ok
19/133 ... ok
19/134 ... ok
19/135 ... ok
19/136 ... ok
19/137 ... ok
19/138 ... ok
19/139 ... ok
19/140 ... ok
5/141 ... ok
5/142 ... ok
5/143 ... ok
5/144 ... ok
5/147 ... ok
5/148 ... ok
5/149 ... ok
5/150 ... ok
5/151 ... ok
5/152 ... ok
5/153 ... ok
3/154 ... ok
5/155 ... ok
5/156 ... ok
18/157 ... repository is empty
5/158 ... ok
5/159 ... ok
5/160 ... ok
5/161 ... ok
5/162 ... ok
5/163 ... ok
5/164 ... ok
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 ...
Server: ldapmain
LDAP authentication... Success
LDAP users with access to your GitLab server (only showing the first 100 results)
DN: CN=Jeff Jacob,OU=IT,OU=City Users,OU=Users,OU=Nanaimo,DC=nanaimo,DC=ca sAMAccountName: jjacob
Removed because of personal information
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: ...
5/1 ... yes
5/2 ... yes
5/4 ... yes
5/5 ... yes
5/6 ... yes
5/7 ... yes
5/9 ... yes
5/10 ... yes
5/11 ... yes
5/12 ... yes
5/13 ... yes
5/14 ... yes
5/15 ... yes
5/16 ... yes
19/17 ... yes
5/18 ... yes
5/19 ... yes
5/20 ... yes
5/21 ... yes
3/22 ... yes
5/23 ... yes
3/24 ... yes
5/25 ... yes
5/26 ... yes
5/27 ... yes
5/28 ... yes
5/29 ... yes
5/30 ... yes
5/31 ... yes
5/32 ... yes
5/33 ... yes
5/34 ... yes
5/35 ... yes
5/36 ... yes
5/38 ... yes
12/39 ... yes
5/41 ... yes
5/42 ... yes
5/43 ... yes
5/44 ... yes
5/45 ... yes
5/46 ... yes
5/48 ... yes
5/49 ... yes
5/50 ... yes
5/51 ... yes
5/52 ... yes
5/53 ... yes
5/54 ... yes
5/55 ... yes
5/56 ... yes
5/57 ... yes
5/58 ... yes
5/59 ... yes
5/60 ... yes
5/61 ... yes
5/62 ... yes
5/63 ... yes
5/64 ... yes
3/65 ... yes
5/66 ... yes
5/67 ... yes
3/68 ... yes
5/69 ... yes
5/70 ... yes
5/71 ... yes
5/72 ... yes
3/73 ... yes
5/74 ... yes
3/75 ... yes
5/76 ... yes
5/77 ... yes
5/78 ... yes
5/79 ... yes
5/80 ... yes
18/81 ... yes
18/82 ... yes
5/83 ... yes
3/84 ... yes
5/85 ... yes
5/86 ... yes
5/87 ... yes
5/88 ... yes
5/89 ... yes
5/90 ... yes
5/91 ... yes
5/92 ... yes
5/93 ... yes
19/94 ... yes
19/95 ... yes
5/96 ... yes
5/97 ... yes
5/98 ... yes
5/99 ... yes
5/100 ... yes
5/101 ... yes
18/102 ... yes
5/103 ... yes
5/104 ... yes
5/105 ... yes
5/106 ... yes
3/107 ... yes
5/108 ... yes
5/109 ... yes
5/110 ... yes
5/111 ... yes
5/112 ... yes
5/113 ... yes
3/114 ... yes
5/115 ... yes
5/116 ... yes
5/117 ... yes
5/118 ... yes
5/119 ... yes
19/120 ... yes
5/121 ... yes
5/122 ... yes
5/123 ... yes
5/124 ... yes
19/125 ... yes
5/126 ... yes
5/127 ... yes
5/128 ... yes
5/129 ... yes
5/130 ... yes
19/131 ... yes
19/133 ... yes
19/134 ... yes
19/135 ... yes
19/136 ... yes
19/137 ... yes
19/138 ... yes
19/139 ... yes
19/140 ... yes
5/141 ... yes
5/142 ... yes
5/143 ... yes
5/144 ... yes
5/147 ... yes
5/148 ... yes
5/149 ... yes
5/150 ... yes
5/151 ... yes
5/152 ... yes
5/153 ... yes
3/154 ... yes
5/155 ... yes
5/156 ... yes
18/157 ... yes
5/158 ... yes
5/159 ... yes
5/160 ... yes
5/161 ... yes
5/162 ... yes
5/163 ... yes
5/164 ... 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: 14
Checking GitLab ... Finished
Possible fixes
My guess is that nginx is not sending the full certificate chain and the ruby command doesn't like this.
Also it looks like the integration is using all v3 API.