Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Error enabling zoom plugin: permission denied #328

Closed
bijairimi opened this issue Oct 17, 2018 · 5 comments · Fixed by #331
Closed

Error enabling zoom plugin: permission denied #328

bijairimi opened this issue Oct 17, 2018 · 5 comments · Fixed by #331
Assignees

Comments

@bijairimi
Copy link

Hi,

Recently I keep getting this error msg:

{"level":"error","ts":1539753843.0888493,"caller":"app/plugin.go:70","msg":"Unable to activate plugin","plugin_id":"zoom","error":"unable to copy webapp bundle directory: zoom: mkdir client/plugins/zoom: permission denied","errorVerbose":"mkdir client/plugins/zoom: permission denied\nunable to copy webapp bundle directory: zoom\ngithub.com/mattermost/mattermost-server/plugin.(*Environment).Activate\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/plugin/environment.go:184\ngithub.com/mattermost/mattermost-server/app.(*App).SyncPluginsActiveState\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/plugin.go:68\ngithub.com/mattermost/mattermost-server/app.(*App).InitPlugins\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/plugin.go:96\ngithub.com/mattermost/mattermost-server/cmd/mattermost/commands.runServer.func1\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/cmd/mattermost/commands/server.go:105\ngithub.com/mattermost/mattermost-server/app.(*App).InvokeConfigListeners\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/config.go:138\ngithub.com/mattermost/mattermost-server/app.(*App).UpdateConfig\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/config.go:50\ngithub.com/mattermost/mattermost-server/app.(*App).EnablePlugin\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/app/plugin.go:206\ngithub.com/mattermost/mattermost-server/api4.enablePlugin\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/api4/plugin.go:183\ngithub.com/mattermost/mattermost-server/web.Handler.ServeHTTP\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/web/handlers.go:131\ngithub.com/mattermost/mattermost-server/web.(*Handler).ServeHTTP\n\t<autogenerated>:1\ngithub.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux.(*Router).ServeHTTP\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux/mux.go:162\ngithub.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers.recoveryHandler.ServeHTTP\n\t/home/ubuntu/jenkins/workspace/msr/mattermost-platform-release/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers/recovery.go:78\ngithub.com/mattermost/mattermost-server/vendor/github.com/gorilla/handlers.(*recoveryHandler).ServeHTTP\n\t<autogenerated>:1\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2741\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1847\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1333"}

The dir ./volumes/app/mattermost/plugins/zoom/ and all subdirs have 2000:2000 ownership.

@pichouk
Copy link
Contributor

pichouk commented Oct 17, 2018

I don't know why but it seems that your Mattermost container is not using the /mattermost/plugins folder for plugins, but the /mattermost/client/plugins one.

I don't know the difference between PluginSettings.Directory and PluginSettings.ClientDirectory parameters inside the configuration file. Should ask to someone that know Mattermost better to understand why there is 2 different folders.

@cpanato
Copy link
Contributor

cpanato commented Oct 17, 2018

i will take a look on this one.

@cpanato
Copy link
Contributor

cpanato commented Oct 19, 2018

the issue was I forgot to set the owners for the plugin folder, sorry about that

this PR fixes that: #331

@bijairimi
Copy link
Author

@cpanato thanks for the fix!

@pichouk
Copy link
Contributor

pichouk commented Oct 19, 2018

Perfect, thanks @cpanato :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants