[Solved] Gitlab Mattermost missing avatars after update from GitLab 8.1.3 to 8.2.2

After I updated GitLab from 8.1.3 to 8.2.2, which updates mattermost to the newest version (I believe), I’ve had some problems.

All of our avatars disappeared, and sometimes the scrolling is broken.

The avatars aren’t showing anymore, and if I try to upload a new one I get “We received an unexpected status code from the server 502” note some people can set new avatars, but most can’t…

If I scroll to the bottom of the chat window, the panel on the left, with the channels in it, just stays where it is, and that panel becomes empty and white (much like me hahaha :frowning: ) Anyway, has anyone else seen this problem, or know how to resolve it?

It effects all of my users, but if they spam refresh 5-10 times, it comes back working…but breaks again on more refreshing. Any help is appreciated.

Update1
Users can update their avatar if they choose a different one than they had before. So, I’m assuming the avatars are somewhere in the database, and that’s the problem.

The answer is here.

https://github.com/mattermost/platform/issues/1510#issuecomment-159443966

Basically, someone messed up and there’s a difference between your /var/opt/gitlab/mattermost/data/teams, and/var/opt/gitlab/mattermost/datateams directories. They are the same thing, but someone somewhere named it incorrectly.

I just had to move my profile pictures I wanted to keep, into /var/opt/gitlab/mattermost/data/teams/xuy78sdfuhjhsdf/

as the new users/ directory.

Be sure you chown -R mattermost:mattermost your users directory if you’ve moved it as sudo.

Hope this helps someone