Last active
August 29, 2015 14:23
-
-
Save charlesjohnson/5a4300915c507e2a4d44 to your computer and use it in GitHub Desktop.
chef-client 11.18.2 logging behavior
This file contains hidden or 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
#temp/break.rb | |
directory '/test/foo' do | |
action :create | |
end |
This file contains hidden or 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
# /etc/chef/client.rb | |
log_location '/var/log/opscode/foo.log' |
This file contains hidden or 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
#/var/log/opscode/foo.log | |
# Logfile created on 2015-06-26 00:32:35 +0000 by logger.rb/31641 | |
[2015-06-26T00:32:35+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /root/temp. | |
[2015-06-26T00:32:37+00:00] WARN: Node default-centos-65 has an empty run list. | |
[2015-06-26T00:32:37+00:00] ERROR: Running exception handlers | |
[2015-06-26T00:32:37+00:00] ERROR: Exception handlers complete | |
[2015-06-26T00:32:37+00:00] FATAL: Stacktrace dumped to /root/.chef/local-mode-cache/cache/chef-stacktrace.out | |
[2015-06-26T00:32:37+00:00] ERROR: directory[/test/foo] (@recipe_files::/root/temp/break.rb line 1) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /test does not exist, cannot create /test/foo | |
[2015-06-26T00:32:37+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
This file contains hidden or 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
[root@default-centos-65 temp]# chef-client -z break.rb -c /etc/chef/client.rb | |
Starting Chef Client, version 11.18.12 | |
resolving cookbooks for run list: [] | |
Synchronizing Cookbooks: | |
Compiling Cookbooks... | |
Converging 1 resources | |
Recipe: @recipe_files::/root/temp/break.rb | |
* directory[/test/foo] action create | |
* Parent directory /test does not exist, cannot create /test/foo | |
================================================================================ | |
Error executing action `create` on resource 'directory[/test/foo]' | |
================================================================================ | |
Chef::Exceptions::EnclosingDirectoryDoesNotExist | |
------------------------------------------------ | |
Parent directory /test does not exist, cannot create /test/foo | |
Resource Declaration: | |
--------------------- | |
# In /root/temp/break.rb | |
1: directory '/test/foo' do | |
2: action :create | |
3: end | |
Compiled Resource: | |
------------------ | |
# Declared in /root/temp/break.rb:1:in `from_file' | |
directory("/test/foo") do | |
provider Chef::Provider::Directory | |
action [:create] | |
retries 0 | |
retry_delay 2 | |
guard_interpreter :default | |
path "/test/foo" | |
cookbook_name "@recipe_files" | |
recipe_name "/root/temp/break.rb" | |
end | |
Running handlers: | |
Running handlers complete | |
Chef Client failed. 0 resources updated in 1.410176423 seconds | |
[root@default-centos-65 temp]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment