Mattermost, Inc.

Jira plugin not working after upgrading to 5.14

Summary

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.

Hi jesse,

thanks for your reply.

Here’s a piece of the log. I hope I’ve posted it correctly :slightly_smiling_face:

{"level":"error","ts":1566322000.5553951,"caller":"mlog/log.go:173","msg":"Unable to activate plugin","plugin_id":"jira","error":"unable to start plugin: jira: couldn't set profile image: SetProfileImage: Couldn't upload profile image, ","errorVerbose":"couldn't set profile image: SetProfileImage: Couldn't upload profile image, \nunable to start plugin: jira\ngithub.com/mattermost/mattermost-server/plugin.(*Environment).Activate\n\t/go/src/github.com/mattermost/mattermost-server/plugin/environment.go:259\ngithub.com/mattermost/mattermost-server/app.(*App).SyncPluginsActiveState\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:96\ngithub.com/mattermost/mattermost-server/app.(*App).InitPlugins.func2\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:177\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners.func1\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:35\nsync.(*Map).Range\n\t/usr/local/go/src/sync/map.go:333\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/config.(*commonStore).set\n\t/go/src/github.com/mattermost/mattermost-server/config/common.go:90\ngithub.com/mattermost/mattermost-server/config.(*FileStore).Set\n\t/go/src/github.com/mattermost/mattermost-server/config/file.go:97\ngithub.com/mattermost/mattermost-server/app.(*App).SaveConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:378\ngithub.com/mattermost/mattermost-server/app.(*App).EnablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:320\ngithub.com/mattermost/mattermost-server/api4.enablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/api4/plugin.go:252\ngithub.com/mattermost/mattermost-server/web.Handler.ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/web/handlers.go:144\ngithub.com/mattermost/mattermost-server/vendor/github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/NYTimes/gziphandler/gzip.go:336\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:1995\ngithub.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux.(*Router).ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux/mux.go:212\ngithub.com/mattermost/mattermost-server/app.(*RateLimiter).RateLimitHandler.func1\n\t/go/src/github.com/mattermost/mattermost-server/app/ratelimit.go:109\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:1995\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2774\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1878\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}

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?