sous-chefs / chef-splunk

Development repository for the chef-splunk cookbook
https://supermarket.chef.io/cookbooks/chef-splunk
Apache License 2.0
75 stars 122 forks source link

Systemd doesn't recognize Splunkd.service on upgrade #223

Closed tjohnson-disney closed 12 months ago

tjohnson-disney commented 1 year ago

:ghost: Brief Description

We are using the cookbook to upgrade to 9.0.3. Upon trying to start Splunk after upgrade we are getting this error:

STDERR: Failed to start Splunkd.service: Unit Splunkd.service not found.
---- End output of ["/usr/bin/systemctl", "--system", "start", "Splunkd"] ----
Ran ["/usr/bin/systemctl", "--system", "start", "Splunkd"] returned 5
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: service[splunk] (chef-splunk::service line 103) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '5'
---- Begin output of ["/usr/bin/systemctl", "--system", "start", "Splunkd"] ----

:pancakes: Cookbook version

9.2.0

:woman_cook: Chef-Infra Version

17.10.0

:tophat: Platform details

RHEL8, cinc-client running on an AWS EC2

Steps To Reproduce

Steps to reproduce the behavior:

  1. Direct chef to upgrade from 8.2.4 to 9.0.3.
  2. Run cinc-client on a node
  3. cinc-client finishes in error. Error is fixed by running sudo systemctl daemon-reload and re-running cinc-client

:police_car: Expected behavior

cinc-client is able to start Splunk successfully after upgrade

:heavy_plus_sign: Additional context