Skip to content

Instantly share code, notes, and snippets.

@vignesh-v3
Created November 19, 2016 15:34
Show Gist options
  • Save vignesh-v3/83401ca3da1ba0c9174dee1dac99c2f5 to your computer and use it in GitHub Desktop.
Save vignesh-v3/83401ca3da1ba0c9174dee1dac99c2f5 to your computer and use it in GitHub Desktop.
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: ["apache", "apt"]
Synchronizing Cookbooks:
- apt (0.1.0)
- apache (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 4 resources
Recipe: apache::default
* yum_package[httpd] action install (up to date)
* service[httpd] action enable (up to date)
* service[httpd] action start (up to date)
* cookbook_file[/var/www/index.html] action create (up to date)
Recipe: apt::default
* execute[apt-get-update] action run
================================================================================
Error executing action `run` on resource 'execute[apt-get-update]'
================================================================================
Errno::ENOENT
-------------
No such file or directory - apt-get
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/apt/recipes/default.rb
9: execute 'apt-get-update' do
10: command 'apt-get update'
11: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/apt/recipes/default.rb:9:in `from_file'
execute("apt-get-update") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "apt-get update"
backup 5
returns 0
declared_type :execute
cookbook_name "apt"
recipe_name "default"
end
Platform:
---------
x86_64-linux
Running handlers:
[2016-11-19T15:30:10+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-11-19T15:30:10+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 03 seconds
[2016-11-19T15:30:10+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-11-19T15:30:10+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-11-19T15:30:10+00:00] ERROR: execute[apt-get-update] (apt::default line 9) had an error: Errno::ENOENT: No such file or directory - apt-get
[2016-11-19T15:30:10+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