cpanato/mattermost-plugin-alertmanager

Failed to start plugin 0.1.0

edwelch opened this issue · 4 comments

Server Version: 5.26.2
Plugin Version: 0.1.0
Failed to start. Here some logs:

{"level":"error","ts":1617279277.5100725,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Не удалось найти существующую команду., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"info","ts":1617279277.5121043,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"} {"level":"warn","ts":1617279277.5422955,"caller":"plugin/hclog_adapter.go:69","msg":"error closing client during Kill","plugin_id":"com.cpanato.alertmanager","wrapped_extras":"errunexpected EOF"} {"level":"warn","ts":1617279277.5427206,"caller":"plugin/hclog_adapter.go:71","msg":"plugin failed to exit gracefully","plugin_id":"com.cpanato.alertmanager"} {"level":"error","ts":1617279277.5431993,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Не удалось найти существующую команду., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"error","ts":1617279277.603872,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Не удалось найти существующую команду., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"info","ts":1617279277.6219296,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"} {"level":"error","ts":1617279277.6514676,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Не удалось найти существующую команду., name=http://mt.lan:8065/team-dev,sql: no rows in result set"}

there are some logs that I cannot read because it is in another language.

Did you configure the settings?

@cpanato here corrected log file:

Yes, I configured plugin with all steps from install manual

{"level":"error","ts":1617279277.5100725,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Couldn't find an existing command., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"info","ts":1617279277.5121043,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"} {"level":"warn","ts":1617279277.5422955,"caller":"plugin/hclog_adapter.go:69","msg":"error closing client during Kill","plugin_id":"com.cpanato.alertmanager","wrapped_extras":"errunexpected EOF"} {"level":"warn","ts":1617279277.5427206,"caller":"plugin/hclog_adapter.go:71","msg":"plugin failed to exit gracefully","plugin_id":"com.cpanato.alertmanager"} {"level":"error","ts":1617279277.5431993,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Couldn't find an existing command., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"error","ts":1617279277.603872,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Couldn't find an existing command., name=http://mt.lan:8065/team-dev,sql: no rows in result set"} {"level":"info","ts":1617279277.6219296,"caller":"bleveengine/bleve.go:267","msg":"UpdateConf Bleve"} {"level":"error","ts":1617279277.6514676,"caller":"mlog/log.go:190","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"SqlTeamStore.GetByName: Couldn't find an existing command., name=http://mt.lan:8065/team-dev,sql: no rows in result set"}

hello, i tried with MM version 5.26.2 and works for me
Screenshot 2021-04-27 at 13 30 34
Screenshot 2021-04-27 at 13 30 25
Screenshot 2021-04-27 at 13 29 09
Screenshot 2021-04-27 at 13 29 01

Problem solved

In README.md in step 4 "For each, use the URL of the team or channel instead of their respective display names".
For Team and Channel use respective names instead URL's. If you use URL's, Alertmanager plugin will not start.