Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing shield and watcher plugins fail with AccessDeniedException #421

Closed
opsline-radek opened this issue Jan 6, 2016 · 4 comments
Closed
Labels
Bug Something isn't working

Comments

@opsline-radek
Copy link

Installing shield and watcher plugins cause AccessDeniedException as the installer tries to move /usr/share/elasticsearch/plugins/shield/bin into /usr/share/elasticsearch/bin/shield directory. ES files are owned by root and the plugin installation is running as ES user.

ES version: 2.1
OS: CentOS
install type: package

Shouldn't plugins be installed as root as well?

@martinb3
Copy link
Contributor

martinb3 commented Jan 8, 2016

Thank you for reporting this @opsline-radek. It depends on how ES was installed:

Running as root
If Elasticsearch was installed using the deb or rpm package then run bin/plugin as root so it can write to the appropriate files on disk. Otherwise run bin/plugin as the user that owns all of the Elasticsearch files.

via https://www.elastic.co/guide/en/elasticsearch/plugins/2.1/plugin-management.html.

@martinb3 martinb3 added the Bug Something isn't working label Jan 8, 2016
@opsline-radek
Copy link
Author

The point is that there is no option to install plugins as root.

@martinb3
Copy link
Contributor

martinb3 commented Jan 8, 2016

I agree, and I've labeled it as a bug. I've got a working fix but I'm doing more testing before I will push the fixes; please bear with us.

@martinb3
Copy link
Contributor

martinb3 commented Jan 8, 2016

I've added some tests for shield and watcher, as well. This should fix the issue, and I plan to do a release today. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants