Mattermost, Inc.

Upload plugin to mattermost-docker from Windows failed

Hi Mattermost team!
I have tried to upload the Jitsi plugin from my local computer to mattermost-docker https://github.com/mattermost/mattermost-docker by using https://github.com/mattermost/mattermost-plugin-api
There are 2 cases happen:

  • Upload from Mac: successful
  • Upload from Windows: failed with the error

“error”:“unable to start plugin: jitsi: fork/exec /mattermost/plugins/jitsi/server/dist/plugin-linux-amd64: permission denied”,“errorVerbose”:"fork/exec /mattermost/plugins/jitsi/server/dist/plugin-linux-amd64: permission denied

Any suggestion for uploading a plugin from Windows, please!

I have got the same problem :frowning:

Hi, @ledaiduongvnth @huy-lv

Can you please confirm if you tried to upload the plugin via System Console, Marketplace, or via CLI?

Can you also check what is the directory permission of /opt/mattermost/plugins? For example:

root@mattermost# ls -lAh /opt/mattermost/plugins/ /opt/mattermost/prepackaged_plugins/
/opt/mattermost/plugins/:
total 4.0K
drwxr--r-- 5 mattermost mattermost 4.0K Jul  6 00:00 com.mattermost.nps

/opt/mattermost/prepackaged_plugins/:
total 100M
-rw-rw-r-- 1 mattermost mattermost 8.7M Jun 19 22:29 mattermost-plugin-antivirus-v0.1.2-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-antivirus-v0.1.2-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.7M Jun 19 22:29 mattermost-plugin-autolink-v1.1.2-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-autolink-v1.1.2-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.8M Jun 19 22:29 mattermost-plugin-aws-SNS-v1.0.2-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-aws-SNS-v1.0.2-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.8M Jun 19 22:29 mattermost-plugin-custom-attributes-v1.2.0-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-custom-attributes-v1.2.0-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 9.9M Jun 19 22:29 mattermost-plugin-github-v0.14.0-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-github-v0.14.0-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 9.5M Jun 19 22:29 mattermost-plugin-gitlab-v1.1.0-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-gitlab-v1.1.0-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 9.0M Jun 19 22:29 mattermost-plugin-jenkins-v1.0.0-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-jenkins-v1.0.0-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost  10M Jun 19 22:29 mattermost-plugin-jira-v2.3.2-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-jira-v2.3.2-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.9M Jun 19 22:29 mattermost-plugin-nps-v1.0.4-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-nps-v1.0.4-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.6M Jun 19 22:29 mattermost-plugin-welcomebot-v1.1.1-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-welcomebot-v1.1.1-linux-amd64.tar.gz.sig
-rw-rw-r-- 1 mattermost mattermost 8.9M Jun 19 22:29 mattermost-plugin-zoom-v1.3.1-linux-amd64.tar.gz
-rw-rw-r-- 1 mattermost mattermost  566 Jun 19 22:29 mattermost-plugin-zoom-v1.3.1-linux-amd64.tar.gz.sig