I stumbled upon a weird behaviour when using the GitLab authentication.
When I try to make a new user (for an existing team) via mail address it works without a problem. When I then try to create a new user using GitLab authentication I get the error:
[Mattermost-installation-name] needs your help:
We couldn’t find the existing account
The log reads:
[2015/10/28 15:44:30 CET] [EROR] /login/gitlab/complete:SqlUserStore.GetByAuth
code=500 rid=8puahuqrwjrg5jrywqbaeskfyc uid= ip=188.8.131.52 We couldn’t
find the existing account [details: teamId=j1m8w6r9apdd3xbng493cujmhh,
authData=90, authService=gitlab, sql: no rows in result set]
If however I create a new team using GitLab authentication it runs through and successfully creates the team and the user account.
The email options did not make any difference, i.e. whether mail verification was on or off, registrations by mail allowed or disallowed, or mail notifications enabled or disabled.
How can I tackle this problem? I don’t even know where to look, because in principle it already works.
Setup: precompiled version 1.1 on Debian 7 with postgres locally installed. No proxy so far and running on default port 8065. The GitLab installation runs on a different server but between the two http, https and port 8065 (all tcp) are allowed in the firewall.
Any suggestions are welcome!