Skip to content

Instantly share code, notes, and snippets.

@vignesh-v3
Created November 18, 2016 03:08
Show Gist options
  • Save vignesh-v3/843db69a7041d421c6938d0a0a6b5a8d to your computer and use it in GitHub Desktop.
Save vignesh-v3/843db69a7041d421c6938d0a0a6b5a8d to your computer and use it in GitHub Desktop.
PS C:\chef-repo> chef-client
[2016-11-18T08:37:31+05:30] WARN: *****************************************
[2016-11-18T08:37:31+05:30] WARN: Did not find config file: C:/chef/client.rb, using command line options.
[2016-11-18T08:37:31+05:30] WARN: *****************************************
Starting Chef Client, version 12.15.19
Creating a new client identity for Admin using the validator key.
[2016-11-18T08:37:47+05:30] WARN: Failed to read the private key C:\chef\validation.pem: #<Errno::ENOENT: No such file o
r directory @ rb_sysopen - C:\chef\validation.pem>
================================================================================
Chef encountered an error attempting to create the client "Admin"
================================================================================
Private Key Not Found:
----------------------
Your private key could not be loaded. If the key file exists, ensure that it is
readable by chef-client.
Relevant Config Settings:
-------------------------
validation_key "C:\chef\validation.pem"
Platform:
---------
i386-mingw32
Running handlers:
[2016-11-18T08:37:47+05:30] ERROR: Running exception handlers
Running handlers complete
[2016-11-18T08:37:47+05:30] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 16 seconds
[2016-11-18T08:37:48+05:30] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out
[2016-11-18T08:37:48+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-11-18T08:37:48+05:30] FATAL: Chef::Exceptions::PrivateKeyMissing: I cannot read C:\chef\validation.pem, which you
told me to use to sign requests!
PS C:\chef-repo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment