blindsidenetworks / mattermost-plugin-bigbluebutton

BigBlueButton plugin for Mattermost :electric_plug:
Apache License 2.0
89 stars 43 forks source link

got the mattermost error "bigbluebutton: Unrecognized remote plugin message" when i recompile this plugin #89

Open GabinhoJean opened 4 years ago

GabinhoJean commented 4 years ago

Hi, thank for this great project.

I'm trying to modify some aspects of this plugin.

For testing purposes, I followed the steps below:

1- I cloned this project on my server.

2 - I installed some missing GitHub dependencies using the command "go get" example: go get github.com/blindsidenetworks/mattermost-plugin-bigbluebutton/server/bigbluebuttonapiwrapper/api

3- I executed the command make build.

after that, everything seems going fine but when I uploaded the builded file bigbluebutton_linux_amd64.tar on my mattermost server (version 5.21.0 running on ubuntu server 16.04) I got this error:

{ "level":"error", "ts":1587559617.4867847, "caller":"mlog/log.go:175", "msg":"Unable to activate plugin", "plugin_id":"bigbluebutton", "error":"unable to start plugin: bigbluebutton: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.", "errorVerbose":"Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.\nunable to start plugin: bigbluebutton\ngithub.com/mattermost/mattermost-server/v5/plugin.(Environment).Activate\n\tgithub.com/mattermost/mattermost-server/v5@/plugin/environment.go:270\ngithub.com/mattermost/mattermost-server/v5/app.(App).SyncPluginsActiveState\n\tgithub.com/mattermost/mattermost-server/v5@/app/plugin.go:115\ngithub.com/mattermost/mattermost-server/v5/app.(App).InitPlugins.func1\n\tgithub.com/mattermost/mattermost-server/v5@/app/plugin.go:183\ngithub.com/mattermost/mattermost-server/v5/config.(emitter).invokeConfigListeners.func1\n\tgithub.com/mattermost/mattermost-server/v5@/config/emitter.go:35\nsync.(Map).Range\n\tsync/map.go:333\ngithub.com/mattermost/mattermost-server/v5/config.(emitter).invokeConfigListeners\n\tgithub.com/mattermost/mattermost-server/v5@/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/v5/config.(commonStore).load\n\tgithub.com/mattermost/mattermost-server/v5@/config/common.go:153\ngithub.com/mattermost/mattermost-server/v5/config.(FileStore).Load\n\tgithub.com/mattermost/mattermost-server/v5@/config/file.go:169\ngithub.com/mattermost/mattermost-server/v5/app.(Server).ReloadConfig\n\tgithub.com/mattermost/mattermost-server/v5@/app/config.go:64\ngithub.com/mattermost/mattermost-server/v5/app.NewServer\n\tgithub.com/mattermost/mattermost-server/v5@/app/server.go:267\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.runServer\n\tgithub.com/mattermost/mattermost-server/v5@/cmd/mattermost/commands/server.go:64\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.serverCmdF\n\tgithub.com/mattermost/mattermost-server/v5@/cmd/mattermost/commands/server.go:53\ngithub.com/spf13/cobra.(Command).execute\n\tgithub.com/spf13/cobra@v0.0.5/command.go:826\ngithub.com/spf13/cobra.(Command).ExecuteC\n\tgithub.com/spf13/cobra@v0.0.5/command.go:914\ngithub.com/spf13/cobra.(Command).Execute\n\tgithub.com/spf13/cobra@v0.0.5/command.go:864\ngithub.com/mattermost/mattermost-server/v5/cmd/mattermost/commands.Run\n\tgithub.com/mattermost/mattermost-server/v5@/cmd/mattermost/commands/root.go:15\nmain.main\n\tgithub.com/mattermost/mattermost-server/v5@/cmd/mattermost/main.go:31\nruntime.main\n\truntime/proc.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1357" }

But I tested the lasted release of this project as described in the ReadMe and it's working fine.

Any ideas on this problem, please?

ghost commented 4 years ago

@GabinhoJean can you verify that you configured the plugin correctly before activating it? If that doesn't work, set Mattermost log level to debug and then see what comes up in logs.

What's your build environment like-

ZidaneCA commented 4 years ago

Hi @harshilsharma63 , Please I have a similar problem and my npm version is 6.14.4, go version go1.11 linux/amd64

ghost commented 4 years ago

@ZidaneCA do you see any errors in Mattermost logs? try setting log lever to debug and repeating the action. There should definitely be something in logs.

ZidaneCA commented 4 years ago

Hi @harshilsharma63 , this is an extract of my logs in debug mode (hope it will be of much help). I notice this line stands out Error relocating /mattermost/plugins/bigbluebutton/server/plugin.exe , (it occurs many times in the logs).

{"level":"warn","ts":1592217066.5269194,"caller":"plugin/hclog_adapter.go:53","msg":"plugin failed to exit gracefully","plugin_id":"bigbluebutton"}

{"level":"debug","ts":1592217066.5267773,"caller":"plugin/hclog_adapter.go:35","msg":"Error relocating /mattermost/plugins/bigbluebutton/server/plugin.exe: __vfprintf_chk: symbol not found","plugin_id":"bigbluebutton"}

{"level":"debug","ts":1592217066.5270474,"caller":"plugin/hclog_adapter.go:35","msg":"Error relocating /mattermost/plugins/bigbluebutton/server/plugin.exe: __fprintf_chk: symbol not found","plugin_id":"bigbluebutton"}

{"level":"debug","ts":1592217066.5271337,"caller":"plugin/hclog_adapter.go:33","msg":"plugin process exited","plugin_id":"bigbluebutton","wrapped_extras":"path/mattermost/plugins/bigbluebutton/server/plugin.exepid92errorexit status 127"}

{"level":"error", "ts":1592217066.5272174, "caller":"mlog/log.go:175", "msg":"Unable to activate plugin", "plugin_id":"bigbluebutton", "error":"unable to start plugin: bigbluebutton: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.", "errorVerbose":"Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.\nunable to start plugin: bigbluebutton\ngithub.com/mattermost/mattermost-server/v5/plugin.(Environment).Activate\n\tgithub.com/mattermost/mattermost-server/v5@/plugin/environment.go:270\ngithub.com/mattermost/mattermost-server/v5/app.(App).SyncPluginsActiveState\n\tgithub.com/mattermost/mattermost-server/v5@/app/plugin.go:115\ngithub.com/mattermost/mattermost-server/v5/app.(App).InitPlugins.func1\n\tgithub.com/mattermost/mattermost-server/v5@/app/plugin.go:183\ngithub.com/mattermost/mattermost-server/v5/config.(emitter).invokeConfigListeners.func1\n\tgithub.com/mattermost/mattermost-server/v5@/config/emitter.go:35\nsync.(Map).Range\n\tsync/map.go:333\ngithub.com/mattermost/mattermost-server/v5/config.(emitter).invokeConfigListeners\n\tgithub.com/mattermost/mattermost-server/v5@/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/v5/config.(commonStore).set\n\tgithub.com/mattermost/mattermost-server/v5@/config/common.go:90\ngithub.com/mattermost/mattermost-server/v5/config.(FileStore).Set\n\tgithub.com/mattermost/mattermost-server/v5@/config/file.go:108\ngithub.com/mattermost/mattermost-server/v5/app.(App).SaveConfig\n\tgithub.com/mattermost/mattermost-server/v5@/app/config.go:382\ngithub.com/mattermost/mattermost-server/v5/app.(App).EnablePlugin\n\tgithub.com/mattermost/mattermost-server/v5@/app/plugin.go:332\ngithub.com/mattermost/mattermost-server/v5/api4.enablePlugin\n\tgithub.com/mattermost/mattermost-server/v5@/api4/plugin.go:288\ngithub.com/mattermost/mattermost-server/v5/web.Handler.ServeHTTP\n\tgithub.com/mattermost/mattermost-server/v5@/web/handlers.go:177\ngithub.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1\n\tgithub.com/NYTimes/gziphandler@v1.1.1/gzip.go:336\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2007\ngithub.com/gorilla/mux.(Router).ServeHTTP\n\tgithub.com/gorilla/mux@v1.7.3/mux.go:212\ngithub.com/mattermost/mattermost-server/v5/app.(RateLimiter).RateLimitHandler.func1\n\tgithub.com/mattermost/mattermost-server/v5@/app/ratelimit.go:108\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2007\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2802\nnet/http.(*conn).serve\n\tnet/http/server.go:1890\nruntime.goexit\n\truntime/asm_amd64.s:1357"}

{"level":"debug","ts":1592217066.580628,"caller":"plugin/hclog_adapter.go:33","msg":"starting plugin","plugin_id":"bigbluebutton","wrapped_extras":"path/mattermost/plugins/bigbluebutton/server/plugin.exeargs[/mattermost/plugins/bigbluebutton/server/plugin.exe]"}

{"level":"debug","ts":1592217066.5817664,"caller":"plugin/hclog_adapter.go:33","msg":"plugin started","plugin_id":"bigbluebutton","wrapped_extras":"path/mattermost/plugins/bigbluebutton/server/plugin.exepid93"}

{"level":"debug","ts":1592217066.5819614,"caller":"plugin/hclog_adapter.go:35","msg":"Error relocating /mattermost/plugins/bigbluebutton/server/plugin.exe: __vfprintf_chk: symbol not found","plugin_id":"bigbluebutton"}

{"level":"debug","ts":1592217066.582117,"caller":"plugin/hclog_adapter.go:35","msg":"Error relocating /mattermost/plugins/bigbluebutton/server/plugin.exe: __fprintf_chk: symbol not found","plugin_id":"bigbluebutton"}

{"level":"debug","ts":1592217066.5822682,"caller":"plugin/hclog_adapter.go:33","msg":"plugin process exited","plugin_id":"bigbluebutton","wrapped_extras":"path/mattermost/plugins/bigbluebutton/server/plugin.exepid93errorexit status 127"}

{"level":"debug","ts":1592217066.581988,"caller":"plugin/hclog_adapter.go:33","msg":"waiting for RPC address","plugin_id":"bigbluebutton","wrapped_extras":"path/mattermost/plugins/bigbluebutton/server/plugin.exe"}

harshilsharma63 commented 3 years ago

@ZidaneCA are you still facing the issue?

ZidaneCA commented 3 years ago

@ZidaneCA are you still facing the issue?

@harshilsharma63 after a long time of trying and failing, I just decided to leave it and go for some version which seemed to work.

harshilsharma63 commented 3 years ago

Latest verion of the plugin?

ZidaneCA commented 3 years ago

Haven't tried yet the latest. Will do that and let you know @harshilsharma63