Created
June 11, 2015 18:51
-
-
Save kellyp/b3d7545d7c10cd354eb2 to your computer and use it in GitHub Desktop.
chef-server-ctl reconfigure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* execute[oc_id_schema] action run | |
================================================================================ | |
Error executing action `run` on resource 'execute[oc_id_schema]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '' | |
---- Begin output of bundle exec rake db:migrate ---- | |
STDOUT: | |
STDERR: no ruby in PATH/CONFIG | |
---- End output of bundle exec rake db:migrate ---- | |
Ran bundle exec rake db:migrate returned | |
Resource Declaration: | |
--------------------- | |
# In /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/oc_id.rb | |
130: execute "oc_id_schema" do | |
131: command "bundle exec rake db:migrate" | |
132: path ["/opt/opscode/embedded/bin"] | |
133: cwd "/opt/opscode/embedded/service/oc_id" | |
134: | |
135: # There are other recipes that depend on having a VERSION environment | |
136: # variable. If that environment variable is set when we run `rake db:migrate`, | |
137: # and it is set to something the migrations do not expect, this will | |
138: # break. | |
139: # | |
140: # We want to migrate to the latest version, which we can get by looking at the | |
141: # date prefix of the latest file in the db/migrate directory. | |
142: # | |
143: # Also set the RAILS_ENV as is needed. | |
144: environment("RAILS_ENV" => "production", | |
145: "VERSION" => `ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"`.chomp) | |
146: | |
147: only_if { is_data_master? } | |
148: end | |
149: | |
150: component_runit_service "oc_id" do | |
151: package 'private_chef' | |
152: end | |
153: | |
154: if node['private_chef']['bootstrap']['enable'] | |
155: execute "/opt/opscode/bin/private-chef-ctl start oc_id" do | |
156: retries 20 | |
157: end | |
158: end | |
159: | |
Compiled Resource: | |
------------------ | |
# Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/oc_id.rb:130:in `from_file' | |
execute("oc_id_schema") do | |
action "run" | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :execute | |
command "bundle exec rake db:migrate" | |
backup 5 | |
cwd "/opt/opscode/embedded/service/oc_id" | |
environment {"RAILS_ENV"=>"production", "VERSION"=>"20140313153625"} | |
path ["/opt/opscode/embedded/bin"] | |
returns 0 | |
declared_type :execute | |
cookbook_name "private-chef" | |
recipe_name "oc_id" | |
only_if { #code block } | |
end | |
Recipe: private-chef::rabbitmq | |
* execute[restart_rabbitmq_log_service] action run | |
- execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/rabbitmq/log | |
Recipe: private-chef::postgresql | |
* runit_service[postgresql] action restart | |
- restart service runit_service[postgresql] | |
* execute[restart_postgresql_log_service] action run | |
- execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/postgresql/log | |
Recipe: private-chef::oc_bifrost | |
* runit_service[oc_bifrost] action restart | |
- restart service runit_service[oc_bifrost] | |
* execute[restart_oc_bifrost_log_service] action run | |
- execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/oc_bifrost/log | |
Recipe: private-chef::oc_id | |
* runit_service[oc_id] action restart | |
================================================================================ | |
Error executing action `restart` on resource 'runit_service[oc_id]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ---- | |
STDOUT: fail: /opt/opscode/service/oc_id: unable to change to service directory: file does not exist | |
STDERR: | |
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ---- | |
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id returned 1 | |
Cookbook Trace: | |
--------------- | |
/opt/opscode/embedded/cookbooks/cache/cookbooks/runit/libraries/provider_runit_service.rb:205:in `restart_service' | |
Resource Declaration: | |
--------------------- | |
# In /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/definitions/component_runit_service.rb | |
37: runit_service component do | |
38: action :enable | |
39: retries 20 | |
40: control params[:control] if params[:control] | |
41: options( | |
42: :log_directory => log_directory | |
43: ) | |
44: params[:runit_attributes].each do |attr_name, attr_value| | |
45: send(attr_name.to_sym, attr_value) | |
46: end | |
47: end | |
48: | |
Compiled Resource: | |
------------------ | |
# Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/definitions/component_runit_service.rb:37:in `block in from_file' | |
runit_service("oc_id") do | |
params {:package=>"private_chef", :log_directory=>nil, :svlogd_size=>nil, :svlogd_num=>nil, :ha=>nil, :control=>nil, :runit_attributes=>{}, :action=>:enable, :name=>"oc_id"} | |
provider Chef::Provider::Service::Runit | |
action [:enable] | |
supports {:restart=>true, :reload=>true, :status=>true} | |
retries 20 | |
retry_delay 2 | |
default_guard_interpreter :default | |
service_name "oc_id" | |
pattern "oc_id" | |
status_command "/opt/opscode/embedded/bin/sv status /opt/opscode/service" | |
sv_bin "/opt/opscode/embedded/bin/sv" | |
sv_dir "/opt/opscode/sv" | |
service_dir "/opt/opscode/service" | |
lsb_init_dir "/opt/opscode/init" | |
options {:log_directory=>"/var/log/opscode/oc_id"} | |
log true | |
restart_on_update true | |
run_template_name "oc_id" | |
log_template_name "oc_id" | |
check_script_template_name "oc_id" | |
finish_script_template_name "oc_id" | |
sv_templates true | |
service_mirror # Declared in | |
service("oc_id") do | |
provider Chef::Provider::Service::Simple | |
action [:nothing] | |
Generated at 2015-06-11 18:25:59 +0000 | |
Generated at 2015-06-11 18:25:59 +0000 | |
supports {:restart=>true, :reload=>true, :status=>true} | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
service_name "oc_id" | |
pattern "oc_id" | |
start_command "/opt/opscode/embedded/bin/sv start /opt/opscode/service/oc_id" | |
stop_command "/opt/opscode/embedded/bin/sv stop /opt/opscode/service/oc_id" | |
status_command "/opt/opscode/embedded/bin/sv status /opt/opscode/service/oc_id" | |
restart_command "/opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id" | |
end | |
declared_type :runit_service | |
cookbook_name "private-chef" | |
recipe_name "oc_id" | |
end | |
Running handlers: | |
[2015-06-11T18:25:59+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2015-06-11T18:25:59+00:00] ERROR: Exception handlers complete | |
[2015-06-11T18:25:59+00:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out | |
Chef Client failed. 136 resources updated in 164.867869822 seconds | |
[2015-06-11T18:25:59+00:00] FATAL: Chef::Exceptions::MultipleFailures: Multiple failures occurred: | |
* Mixlib::ShellOut::ShellCommandFailed occurred in chef run: execute[oc_id_schema] (private-chef::oc_id line 130) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '' | |
---- Begin output of bundle exec rake db:migrate ---- | |
STDOUT: | |
STDERR: no ruby in PATH/CONFIG | |
---- End output of bundle exec rake db:migrate ---- | |
Ran bundle exec rake db:migrate returned | |
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: runit_service[oc_id] (private-chef::oc_id line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ---- | |
STDOUT: fail: /opt/opscode/service/oc_id: unable to change to service directory: file does not exist | |
STDERR: | |
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ---- | |
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id returned 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having the same issue please suggest