Created
November 19, 2016 13:29
-
-
Save vignesh-v3/f37a898dfbfbf32ec99419fbcc76f887 to your computer and use it in GitHub Desktop.
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
[ec2-user@ip-172-31-12-212 ~]$ chef-client | |
Starting Chef Client, version 12.16.42 | |
[2016-11-19T13:22:40+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 "room_linuxbox" | |
================================================================================ | |
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-19T13:22:40+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2016-11-19T13:22:40+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 01 seconds | |
[2016-11-19T13:22:40+00:00] FATAL: Stacktrace dumped to /home/ec2-user/.chef/cache/chef-stacktrace.out | |
[2016-11-19T13:22:40+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2016-11-19T13:22:40+00:00] ERROR: I cannot read /etc/chef/client.pem, which you told me to use to sign requests! | |
[2016-11-19T13:22:40+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
[ec2-user@ip-172-31-12-212 ~]$ | |
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client | |
Starting Chef Client, version 12.16.42 | |
resolving cookbooks for run list: ["apache"] | |
Synchronizing Cookbooks: | |
- apache (0.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
Converging 3 resources | |
Recipe: apache::default | |
* yum_package[apache2] action install | |
* No candidate version available for apache2 | |
================================================================================ | |
Error executing action `install` on resource 'yum_package[apache2]' | |
================================================================================ | |
Chef::Exceptions::Package | |
------------------------- | |
No candidate version available for apache2 | |
Resource Declaration: | |
--------------------- | |
# In /var/chef/cache/cookbooks/apache/recipes/default.rb | |
12: package 'apache2' do | |
13: action :install | |
14: end | |
15: | |
Compiled Resource: | |
------------------ | |
# Declared in /var/chef/cache/cookbooks/apache/recipes/default.rb:12:in `from_file' | |
yum_package("apache2") do | |
package_name "apache2" | |
action [:install] | |
retries 0 | |
retry_delay 2 | |
default_guard_interpreter :default | |
declared_type :package | |
cookbook_name "apache" | |
recipe_name "default" | |
flush_cache {:before=>false, :after=>false} | |
end | |
Platform: | |
--------- | |
x86_64-linux | |
Running handlers: | |
[2016-11-19T13:23:09+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2016-11-19T13:23:09+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 04 seconds | |
[2016-11-19T13:23:09+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
[2016-11-19T13:23:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2016-11-19T13:23:09+00:00] ERROR: yum_package[apache2] (apache::default line 12) had an error: Chef::Exceptions::Package: No candidate version available for apache2 | |
[2016-11-19T13:23:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment