Skip to content

Instantly share code, notes, and snippets.

@vignesh-v3
Created November 15, 2016 02:46
Show Gist options
  • Save vignesh-v3/09a827ae462c8f5d9427ae05045f5e6e to your computer and use it in GitHub Desktop.
Save vignesh-v3/09a827ae462c8f5d9427ae05045f5e6e to your computer and use it in GitHub Desktop.
[ec2-user@ip-172-31-12-212 ~]$ chef-client
Starting Chef Client, version 12.16.42
[2016-11-15T02:39:54+00:00] WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::EACCES: Permission denied @ rb_sysopen - /etc/chef/client.pem>
================================================================================
Chef encountered an error attempting to create the client "try_2_pemchange"
================================================================================
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 "/etc/chef/validation.pem"
Platform:
---------
x86_64-linux
Running handlers:
[2016-11-15T02:39:54+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-11-15T02:39:54+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-11-15T02:39:54+00:00] FATAL: Stacktrace dumped to /home/ec2-user/.chef/cache/chef-stacktrace.out
[2016-11-15T02:39:54+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-11-15T02:39:54+00:00] ERROR: I cannot read /etc/chef/client.pem, which you told me to use to sign requests!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment