I just upgraded a small instance with 3 teams from 2.x to 3.0.2. The instance has email signups and logins disabled, but has a Gitlab integration so that all users could login using their respective Gitlab accounts.
After the upgrade, after clicking on the “login with Gitlab” button, all I get is this message:
An existing user is already attached to your gitlab account
Where do I even go from here? Of course there is an existing user using my Gitlab account, that’s what I’m trying to login to! There doesn’t seem to be any useful info in the logs nor is there anywhere to go from that message. Since none of the original accounts even had passwords (since they were Gitlab logins) I don’t want to make everybody reset passwords and manage them separately from Gitlab. How can I get these wired up again so they can login?
I swear Google hadn’t indexed this yesterday, but I now get a search hit for that error message on this Github issue report. Is there seriously no way to fix this other than hacking on the database manually?
[2016/05/26 05:38:22 UTC] [EROR] /signup/gitlab/complete:CreateOAuthUser code=500 rid=************************** uid= ip=<ip> An existing user is already attached to your gitlab acc
ount [details: email=caleb@alerque.com]
[2016/05/26 05:38:52 UTC] [EROR] /**************************:incomingWebhook code=500 rid=************************** uid= ip=<ip> No text specified [details: ]
[2016/05/26 05:38:52 UTC] [EROR] /error: code=404 ip=<ip>
[2016/05/26 05:38:52 UTC] [EROR] /error: code=404 ip=<ip>
[2016/05/26 05:38:52 UTC] [EROR] /error: code=404 ip=<ip>
[2016/05/26 05:38:52 UTC] [EROR] /error: code=404 ip=<ip>
This 404 message in happening after every request and is likely not related to the login issue.
I redacted the IP (which is the server’s real IP in all instances) and various tokens (none of which were the same as each other) mostly because I wasn’t sure if any of them were sensitive.
Thanks @alerque, we’re investigating a specific corner case that might be causing this, would you know if the account that’s causing the error has been assigned a Team Admin role (i.e. has that role specifically and is not a System Administrator?)
@alerque
Did you find a solution to your problems. I think that I’m facing the same situation after Mattermost 3.0 Upgrade.
I was able to restore my password and then login in using user and password, but now according to @lfbrock if I want to switch my account back to Gitlab I’m unable because under Sign-in Method there is no gitlab option.
Sort of. Since it turns out only my account was affected let it go for a long time hoping better user management would show up in the next version or something. I recently broke down and hacked the user table myself from MySQL. I added AuthService='gitlab' and AuthData='X' where X is Gitlab’s internal user ID number for me to my line in the users table and was able to get in that way.