We're Hiring!

Mattermost, Inc.

Can't upload plugin after editing config.json

I followed a forum post stating you have to edit config.json to allow uploading of plugins, but even after doing that and restarting the server, I still do not have the option to upload plugins. Is this potentially a bug?

`root@xxxxx:~# cat /opt/mattermost/config/config.json | grep -A6 "PluginSettings"
  "PluginSettings": {
    "Enable": true,
    "EnableUploads": true,
    "AllowInsecureDownloadUrl": false,
    "EnableHealthCheck": true,
    "Directory": "./plugins",
    "ClientDirectory": "./client/plugins",

root@xxxxx:~# ls -lAh /opt/mattermost/
total 280K
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 04:48 bin
drwxr-xr-x 7 mattermost mattermost 4.0K Jan 13 04:55 client
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 07:57 config
-rw-r--r-- 1 mattermost mattermost 2.1K Dec 18 14:52 ENTERPRISE-EDITION-LICENSE.txt
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 04:48 fonts
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 04:48 i18n
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 05:21 logs
-rw-r--r-- 1 mattermost mattermost  898 Dec 18 14:52 manifest.txt
drwxr-xr-x 4 mattermost mattermost 4.0K Jan 13 04:48 mmomni
-rw-r--r-- 1 mattermost mattermost 224K Dec 18 14:52 NOTICE.txt
drwxr--r-- 5 mattermost mattermost 4.0K Jan 13 05:12 plugins
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 04:48 prepackaged_plugins
-rw-r--r-- 1 mattermost mattermost 6.2K Dec 18 14:52 README.md
drwxr-xr-x 2 mattermost mattermost 4.0K Jan 13 04:48 templates`
1 Like

Hello @skarz I do think this may be a permissions issue with the file system itself. I noticed that while

shows that it has the x which indicates it is executable, the directory

seems to be missing this property, which is important given the languages Mattermost is developed in require to be executed on the hosting server in order to properly function. I’m not 100% sure this is the entire issue, but it may as well be a good place to start!

Hey I found out the issue. I installed Mattermost with mattermost-omnibus and I found a section of the documentation that states this:

For Omnibus to work properly, there are some configuration parameters that are fixed and cannot be changed through the web interface - for example, the port that Mattermost uses to run. Other parameters need to be configured directly in the mmomni.yml file instead of in the Mattermost web interface or the config.json file.

Issue resolved!

2 Likes

That’s great, I’m glad to hear that!