The action gitzone-make-install failed on debian7.
* execute[gitzone-make-install] action run
================================================================================
Error executing action `run` on resource 'execute[gitzone-make-install]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '127'
---- Begin output of sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install ----
STDOUT:
STDERR: sed: can't read gitzone_repo/Makefile: No such file or directory
sh: make: command not found
---- End output of sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install ----
Ran sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install returned 127
Resource Declaration:
---------------------
# In /root/chef-solo/cookbooks-2/gitzone/recipes/install.rb
25: execute "gitzone-make-install" do
26: cmd = "sed -i 's:^PREFFIX=.*:PREFFIX=#{node['gitzone']['preffix']}:' #{:gitzone_repo}/Makefile"
27: cmd << "; cd #{gitzone_repo}"
28: cmd << "; make install"
29: command cmd
30: ignore_failure false
31: action :nothing
32: notifies :run, "execute[fix-gitzone-sudordnc]", :immediately
33: #not_if { ::File.exists?("#{node['gitzone']['preffix']}/bin/gitzone-shell") }
34: end
35:
Compiled Resource:
------------------
# Declared in /root/chef-solo/cookbooks-2/gitzone/recipes/install.rb:25:in `from_file'
execute("gitzone-make-install") do
action [:nothing]
retries 0
retry_delay 2
guard_interpreter :default
command "sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install"
backup 5
returns 0
cookbook_name :gitzone
recipe_name "install"
end
Recipe: bind::default
* service[bind9] action reload
- reload service service[bind9]
Recipe: <Dynamically Defined Resource>
* bash[dpkg-reconfigure tzdata] action run
- execute "bash" "/tmp/chef-script20140531-8620-1uddbcb"
Running handlers:
[2014-05-31T08:44:08+00:00] ERROR: Running exception handlers
Running handlers complete
[2014-05-31T08:44:08+00:00] ERROR: Exception handlers complete
[2014-05-31T08:44:08+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 14 resources updated in 12.879432433 seconds
[2014-05-31T08:44:08+00:00] ERROR: execute[gitzone-make-install] (gitzone::install line 25) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install ----
STDOUT:
STDERR: sed: can't read gitzone_repo/Makefile: No such file or directory
sh: make: command not found
---- End output of sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install ----
Ran sed -i 's:^PREFFIX=.*:PREFFIX=/usr:' gitzone_repo/Makefile; cd /srv/repos/git/gitzone; make install returned 127
[2014-05-31T08:44:08+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
ERROR: RuntimeError: chef-solo failed. See output above.
The action gitzone-make-install failed on debian7.