After upgrading to 5.14, Jira plugin does not start anymore.
It used to be working with the previous mattermost installation (5.11).
I have followed as usual the plugin guide but I don’t find anymore where to “select the username that this plugin is attached to”. (I could set it in mattermost 5.11 but not anymore in 5.14 since there is not the field anymore)
Steps to reproduce
Mattermost 5.14 docker version
Jira server
Expected behavior
webhook working
Observed behavior
Manually editing the file config.json adding the line “username”: “actualusername” (taken from the config.json of the 5.11 previous working instance) does not work (mattermost container get stuck on starting)
@rubius, can you share any logs from the plugin? (look for "plugin_id": "jira").
The Jira plugin was upgraded to use a bot account, and is no longer manually attached to a user. It’s possible something is failing in the migration to this new approach that perhaps the logs will surface.
Thanks, @rubius! Very unusual that SetProfileImage is the part that’s failing.
Do you have any additional logs around that (won’t necessarily be tagged with "plugin_id": "jira") from the server indicating any failures with the file store?
I’ve had the same problem, I’ve traced it down to file permissions:
get id of jira user account (which was created from the plugin and will be used as ): bin/mattermost user search jira
look where user files are stored in config.json (outside of the container?): FileSettings - Directory (i.e. “/data/mattermost”)
verify that the profile image is accessable to the user where mattermost is running with: ls -laR /data/mattermost/users/<jira-user-id> ps -fp $(pgrep mattermost)
change file permissions to match the mattermost user: chown -R <mattermost-user>: /data/mattermost/users/<jira-user-id>