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
I looks like the plugin command does not work if the elasticsearch folder is owned by root (which is the default).
* service[elasticsearch] action nothing (skipped due to action :nothing)
* elasticsearch_plugin[mobz/elasticsearch-head] action install[2015-10-06T11:53:32+00:00] WARN: Class Chef::Provider::ElasticsearchPlugin does not declare 'resource_name :elasticsearch_plugin'.
[2015-10-06T11:53:32+00:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL.
================================================================================
Error executing action `install` on resource 'elasticsearch_plugin[mobz/elasticsearch-head]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '74'
---- Begin output of ["/usr/local/bin/plugin", "-install", "mobz/elasticsearch-head"] ----
STDOUT: -> Installing mobz/elasticsearch-head...
Failed to install mobz/elasticsearch-head, reason: plugin directory /usr/local/elasticsearch-1.7.2/plugins is read only
STDERR:
---- End output of ["/usr/local/bin/plugin", "-install", "mobz/elasticsearch-head"] ----
Ran ["/usr/local/bin/plugin", "-install", "mobz/elasticsearch-head"] returned 74
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/elasticsearch/libraries/provider_plugin.rb:26:in `block (2 levels) in <class:ElasticsearchPlugin>'
/tmp/kitchen/cache/cookbooks/elasticsearch/libraries/provider_plugin.rb:14:in `block in <class:ElasticsearchPlugin>'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/asy-graylog2/recipes/elasticsearch.rb
39: elasticsearch_plugin 'mobz/elasticsearch-head'
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/asy-graylog2/recipes/elasticsearch.rb:39:in `from_file'
elasticsearch_plugin("mobz/elasticsearch-head") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :elasticsearch_plugin
cookbook_name "asy-graylog2"
recipe_name "elasticsearch"
plugin_name "mobz/elasticsearch-head"
plugin_dir "/usr/local/elasticsearch/plugins"
bindir "/usr/local/bin"
user "elasticsearch"
group "elasticsearch"
The text was updated successfully, but these errors were encountered:
Hi -- we're actually testing this very thing in our test suites, and we're passing correct the user and group to the Chef resource which extracts the files.
Could you tell me if you're using the latest version? I know there was some issues with this previously, that have been fixed for at least a few weeks now.
Hi @runningman84 and @erulabs -- could you try the 2.0.0_wip branch of this cookbook? It should have some fixes for the installation issue; it's our goal to release a 2.0.0 version that works with ES 2.0.0. It does have some changes from the current version, but depending on how complex your resource usage is, you may or may not be affected. Thanks!
I looks like the plugin command does not work if the elasticsearch folder is owned by root (which is the default).
The text was updated successfully, but these errors were encountered: