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
1:
2: class Chef
3: # Chef Resource for configuring an Elasticsearch node
4: #
5: class Resource::ElasticsearchConfigure < Chef::Resource::LWRPBase
6>> resource_name :elasticsearch_configure if respond_to?(:resource_name)
7:
8: actions(:manage, :remove)
9: default_action :manage
10:
11: # if you override one of these, you should probably override them all
12: attribute(:dir, kind_of: String, default: '/usr/local') # creates /usr/local/elasticsearch
13: attribute(:path_conf, kind_of: String, default: nil) # default "/usr/local/etc/elasticsearch"
14: attribute(:path_data, kind_of: String, default: nil) # default "/usr/local/var/data/elasticsearch"
15: attribute(:path_logs, kind_of: String, default: nil) # default "/usr/local/var/log/elasticsearch"
[2015-10-29T12:55:11-04:00] ERROR: Running exception handlers
[2015-10-29T12:55:11-04:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2015-10-29T12:55:11-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-10-29T12:55:11-04:00] FATAL: ArgumentError: wrong number of arguments (1 for 0)
ERROR: RuntimeError: chef-solo failed. See output above.
Below is content of /var/chef/cache/chef-stacktrace.out
Generated at 2015-10-29 12:55:11 -0400
ArgumentError: wrong number of arguments (1 for 0)
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.2/lib/chef/resource/lwrp_base.rb:69:in resource_name' /home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:6:inclass:ElasticsearchConfigure'
/home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:5:in <class:Chef>' /home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:2:in<top (required)>'
The text was updated successfully, but these errors were encountered:
Hi,
I am getting below errors. I tried with chef-client version 12.4.1, 12.4.3, 12.5.x. But there is same problem.
Relevant File Content:
/home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:
1:
2: class Chef
3: # Chef Resource for configuring an Elasticsearch node
4: #
5: class Resource::ElasticsearchConfigure < Chef::Resource::LWRPBase
6>> resource_name :elasticsearch_configure if respond_to?(:resource_name)
7:
8: actions(:manage, :remove)
9: default_action :manage
10:
11: # if you override one of these, you should probably override them all
12: attribute(:dir, kind_of: String, default: '/usr/local') # creates /usr/local/elasticsearch
13: attribute(:path_conf, kind_of: String, default: nil) # default "/usr/local/etc/elasticsearch"
14: attribute(:path_data, kind_of: String, default: nil) # default "/usr/local/var/data/elasticsearch"
15: attribute(:path_logs, kind_of: String, default: nil) # default "/usr/local/var/log/elasticsearch"
[2015-10-29T12:55:11-04:00] ERROR: Running exception handlers
[2015-10-29T12:55:11-04:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated
[2015-10-29T12:55:11-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-10-29T12:55:11-04:00] FATAL: ArgumentError: wrong number of arguments (1 for 0)
ERROR: RuntimeError: chef-solo failed. See output above.
Below is content of /var/chef/cache/chef-stacktrace.out
Generated at 2015-10-29 12:55:11 -0400
ArgumentError: wrong number of arguments (1 for 0)
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.2/lib/chef/resource/lwrp_base.rb:69:in
resource_name' /home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:6:in
class:ElasticsearchConfigure'/home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:5:in
<class:Chef>' /home/deploy/chef-solo/cookbooks-3/elasticsearch/libraries/resource_configure.rb:2:in
<top (required)>'The text was updated successfully, but these errors were encountered: