Created
May 12, 2011 20:48
-
-
Save brookemckim/969415 to your computer and use it in GitHub Desktop.
Chef::Exceptions::PrivateKeyMissing
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
[Thu, 12 May 2011 16:46:45 -0400] WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::ENOENT: No such file or directory - /etc/chef/client.pem> | |
[Thu, 12 May 2011 16:46:45 -0400] ERROR: Running exception handlers | |
[Thu, 12 May 2011 16:46:45 -0400] ERROR: Exception handlers complete | |
[Thu, 12 May 2011 16:46:45 -0400] FATAL: Stacktrace dumped to /tmp/chef-stacktrace.out | |
[Thu, 12 May 2011 16:46:45 -0400] FATAL: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests! |
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
# chef-solo -c /etc/chef/solo.rb -j /etc/chef/dna.json | |
file_cache_path "/tmp" | |
cookbook_path ["/tmp/chef-solo/cookbooks", "/tmp/chef-solo/site_cookbooks"] | |
role_path "/tmp/chef-solo/roles" | |
log_level :info | |
log_location STDOUT | |
ssl_verify_mode :verify_none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was getting the same error then running as sudo helped me here
[2020-06-01T08:43:57+00:00] FATAL: Stacktrace dumped to /home/ec2-user/.chef/cache/chef-stacktrace.out
[2020-06-01T08:43:57+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-06-01T08:43:57+00:00] FATAL: Chef::Exceptions::PrivateKeyMissing: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
[ec2-user@client chef]$ chmod 600 client.pem
chmod: changing permissions of ‘client.pem’: Operation not permitted
[ec2-user@client chef]$ sudo chef-client
Starting Chef Infra Client, version 15.11.3
resolving cookbooks for run list: ["starter"]
Synchronizing Cookbooks:
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: starter::default
Running handlers:
Running handlers complete
Chef Infra Client finished, 1/1 resources updated in 05 seconds
[ec2-user@client chef]$