My custom emojis all broke after updating to 5.27

For feature requests, please see: http://www.mattermost.org/feature-requests/.

For troubleshooting questions, please post in the following format:

Summary

After updating to 5.27, I can no longer see any of my own custom emojis (they are still defined, just blank), however other users can still see them, and I can see custom emojis they have created.

Steps to reproduce

Version 5.27 (updated from 5.23), then my own custom emoji graphics no longer are visible.

Expected behavior

Expected behavior is that when I (or any other user) references the custom emoji string identifier, the graphic should appear for all users. As it stands, everyone can see the graphics, just not me (I’m the admin of the server).

Observed behavior

When I go to the Custom Emoji menu drop-down, the attached screenshot is what I see. If I add a new custom emoji, I can see the newly added one as I would expect to. Just all of the ones that existed prior to the upgrade seem to be affected.

Thanks for any help or thoughts on how to further troubleshoot this.

Hi, @ashblade

One of the first things that I would check is the permission of the /opt/mattermost directory post upgrade as it is common to run it as the root user causing permission changes.

Can you run ls -lAh /opt/mattermost/ and share the output here? By default, it should look like this:

vagrant@mattermost:~$ ls -lAh /opt/mattermost/
total 248K
drwxrwxr-x 2 mattermost mattermost 4.0K Sep 14 12:45 bin
drwxrwxr-x 7 mattermost mattermost 4.0K Oct  1 12:59 client
drwxrwxr-x 2 mattermost mattermost 4.0K Oct  1 12:59 config
drwxrwxr-x 4 mattermost mattermost 4.0K Oct  1 17:05 data
-rw-rw-r-- 1 mattermost mattermost 2.1K Sep 14 12:44 ENTERPRISE-EDITION-LICENSE.txt
drwxrwxr-x 2 mattermost mattermost 4.0K Sep 14 12:44 fonts
drwxrwxr-x 2 mattermost mattermost 4.0K Sep 14 12:44 i18n
drwxrwxr-x 2 mattermost mattermost 4.0K Oct  1 13:00 logs
-rw-rw-r-- 1 mattermost mattermost 193K Sep 14 12:44 NOTICE.txt
drwxr--r-- 3 mattermost mattermost 4.0K Oct  1 13:00 plugins
drwxrwxr-x 2 mattermost mattermost 4.0K Sep 14 12:45 prepackaged_plugins
-rw-rw-r-- 1 mattermost mattermost 5.5K Sep 14 12:44 README.md
drwxrwxr-x 2 mattermost mattermost 4.0K Sep 14 12:44 templates

If not, run the sudo chown -R mattermost:mattermost /opt/mattermost/ command and check again if the custom emojis are still broken.

Thanks for the reply @ahmaddanial . Here is the output which all looks correct to me:

/opt/mattermost# ls -lAh /opt/mattermost
total 252K
-rw-r–r-- 1 mattermost mattermost 2.1K Sep 14 12:44 ENTERPRISE-EDITION-LICENSE.txt
-rw-r–r-- 1 mattermost mattermost 193K Sep 14 12:44 NOTICE.txt
-rw-r–r-- 1 mattermost mattermost 5.5K Sep 14 12:44 README.md
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:45 bin
drwxr-xr-x 5 mattermost mattermost 4.0K Sep 26 13:49 bleveindexes
drwxr-xr-x 7 mattermost mattermost 4.0K Sep 25 17:39 client
drwxr-xr-x 3 mattermost mattermost 4.0K Sep 14 12:44 config
drwxrwxr-x 188 mattermost mattermost 4.0K Sep 25 17:54 data
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:44 fonts
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:44 i18n
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:44 logs
drwxr–r-- 2 mattermost mattermost 4.0K Sep 25 18:26 plugins
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:45 prepackaged_plugins
drwxr-xr-x 2 mattermost mattermost 4.0K Sep 14 12:44 templates

I did run the chmod -R command as well just to make sure owner and group perms were all set correctly; no change, unfortunately. Thank you for the suggestion.