Mattermost Peer-to-Peer Forum

Issue with Rollbar (Matterbar) plugin

#1

Hi were,

I’m trying to set up the interaction between the Rollbar and the Mattemost (own server) using the plugin Matterbar (https://github.com/Affirm/matterbar)

But after configuring the webhook on Rollbar side and plugin in Mattermost I get aerror message time:

i2019-03-22T09:49:44.154+0200 error plugin/client_rpc.go:326 Plugin failed to ServeHTTP, RPC call failed {"plugin_id": "matterbar", "error": "unexpected EOF"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 panic: runtime error: invalid memory address or nil pointer dereference {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x98d497] {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 goroutine 26 [running]: {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 main.(Rollbar).eventNameToTitle(0xc000210480, 0xa37aa0, 0xc000210480) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /Users/dliu/.go/src/github.com/mattermost/matterbar/server/rollbar.go:120 +0x57 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 main.(RollbarPlugin).handleWebhook(0xc0001850c0, 0xbd8e80, 0xc0001fdc00, 0xc0000e8800) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /Users/dliu/.go/src/github.com/mattermost/matterbar/server/http.go:105 +0x319 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 main.(RollbarPlugin).ServeHTTP(0xc0001850c0, 0xc0001fdb70, 0xbd8e80, 0xc0001fdc00, 0xc0000e8800) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /Users/dliu/.go/src/github.com/mattermost/matterbar/server/http.go:26 +0x99 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 github.com/mattermost/matterbar/vendor/github.com/mattermost/mattermost-server/plugin.(hooksRPCServer).ServeHTTP(0xc00000bac0, 0xc00020e240, 0x10b3988, 0x0, 0x0) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /Users/dliu/.go/src/github.com/mattermost/matterbar/vendor/github.com/mattermost/mattermost-server/plugin/client_rpc.go:352 +0x254 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 reflect.Value.call(0xc0001e4660, 0xc00000cb38, 0x13, 0xb05cdc, 0x4, 0xc000079f18, 0x3, 0x3, 0xc0001857c0, 0x413167, ...) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /usr/local/opt/go/libexec/src/reflect/value.go:447 +0x449 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 reflect.Value.Call(0xc0001e4660, 0xc00000cb38, 0x13, 0xc000037f18, 0x3, 0x3, 0x12a05f200, 0xc000037f10, 0xc000037fb8) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 /usr/local/opt/go/libexec/src/reflect/value.go:308 +0xa4 {"plugin_id": "matterbar"} 2019-03-22T09:49:44.154+0200 debug go-plugin/client.go:844 net/rpc.(service).call(0xc000185a00, 0xc00007d130, 0xc000021708, 0xc000021730, 0xc0000d9200, 0xc0001e8220, 0x9dd7a0, 0xc00020e240, 0x16, 0x9ebee0, ...) {"plugin_id": "matterbar"} 2019-03-22T09:49:44.155+0200 debug go-plugin/client.go:844 /usr/local/opt/go/libexec/src/net/rpc/server.go:384 +0x14e {"plugin_id": "matterbar"} 2019-03-22T09:49:44.155+0200 debug go-plugin/client.go:844 created by net/rpc.(Server).ServeCodec {"plugin_id": "matterbar"} 2019-03-22T09:49:44.155+0200 debug go-plugin/client.go:844 /usr/local/opt/go/libexec/src/net/rpc/server.go:481 +0x47e {"plugin_id": "matterbar"} 2019-03-22T09:49:44.155+0200 debug go-plugin/client.go:595 plugin process exited {"plugin_id": "matterbar", "wrapped_extras": "pathplugins/matterbar/server/plugin-linux-amd64pid30284errorexit status 2"} #second try after server restart 2019-03-22T09:49:52.947+0200 error plugin/client_rpc.go:326 Plugin failed to ServeHTTP, RPC call failed {"plugin_id": "matterbar", "error": "connection is shut down"} 2019-03-22T09:49:57.947+0200 error plugin/client_rpc.go:300 Plugin failed to ServeHTTP, muxBroker couldn't Accept request body connection {"plugin_id": "matterbar", "error": "timeout waiting for accept"} 2019-03-22T09:49:57.947+0200 error plugin/client_rpc.go:281 Plugin failed to ServeHTTP, muxBroker couldn't accept connection {"plugin_id": "matterbar", "serve_http_stream_id": 4, "error": "timeout waiting for accept"}

Please help me resolve this issue.
Sergiy

#2

Hi @Sergiy,

A response from a community member:

Seems to be an issue with Rollbar (here). Which plugin version did you try? The webhook’s payload doesn’t look like what the plugin expects, as far as we understand. (Missing a LastOccurrence .)

#3

A using plugin v0.2.0

#4

Hi @Sergiy,

Would you be open to raising this issue on the Matterbar Github repo: https://github.com/danieliu/matterbar/issues? This is a community plugin, so it might be best to contact the plugin creator directly.