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
{{ message }}
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.
Hello!
While trying to use the cookbook I faced the following error in a Ubuntu 14.04:
Recipe: consul::default
* consul_service[consul] action restart
* poise_service[consul] action restart
* service[consul] action stop (up to date)
* service[consul] action start
================================================================================
Error executing action `start` on resource 'service[consul]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /sbin/start consul ----
STDOUT:
STDERR: start: Unknown job: consul
---- End output of /sbin/start consul ----
Ran /sbin/start consul returned 1
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:75:in `block in action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:136:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:74:in `action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/upstart.rb:53:in `action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:125:in `block in action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:154:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:124:in `action_restart'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/consul/recipes/default.rb
53: consul_service service_name do |r|
54: version node['consul']['version']
55: config_file config.path
56: program install.consul_program
57:
58: unless windows?
59: user node['consul']['service_user']
60: group node['consul']['service_group']
61: end
62: if node['consul']['service']
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/consul/recipes/default.rb:53:in `from_file'
service("consul") do
provider Chef::Provider::Service::Upstart
action [:nothing]
default_guard_interpreter :default
service_name "consul"
enabled false
running false
masked nil
pattern "consul"
declared_type :service
supports {:status=>true, :restart=>true, :reload=>true}
end
System Info:
------------
chef_version=13.2.20
platform=ubuntu
platform_version=14.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=18295;start=19:14:49;
executable=/opt/chef/bin/chef-client
================================================================================
Error executing action `restart` on resource 'poise_service[consul]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
service[consul] (/var/chef/cache/cookbooks/consul/recipes/default.rb line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /sbin/start consul ----
STDOUT:
STDERR: start: Unknown job: consul
---- End output of /sbin/start consul ----
Ran /sbin/start consul returned 1
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:75:in `block in action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:136:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:74:in `action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/upstart.rb:53:in `action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:125:in `block in action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:154:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:124:in `action_restart'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/consul/recipes/default.rb
53: consul_service service_name do |r|
54: version node['consul']['version']
55: config_file config.path
56: program install.consul_program
57:
58: unless windows?
59: user node['consul']['service_user']
60: group node['consul']['service_group']
61: end
62: if node['consul']['service']
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/consul/recipes/default.rb:53:in `from_file'
poise_service("consul") do
action [:enable]
default_guard_interpreter :default
declared_type :poise_service
service_name "consul"
command "/opt/consul/0.7.1/consul agent -config-file=/etc/consul/consul.json -config-dir=/etc/consul/conf.d"
directory "/var/lib/consul"
user "consul"
environment {"GOMAXPROCS"=>"2", "PATH"=>"/usr/local/bin:/usr/bin:/bin"}
options_systemd {"template"=>"consul:systemd.service.erb"}
options_sysvinit {"template"=>"consul:sysvinit.service.erb"}
options_upstart {"template"=>"consul:upstart.service.erb", "executable"=>"/opt/consul/0.7.1/consul"}
end
System Info:
------------
chef_version=13.2.20
platform=ubuntu
platform_version=14.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=18295;start=19:14:49;
executable=/opt/chef/bin/chef-client
================================================================================
Error executing action `restart` on resource 'consul_service[consul]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
poise_service[consul] (/var/chef/cache/cookbooks/consul/recipes/default.rb line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: service[consul] (/var/chef/cache/cookbooks/consul/recipes/default.rb line 53) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /sbin/start consul ----
STDOUT:
STDERR: start: Unknown job: consul
---- End output of /sbin/start consul ----
Ran /sbin/start consul returned 1
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:75:in `block in action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:136:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/base.rb:74:in `action_start'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_providers/upstart.rb:53:in `action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:125:in `block in action_restart'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:154:in `notify_if_service'
/var/chef/cache/cookbooks/poise-service/files/halite_gem/poise_service/service_mixin.rb:124:in `action_restart'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/consul/recipes/default.rb
53: consul_service service_name do |r|
54: version node['consul']['version']
55: config_file config.path
56: program install.consul_program
57:
58: unless windows?
59: user node['consul']['service_user']
60: group node['consul']['service_group']
61: end
62: if node['consul']['service']
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/consul/recipes/default.rb:53:in `from_file'
consul_service("consul") do
action [:enable]
default_guard_interpreter :default
declared_type :consul_service
cookbook_name "consul"
recipe_name "default"
config_file "/etc/consul/consul.json"
program "/opt/consul/0.7.1/consul"
user "consul"
group "consul"
config_dir "/etc/consul/conf.d"
nssm_params {"AppDirectory"=>"/var/lib/consul", "AppStdout"=>"/etc/consul/stdout.log", "AppStderr"=>"/etc/consul/error.log", "AppRotateFiles"=>1, "AppRotateOnline"=>1, "AppRotateBytes"=>20000000}
service_name "consul"
data_dir "/var/lib/consul"
environment {"GOMAXPROCS"=>"2", "PATH"=>"/usr/local/bin:/usr/bin:/bin"}
end
System Info:
------------
chef_version=13.2.20
platform=ubuntu
platform_version=14.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=18295;start=19:14:49;
executable=/opt/chef/bin/chef-client
Running handlers:
[2017-08-23T19:15:00+00:00] ERROR: Running exception handlers
Running handlers complete
[2017-08-23T19:15:00+00:00] ERROR: Exception handlers complete
Chef Client failed. 6 resources updated in 11 seconds
[2017-08-23T19:15:01+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-08-23T19:15:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-08-23T19:15:01+00:00] ERROR: Chef::Exceptions::MultipleFailures
[2017-08-23T19:15:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Is there something I'm missing to do?
Tks in advance for any help!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
While trying to use the cookbook I faced the following error in a Ubuntu 14.04:
Is there something I'm missing to do?
Tks in advance for any help!
The text was updated successfully, but these errors were encountered: