You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like we have a permissions problem when installing plugins (such as Shield and Watcher) which have their own binaries and try to copy them to a different location, an error looks like this:
ERROR: Could not move [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher]
I'm wondering what we can actually do here? Should we ensure that the directory has the same user:group as defined in es_user.username and es_user.groupname?
I can see that we're discussing a similar issue in #405.
Full output from the Chef run:
* elasticsearch_plugin[watcher] action install
================================================================================
Error executing action `install` on resource 'elasticsearch_plugin[watcher]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '74'
---- Begin output of ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] ----
STDOUT: -> Installing watcher...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/watcher/2.1.0/watcher-2.1.0.zip ...
Downloading ..................................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/watcher/2.1.0/watcher-2.1.0.zip checksums if available ...
Downloading .DONE
Installed watcher into /usr/share/elasticsearch/plugins/watcher
ERROR: Error copying bin directory [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher], cleaning up, reason: IOException[Could not move [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher]]; nested: AccessDeniedException[/usr/share/elasticsearch/plugins/watcher/bin -> /usr/share/elasticsearch/bin/watcher];
ERROR: Could not move [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher]
STDERR:
---- End output of ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] ----
Ran ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] returned 74
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/elasticsearch/libraries/provider_plugin.rb:43:in `block in <class:PluginProvider>'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/elasticsearch-chef/recipes/msp-lab.rb
60: elasticsearch_plugin 'watcher' do
61: action :install
62: end
63:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/elasticsearch-chef/recipes/msp-lab.rb:60:in `from_file'
elasticsearch_plugin("watcher") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :elasticsearch_plugin
cookbook_name "elasticsearch-chef"
recipe_name "msp-lab"
plugin_name "watcher"
url "watcher"
end
Running handlers:
[2016-01-04T12:12:46-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-04T12:12:46-05:00] ERROR: Exception handlers complete
Chef Client failed. 1 resources updated in 14 seconds
[2016-01-04T12:12:47-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-01-04T12:12:47-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-01-04T12:12:47-05:00] ERROR: elasticsearch_plugin[watcher] (elasticsearch-chef::msp-lab line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '74'
---- Begin output of ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] ----
STDOUT: -> Installing watcher...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/watcher/2.1.0/watcher-2.1.0.zip ...
Downloading ..................................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/watcher/2.1.0/watcher-2.1.0.zip checksums if available ...
Downloading .DONE
Installed watcher into /usr/share/elasticsearch/plugins/watcher
ERROR: Error copying bin directory [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher], cleaning up, reason: IOException[Could not move [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher]]; nested: AccessDeniedException[/usr/share/elasticsearch/plugins/watcher/bin -> /usr/share/elasticsearch/bin/watcher];
ERROR: Could not move [/usr/share/elasticsearch/plugins/watcher/bin] to [/usr/share/elasticsearch/bin/watcher]
STDERR:
---- End output of ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] ----
Ran ["/usr/share/elasticsearch/bin/plugin", "install", "watcher"] returned 74
[2016-01-04T12:12:47-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
UPDATE: I'm asking the original reporter to provide a Chef version and the cookbook version.
The text was updated successfully, but these errors were encountered:
It seems like we have a permissions problem when installing plugins (such as Shield and Watcher) which have their own binaries and try to copy them to a different location, an error looks like this:
I'm wondering what we can actually do here? Should we ensure that the directory has the same user:group as defined in
es_user.username
andes_user.groupname
?I can see that we're discussing a similar issue in #405.
Full output from the Chef run:
UPDATE: I'm asking the original reporter to provide a Chef version and the cookbook version.
The text was updated successfully, but these errors were encountered: