The logstash_instance resource has a misconfiguration which breaks the installation when installing from source. The miscofiguration in in providers/instance.rb line 221
current: user ls_usercorrect: user ls[:user]
LoadError
logstash_instance[server] (beat_logstash::server line 11) had an error: NoMethodError: undefined method `ls_user' for Chef::Resource::Execute
Cookbook Trace
/var/chef/cache/cookbooks/logstash/providers/instance.rb:221:in `block (2 levels) in class_from_file'
Chef run output
==> logstash:
==> logstash:
==> logstash:
==> logstash: ================================================================================
==> logstash:
==> logstash: Error executing action 'create' on resource 'logstash_instance[server]'
==> logstash:
==> logstash: ================================================================================
==> logstash:
==> logstash:
==> logstash:
==> logstash:
==> logstash: NoMethodError
==> logstash: -------------
==> logstash: undefined method 'ls_user' for Chef::Resource::Execute
==> logstash:
==> logstash: Cookbook Trace:
==> logstash: ---------------
==> logstash: /var/chef/cache/cookbooks/logstash/providers/instance.rb:221:in 'block (2 levels) in class_from_file'
==> logstash: /var/chef/cache/cookbooks/logstash/providers/instance.rb:218:in 'block in class_from_file'
==> logstash:
==> logstash: Resource Declaration:
==> logstash: ---------------------
==> logstash: # In /var/chef/cache/cookbooks/beat_logstash/recipes/server.rb
==> logstash:
==> logstash: 11: logstash_instance name do
==> logstash: 12: install_type 'source'
==> logstash: 13: sha node['logstash']['instance']['server']['version']
==> logstash: 14: action :create
==> logstash: 15: end
==> logstash: 16:
==> logstash:
==> logstash: Compiled Resource:
==> logstash: ------------------
==> logstash: # Declared in /var/chef/cache/cookbooks/beat_logstash/recipes/server.rb:11:in 'from_file'
==> logstash:
==> logstash: logstash_instance("server") do
==> logstash: action [:create]
==> logstash: retries 0
==> logstash: retry_delay 2
==> logstash: default_guard_interpreter :default
==> logstash: declared_type :logstash_instance
==> logstash: cookbook_name "beat_logstash"
==> logstash: recipe_name "server"
==> logstash: install_type "source"
==> logstash: sha "5.6"
==> logstash: repo "git://github.com/logstash/logstash.git"
==> logstash: end
==> logstash:
==> logstash: Platform:
==> logstash: ---------
==> logstash: x86_64-linux
==> logstash:
==> logstash: [2018-06-07T11:56:33+00:00] INFO: Running queued delayed notifications before re-raising exception
==> logstash:
==> logstash: Running handlers:
==> logstash: [2018-06-07T11:56:33+00:00] ERROR: Running exception handlers
==> logstash: Running handlers complete
==> logstash: [2018-06-07T11:56:33+00:00] ERROR: Exception handlers complete
==> logstash: Chef Client failed. 0 resources updated in 23 seconds
==> logstash: [2018-06-07T11:56:33+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> logstash: [2018-06-07T11:56:33+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> logstash: [2018-06-07T11:56:33+00:00] ERROR: logstash_instance[server] (beat_logstash::server line 11) had an error: NoMethodError: undefined method 'ls_user' for Chef::Resource::Execute
==> logstash: [2018-06-07T11:56:33+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
The logstash_instance resource has a misconfiguration which breaks the installation when installing from source. The miscofiguration in in providers/instance.rb line 221
current: user ls_user
correct: user ls[:user]
LoadError
logstash_instance[server] (beat_logstash::server line 11) had an error: NoMethodError: undefined method `ls_user' for Chef::Resource::Execute
Cookbook Trace
/var/chef/cache/cookbooks/logstash/providers/instance.rb:221:in `block (2 levels) in class_from_file'
Chef run output
System info
Chef Development Kit Version: 2.4.17 chef-client version: 13.6.4 delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427) berks version: 6.3.1 kitchen version: 1.19.2 inspec version: 1.45.13