Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mattermost 5.8: unable to start plugin: com.cpanato.alertmanager: Must set a Team #2

Closed
matclab opened this issue Jan 6, 2020 · 5 comments

Comments

@matclab
Copy link

matclab commented Jan 6, 2020

Trying to install this plugin with mattermost 5.8, I get the following error:

{
  "level": "error",
  "ts": 1578321163.0513644,
  "caller": "mlog/log.go:174",
  "msg": "Unable to activate plugin",
  "plugin_id": "com.cpanato.alertmanager",
  "error": "unable to start plugin: com.cpanato.alertmanager: Must set a Team",
  "errorVerbose": "Must set a Team\nunable to start plugin: com.cpanato.alertmanager\ngithub.com/mattermost/mattermost-server/v5/plugin.(*Environment).Activate\n\t/go/src/github.com/mattermost/mattermost-server/plugin/environment.go:251\ngithub.com/mattermost/mattermost-server/v5/app.(*App).SyncPluginsActiveState\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:106\ngithub.com/mattermost/mattermost-server/v5/app.(*App).InitPlugins.func2\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:197\ngithub.com/mattermost/mattermost-server/v5/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/v5/config.(*emitter).invokeConfigListeners\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/v5/config.(*commonStore).set\n\t/go/src/github.com/mattermost/mattermost-server/config/common.go:90\ngithub.com/mattermost/mattermost-server/v5/config.(*FileStore).Set\n\t/go/src/github.com/mattermost/mattermost-server/config/file.go:107\ngithub.com/mattermost/mattermost-server/v5/app.(*Server).UpdateConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:53\ngithub.com/mattermost/mattermost-server/v5/app.(*App).UpdateConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:59\ngithub.com/mattermost/mattermost-server/v5/app.(*App).EnablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:341\ngithub.com/mattermost/mattermost-server/v5/api4.enablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/api4/plugin.go:305\ngithub.com/mattermost/mattermost-server/v5/web.Handler.ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/web/handlers.go:163\ngithub.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:2007\ngithub.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/v5/app.(*RateLimiter).RateLimitHandler.func1\n\t/go/src/github.com/mattermost/mattermost-server/app/ratelimit.go:108\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2007\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2802\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1890\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"
@ltsavar
Copy link
Contributor

ltsavar commented Jan 24, 2020

With 5.9 its the same Problem.
I got "unable to start plugin: com.cpanato.alertmanager: Must set a Team" but a team is set and the plugin is working.

@cpanato
Copy link
Owner

cpanato commented Jan 24, 2020

@matclab thanks for the report, i will try to find some time to fix that

@cpanato
Copy link
Owner

cpanato commented Jan 24, 2020

@matclab @ltsavar ok Tested with latest master and it works
in the config settings you must set the Team and the channel otherwise it will not start
Screenshot 2020-01-24 at 15 28 07

@ltsavar
Copy link
Contributor

ltsavar commented Jan 24, 2020

Yea is was working for me to. But there was still the error in the logs. We are using a newer version oft Mattermost in Production and this one is not working for me :(

@matclab
Copy link
Author

matclab commented Jan 26, 2020

It indeed seems to work for me with 5.18 (no error in GUI nor in log). Now waiting for the next alert.
Thanks.

@cpanato cpanato closed this as completed Jan 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants