Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Warning: /etc/service/logstash_default: unable to open supervise/ok: file does not exist #419

Open
pietervogelaar opened this issue Jul 5, 2015 · 1 comment

Comments

@pietervogelaar
Copy link

The initial converge on CentOS 7, causes chef-client to fail because of this error:

[2015-07-05T18:19:04+00:00] ERROR: logstash_service[default] (common::logstash line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: runit_service[logstash_default] (/tmp/kitchen/cache/cookbooks/logstash/providers/service.rb line 226) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
       ---- Begin output of /sbin/sv force-reload /etc/service/logstash_default ----
       STDOUT: warning: /etc/service/logstash_default: unable to open supervise/ok: file does not exist
       STDERR:
       ---- End output of /sbin/sv force-reload /etc/service/logstash_default ----
       Ran /sbin/sv force-reload /etc/service/logstash_default returned 1
       [2015-07-05T18:19:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

The second time and times after that, the converge is without any problems.

My recipe:

instance_name = 'default'

# Install Logstash
logstash_instance instance_name do
end

# Create Logstash service
logstash_service instance_name do
end

Attributes in my wrapper cookbook:

default['logstash']['instance_default']['version']        = '1.5.1'
default['logstash']['instance_default']['source_url']     = 'https://download.elasticsearch.org/logstash/logstash/logstash-1.5.1.tar.gz'
default['logstash']['instance_default']['checksum']       = 'a12f91bc87f6cd8f1b481c9e9d0370a650b2c36fdc6a656785ef883cb1002894'
default['logstash']['instance_default']['install_type']   = 'tarball'

default['logstash']['instance_default']['plugins_version']        = '1.4.3'
default['logstash']['instance_default']['plugins_source_url']     = 'https://download.elasticsearch.org/logstash/logstash/logstash-contrib-1.4.3.tar.gz'
default['logstash']['instance_default']['plugins_checksum']       = '626a60a1f53ea302c7c6a26d10c4f7f20cbf45a00be52aaebd82da6dd4d94987'
default['logstash']['instance_default']['plugins_install_type']   = 'tarball'
default['logstash']['instance_default']['plugins_check_if_installed'] = 'lib/logstash/filters/translate.rb'

# Logstash start memory usage
default['logstash']['instance_default']['xms'] = "64M"

# Logstash max memory usage
default['logstash']['instance_default']['xmx'] = "64M"

How can I fix this error?

@fishnix
Copy link

fishnix commented Sep 1, 2015

This is an issue with the runit cookbook, see here chef-cookbooks/runit#142

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants