Mattermost, Inc.

Received invalid response from the server

Hi
I recently uploaded the lastest team edition stock std. ( mattermost-team-5.17.0-linux-amd64.tar.gz ) instance in my digitalocean droplet.

Now I am trying to upload the plugins as per the user guide, it gives me the following error:
Received invalid response from the server as per the picture below:

Screenshot%20from%202019-11-21%2014-56-25

Also these are my server logs:
server/cmd/mattermost/main.go:30\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}
{“level”:“error”,“ts”:1574323141.9060044,“caller”:“mlog/log.go:174”,“msg”:“Unable to activate plugin”,“plugin_id”:“zoom”,“error”:“unable to start plugin: zoom: APIKey is not configured”,“errorVerbose”:“APIKey is not configured\nunable to start plugin: zoom\ngithub.com/mattermost/mattermost-server/plugin.(*Environment).Activate\n\t/go/src/github.com/mattermost/mattermost-server/plugin/environment.go:251\ngithub.com/mattermost/mattermost-server/app.(*App).SyncPluginsActiveState\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:100\ngithub.com/mattermost/mattermost-server/app.(*App).InitPlugins\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:133\ngithub.com/mattermost/mattermost-server/app.(*Server).RunOldAppInitalization.func6\n\t/go/src/github.com/mattermost/mattermost-server/app/server_app_adapters.go:148\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners.func1\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:35\nsync.(*Map).Range\n\t/usr/local/go/src/sync/map.go:333\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/config.(*commonStore).load\n\t/go/src/github.com/mattermost/mattermost-server/config/common.go:153\ngithub.com/mattermost/mattermost-server/config.(*FileStore).Load\n\t/go/src/github.com/mattermost/mattermost-server/config/file.go:168\ngithub.com/mattermost/mattermost-server/app.(*Server).ReloadConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:64\ngithub.com/mattermost/mattermost-server/app.NewServer\n\t/go/src/github.com/mattermost/mattermost-server/app/server.go:239\ngithub.com/mattermost/mattermost-server/cmd/mattermost/commands.runServer\n\t/go/src/github.com/mattermost/mattermost-server/cmd/mattermost/commands/server.go:64\ngithub.com/mattermost/mattermost-server/cmd/mattermost/commands.serverCmdF\n\t/go/src/github.com/mattermost/mattermost-server/cmd/mattermost/commands/server.go:53\ngithub.com/spf13/cobra.(*Command).execute\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:826\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:914\ngithub.com/spf13/cobra.(*Command).Execute\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/spf13/cobra/command.go:864\ngithub.com/mattermost/mattermost-server/cmd/mattermost/commands.Run\n\t/go/src/github.com/mattermost/mattermost-server/cmd/mattermost/commands/root.go:15\nmain.main\n\t/go/src/github.com/mattermost/mattermost-server/cmd/mattermost/main.go:30\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337”}
{“level”:“info”,“ts”:1574323141.9099915,“caller”:“jobs/workers.go:68”,“msg”:“Starting workers”}
{“level”:“info”,“ts”:1574323141.9101877,“caller”:“app/server.go:423”,“msg”:“Starting Server…”}
{“level”:“info”,“ts”:1574323141.9103024,“caller”:“app/server.go:449”,“msg”:“RateLimiter is enabled”}
{“level”:“info”,“ts”:1574323141.9105816,“caller”:“app/server.go:489”,“msg”:“Server is listening on [::]:8065”}
{“level”:“info”,“ts”:1574323141.9175713,“caller”:“app/web_hub.go:75”,“msg”:“Starting 2 websocket hubs”}
{“level”:“info”,“ts”:1574323141.9372303,“caller”:“jobs/schedulers.go:72”,“msg”:“Starting schedulers.”}
{“level”:“info”,“ts”:1574323141.9584763,“caller”:“commands/server.go:105”,“msg”:“Sending systemd READY notification.”}

Can anyone help me resolve this issue please.

For more information:
I uploaded the same in my localhost it worked without any problem.

Thanking you in advance

@gg_admin The latest droplet version is 5.16.3, can you confirm this is what you are using: https://marketplace.digitalocean.com/apps/mattermost?

Hi, No I am not using this. I am using standard Ubuntu 18.04 droplet and installed Team edition MM using the official documentation.

Which plugin were you attempting to upload?

I was trying to upload following 2 plugins which works perfectly in my local machine:
com.mattermost.voice-0.1.1.tar.gz
bigbluebutton.tar.gz
Apart from when I was trying to enable following plugins I was getting
" This plugin failed to start. Check your system logs for errors"
AWS SNS
Github
Zoom
Thanking you in advance!

You should check the max upload limits on your web proxy backend. Do you use nginx? What is the max file upload in nginx config?

1 Like

Hi, @gg_admin !

So, the error that you are getting from your log when you are trying to activate the plugin is due to the fact that the Zoom plugin is not configured properly. If you are using Zoom’s vendor-hosted SaaS service, you need to ensure that at least the following is configured:

  • API Key
  • API Secret
  • Webhook Secret

For example:

Once it is saved, you should be able to enable the plugin:

In regards to the Received invalid response from the server error, I was wondering if you could just utilize the pre-packaged plugins instead of uploading them. Can we please check the ownership of the plugins and prepackaged_plugins? (Ensure that you run as a root user).

ahmaddanial@mattermost:~$ sudo su
root@mattermost:/home# ls -lAh /opt/mattermost/plugins/ /opt/mattermost/prepackaged_plugins/
/opt/mattermost/plugins/:
total 44K
drwxr--r-- 3 mattermost mattermost 4.0K Dec  2 05:47 antivirus
drwxr--r-- 5 mattermost mattermost 4.0K Dec  2 05:47 com.github.manland.mattermost-plugin-gitlab
drwxr--r-- 3 mattermost mattermost 4.0K Dec  2 05:47 com.mattermost.aws-sns
drwxr--r-- 4 mattermost mattermost 4.0K Dec  2 05:47 com.mattermost.custom-attributes
drwxr--r-- 5 mattermost mattermost 4.0K Dec  2 05:47 com.mattermost.nps
drwxr--r-- 3 mattermost mattermost 4.0K Dec  2 05:47 com.mattermost.welcomebot
drwxr--r-- 5 mattermost mattermost 4.0K Dec  2 05:47 github
drwxr--r-- 4 mattermost mattermost 4.0K Dec  2 05:47 jenkins
drwxr--r-- 5 mattermost mattermost 4.0K Dec  2 05:47 jira
drwxr--r-- 3 mattermost mattermost 4.0K Dec  2 05:47 mattermost-autolink
drwxr--r-- 5 mattermost mattermost 4.0K Dec  2 05:47 zoom

/opt/mattermost/prepackaged_plugins/:
total 99M
-rw-rw-r-- 1 mattermost mattermost 8.6M Nov 16 01:07 mattermost-plugin-antivirus-v0.1.1.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.6M Nov 16 01:06 mattermost-plugin-autolink-v1.1.1.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.8M Nov 16 01:06 mattermost-plugin-aws-SNS-v1.0.2.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.9M Nov 16 01:06 mattermost-plugin-custom-attributes-v1.0.2.tar.gz
-rw-rw-r-- 1 mattermost mattermost 9.7M Nov 16 01:06 mattermost-plugin-github-v0.11.0.tar.gz
-rw-rw-r-- 1 mattermost mattermost 9.4M Nov 16 01:07 mattermost-plugin-gitlab-v1.0.1.tar.gz
-rw-rw-r-- 1 mattermost mattermost 9.0M Nov 16 01:07 mattermost-plugin-jenkins-v1.0.0.tar.gz
-rw-rw-r-- 1 mattermost mattermost 9.7M Nov 16 01:07 mattermost-plugin-jira-v2.2.2.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.7M Nov 16 01:06 mattermost-plugin-nps-v1.0.3.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.6M Nov 16 01:06 mattermost-plugin-welcomebot-v1.1.1.tar.gz
-rw-rw-r-- 1 mattermost mattermost 8.8M Nov 16 01:06 mattermost-plugin-zoom-v1.1.2.tar.gz
1 Like