anuriq / chef-kibana5

Chef cookbook for installing Kibana 5.x.x
https://supermarket.chef.io/cookbooks/kibana5
Apache License 2.0
5 stars 15 forks source link

kibana5 and ark > 2.2.1 #14

Closed 1971hemicuda closed 7 years ago

1971hemicuda commented 7 years ago

We had ark=v3.1.0 installed on our chef server. When running chef-client we would always receive the error below.

We had to down grade to ark=v2.2.1 and now this installs. Might want to check it out

Recipe: kibana5::default

[2017-06-19T08:54:18-05:00] INFO: Running queued delayed notifications before re-raising exception

================================================================================
Error executing action `install` on resource 'kibana5_install[kibana]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
user[kibana] (/var/chef/cache/cookbooks/kibana5/resources/install.rb line 43) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
STDOUT: 
STDERR: usermod: user kibana is currently used by process 29479
---- End output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
Ran ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] returned 8

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/kibana5/recipes/default.rb

 19: kibana5_install 'kibana'
 20: 

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/kibana5/recipes/default.rb:19:in `from_file'

kibana5_install("kibana") do
  action [:install]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :kibana5_install
  cookbook_name "kibana5"
  recipe_name "default"
  version "5.4.1"
  install_method "release"
  base_dir "/opt/kibana"
  svc_group "kibana"
  svc_user "kibana"
end
anuriq commented 7 years ago

Hi @1971hemicuda I don't see how this is connected to ark cookbook. Maybe you were using older version of kibana cookbook, and home folder for user was changed?

anuriq commented 7 years ago

Hi @1971hemicuda any news there?