Created
December 7, 2012 17:57
-
-
Save miketheman/4235082 to your computer and use it in GitHub Desktop.
Reproduction for why-run failure for service resource
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
[2012-12-07T17:48:39+00:00] INFO: *** Chef 10.12.0 *** | |
[2012-12-07T17:48:39+00:00] INFO: Setting the run_list to ["recipe[test]"] from JSON | |
[2012-12-07T17:48:39+00:00] INFO: Run List is [recipe[test]] | |
[2012-12-07T17:48:39+00:00] INFO: Run List expands to [test] | |
[2012-12-07T17:48:39+00:00] INFO: Starting Chef Run for localhost | |
[2012-12-07T17:48:39+00:00] INFO: Running start handlers | |
[2012-12-07T17:48:39+00:00] INFO: Start handlers complete. | |
[2012-12-07T17:48:40+00:00] INFO: Processing service[truthiness] action start (test::default line 10) | |
[2012-12-07T17:48:40+00:00] INFO: Chef Run complete in 1.209708 seconds | |
[2012-12-07T17:48:40+00:00] INFO: Running report handlers | |
[2012-12-07T17:48:40+00:00] INFO: Report handlers complete |
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
[2012-12-07T17:56:18+00:00] INFO: *** Chef 10.14.4 *** | |
[2012-12-07T17:56:18+00:00] INFO: Setting the run_list to ["recipe[test]"] from JSON | |
[2012-12-07T17:56:18+00:00] INFO: Run List is [recipe[test]] | |
[2012-12-07T17:56:18+00:00] INFO: Run List expands to [test] | |
[2012-12-07T17:56:18+00:00] INFO: Starting Chef Run for localhost | |
[2012-12-07T17:56:18+00:00] INFO: Running start handlers | |
[2012-12-07T17:56:18+00:00] INFO: Start handlers complete. | |
[2012-12-07T17:56:19+00:00] INFO: Processing service[truthiness] action start (test::default line 10) | |
================================================================================ | |
Error executing action `start` on resource 'service[truthiness]' | |
================================================================================ | |
Chef::Exceptions::Service | |
------------------------- | |
service[truthiness]: unable to locate the init.d script! | |
Resource Declaration: | |
--------------------- | |
# In /tmp/vagrant-chef-1/chef-solo-2/cookbooks/test/recipes/default.rb | |
10: service "truthiness" do | |
11: start_command "/bin/true start" | |
12: stop_command "/bin/true stop" | |
13: reload_command "/bin/true update" | |
14: restart_command "/bin/true reload" | |
15: status_command "/bin/true status" | |
16: action :start | |
17: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/test/recipes/default.rb:10:in `from_file' | |
service("truthiness") do | |
status_command "/bin/true status" | |
stop_command "/bin/true stop" | |
pattern "truthiness" | |
service_name "truthiness" | |
start_command "/bin/true start" | |
reload_command "/bin/true update" | |
supports {:status=>true, :reload=>false, :restart=>false} | |
recipe_name "default" | |
retry_delay 2 | |
restart_command "/bin/true reload" | |
cookbook_name :test | |
startup_type :automatic | |
retries 0 | |
action [:start] | |
end | |
[2012-12-07T17:56:19+00:00] ERROR: Running exception handlers | |
[2012-12-07T17:56:19+00:00] ERROR: Exception handlers complete | |
[2012-12-07T17:56:19+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[2012-12-07T17:56:19+00:00] FATAL: Chef::Exceptions::Service: service[truthiness] (test::default line 10) had an error: Chef::Exceptions::Service: service[truthiness]: unable to locate the init.d script! |
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
[2012-12-07T17:51:42+00:00] INFO: *** Chef 10.16.2 *** | |
[2012-12-07T17:51:42+00:00] INFO: Setting the run_list to ["recipe[test]"] from JSON | |
[2012-12-07T17:51:42+00:00] INFO: Run List is [recipe[test]] | |
[2012-12-07T17:51:42+00:00] INFO: Run List expands to [test] | |
[2012-12-07T17:51:42+00:00] INFO: Starting Chef Run for localhost | |
[2012-12-07T17:51:42+00:00] INFO: Running start handlers | |
[2012-12-07T17:51:42+00:00] INFO: Start handlers complete. | |
[2012-12-07T17:51:43+00:00] WARN: Setting attributes without specifying a precedence is deprecated and will be | |
removed in Chef 11.0. To set attributes at normal precedence, change code like: | |
`node["key"] = "value"` # Not this | |
to: | |
`node.set["key"] = "value"` # This | |
Called from: | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node/attribute.rb:449:in `method_missing' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `send' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/bin/../lib/chef/node.rb:346:in `method_missing' | |
[2012-12-07T17:51:43+00:00] INFO: Processing service[truthiness] action start (test::default line 10) | |
================================================================================ | |
Error executing action `start` on resource 'service[truthiness]' | |
================================================================================ | |
Chef::Exceptions::Service | |
------------------------- | |
service[truthiness]: unable to locate the init.d script! | |
Resource Declaration: | |
--------------------- | |
# In /tmp/vagrant-chef-1/chef-solo-2/cookbooks/test/recipes/default.rb | |
10: service "truthiness" do | |
11: start_command "/bin/true start" | |
12: stop_command "/bin/true stop" | |
13: reload_command "/bin/true update" | |
14: restart_command "/bin/true reload" | |
15: status_command "/bin/true status" | |
16: action :start | |
17: end | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/vagrant-chef-1/chef-solo-2/cookbooks/test/recipes/default.rb:10:in `from_file' | |
service("truthiness") do | |
start_command "/bin/true start" | |
pattern "truthiness" | |
retries 0 | |
reload_command "/bin/true update" | |
status_command "/bin/true status" | |
restart_command "/bin/true reload" | |
recipe_name "default" | |
startup_type :automatic | |
supports {:status=>true, :reload=>false, :restart=>false} | |
stop_command "/bin/true stop" | |
action [:start] | |
service_name "truthiness" | |
retry_delay 2 | |
cookbook_name :test | |
end | |
[2012-12-07T17:51:43+00:00] ERROR: Running exception handlers | |
[2012-12-07T17:51:43+00:00] ERROR: Exception handlers complete | |
[2012-12-07T17:51:43+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[2012-12-07T17:51:43+00:00] FATAL: Chef::Exceptions::Service: service[truthiness] (test::default line 10) had an error: Chef::Exceptions::Service: service[truthiness]: unable to locate the init.d script! |
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
# test/recipes/default.rb | |
service "truthiness" do | |
start_command "/bin/true start" | |
stop_command "/bin/true stop" | |
reload_command "/bin/true update" | |
restart_command "/bin/true reload" | |
status_command "/bin/true status" | |
action :start | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment