# \[SOLVED\] GitLab Mattermost needs your help: We encountered an error trying to find the account by authentication type

**URL:** <https://forum.mattermost.com/t/solved-gitlab-mattermost-needs-your-help-we-encountered-an-error-trying-to-find-the-account-by-authentication-type/2358>\
**Category:** Troubleshooting\
**Created:** [October 12, 2016, 1:18pm UTC](https://forum.mattermost.com/t/solved-gitlab-mattermost-needs-your-help-we-encountered-an-error-trying-to-find-the-account-by-authentication-type/2358 "2016-10-12T13:18:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![salo](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@salo](https://forum.mattermost.com/u/salo)\
**Post date:** [October 13, 2016, 10:15am UTC](https://forum.mattermost.com/t/solved-gitlab-mattermost-needs-your-help-we-encountered-an-error-trying-to-find-the-account-by-authentication-type/2358/2 "2016-10-13T10:15:54Z")

</div>

After some hours of investigation, I was able to fix the problem thanks to this post: [http://forum.mattermost.com/t/solved-cant-login-after-upgrade-from-3-2-0-to-3-4-0/2240](http://forum.mattermost.com/t/solved-cant-login-after-upgrade-from-3-2-0-to-3-4-0/2240)

Steps to fix:  
`sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql/ mattermost_production`

* * *

`mattermost_production=# UPDATE Systems SET Value = '3.1.0' WHERE Name = 'Version'; mattermost_production-# \q`

* * *

`sudo gitlab-ctl reconfigure sudo gitlab-ctl restart`

---

_[View the full topic](https://forum.mattermost.com/t/solved-gitlab-mattermost-needs-your-help-we-encountered-an-error-trying-to-find-the-account-by-authentication-type/2358)._
