Skip to content

Instantly share code, notes, and snippets.

@fletchowns
Created October 26, 2016 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fletchowns/cdab5e1f58722fd4d9cd6f4492fa3e52 to your computer and use it in GitHub Desktop.
Save fletchowns/cdab5e1f58722fd4d9cd6f4492fa3e52 to your computer and use it in GitHub Desktop.
git cookbook failed converge
* execute[Extracting and Building Git 2.6.2 from Source] action run
================================================================================
Error executing action `run` on resource 'execute[Extracting and Building Git 2.6.2 from Source]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
----
STDOUT:
STDERR: mkdir: cannot create directory ‘git-2.6.2’: File exists
make: *** No rule to make target `install'. Stop.
---- End output of (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
----
Ran (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
returned 2
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb
50: execute "Extracting and Building Git #{new_resource.source_version} from Source" do
51: cwd Chef::Config['file_cache_path']
52: additional_make_params = ''
53: additional_make_params += 'USE_LIBPCRE=1' if new_resource.source_use_pcre
54: command <<-COMMAND
55: (mkdir git-#{new_resource.source_version} && tar -zxf git-#{new_resource.source_version}.tar.gz -C git-#{new_resource.source_version} --strip-components 1)
56: (cd git-#{new_resource.source_version} && make prefix=#{new_resource.source_prefix} #{additional_make_params} install)
57: COMMAND
58: not_if "git --version | grep #{new_resource.source_version}"
59: not_if "#{new_resource.source_prefix}/bin/git --version | grep #{new_resource.source_version}"
60: end
61: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb:50:in `block in <class:Source>'
execute("Extracting and Building Git 2.6.2 from Source") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :execute
command " (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)\n (cd git-2.6.2 && make prefix=/usr install)\n"
backup 5
cwd "/tmp/kitchen/cache"
returns 0
declared_type :execute
cookbook_name "git"
not_if "git --version | grep 2.6.2"
not_if "/usr/bin/git --version | grep 2.6.2"
end
Platform:
---------
x86_64-linux
================================================================================
Error executing action `install` on resource 'git_client[default]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[Extracting and Building Git 2.6.2 from Source] (/tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb line 50) had an error: Mixlib::ShellOut::ShellCommandFail ed: Expected process to exit with [0], but received '2'
---- Begin output of (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
----
STDOUT:
STDERR: mkdir: cannot create directory ‘git-2.6.2’: File exists
make: *** No rule to make target `install'. Stop.
---- End output of (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
----
Ran (mkdir git-2.6.2 && tar -zxf git-2.6.2.tar.gz -C git-2.6.2 --strip-components 1)
(cd git-2.6.2 && make prefix=/usr install)
returned 2
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/git/recipes/source.rb
20: git_client 'default' do
21: provider Chef::Provider::GitClient::Source
22: source_checksum node['git']['checksum']
23: source_prefix node['git']['prefix']
24: source_url format(node['git']['url'], version: node['git']['version'])
25: source_use_pcre node['git']['use_pcre']
26: source_version node['git']['version']
27: action :install
28: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/git/recipes/source.rb:20:in `from_file'
git_client("default") do
provider Chef::Provider::GitClient::Source
action [:install]
updated true
updated_by_last_action true
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :git_client
cookbook_name "git"
recipe_name "source"
source_checksum "34dfc06b44880df91940dc318a2d3c83b79e67b6f05319c7c71e94d30893636d"
source_prefix "/usr"
source_url "https://s3-us-west-1.amazonaws.com/veeva-eng/apps/git-2.6.2.tar.gz"
source_version "2.6.2"
end
Platform:
---------
x86_64-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment