Open ragnarok189 opened 3 years ago
Having the same issue. I've built the server binary without issues, but Mattermost gives the exact same error about an invalid plugin:
"error":"unable to start plugin: rssfeed: 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."
Plugin compiled on Ubuntu 18.04 with Go 1.13.8, running Mattermost 5.31.6.
Hey,
I had the same issue. I compiled on Ubuntu and tried to run the plugin in a mattermost instance run via Docker using the guide from here.
After changing the Mattermost log level to DEBUG
, I saw the following message: __fprintf_chk: symbol not found
. The reason for this was, that the Docker image is based on Alpine Linux, which is using musl as standard C library.
The solution for me was disabling cgo, by putting export CGO_ENABLED=0
into the Makefile (right below export GO111MODULE=on
. After recompiling, the plugin could be enabled.
Note, that the problem in your cases could be different, and disabling cgo might not work for you, as you are not running it on Alpine Linux. But it's worth a try.
Have a look at the log with the level set to DEBUG
to get more clues.
@MoeRT09 Brilliant! I am, in fact, running a dockerized Mattermost using Alpine Linux. Disabling CGO, as you suggested, did the trick. Thanks much for the pointer (and context)!
Btw, this was still a problem with my setup (7.1.4 ESR) today and still solved by disabling CGO.
I have compiled the plugin source code (both release v0.2.0 and latest commit from master branch) with
make dist
and uploaded the compiled plugin to Mattermost v5.30.1 from the Plugin Management window in the app. When enabling, the Mattermost UI reports "This plugin failed to start. Check your system logs for errors.".Mattermost logs from
mattermost/logs/mattermost.log
reportPlugin compiled on Arch Linux with Go version 1.15.6. Mattermost running on Centos 8.
Compilation output