Skip to content

Instantly share code, notes, and snippets.

@Sauraus
Created April 28, 2016 01:25
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 Sauraus/d7f97bc674b472aa9abb058bcfc12e45 to your computer and use it in GitHub Desktop.
Save Sauraus/d7f97bc674b472aa9abb058bcfc12e45 to your computer and use it in GitHub Desktop.
kitchen converge linux-slave-centos-67
-----> Starting Kitchen (v1.7.3)
-----> Converging <linux-slave-centos-67>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.3.2...
Removing non-cookbook files before transfer
Preparing data_bags
Preparing nodes
Preparing secret
Preparing validation.pem
Preparing client.rb
-----> Chef Omnibus installation detected (12.6.0)
Transferring files to <linux-slave-centos-67>
Starting Chef Client, version 12.6.0
resolving cookbooks for run list: ["my-jenkins-tests::ipaddress", "my-jenkins-tests::default", "my-jenkins::linux"]
Synchronizing Cookbooks:
- my-jenkins-tests (1.0.0)
- my-jenkins (9.2.1)
- jenkins (2.4.1)
- export-node (1.0.1)
- dmg (2.4.0)
- java (1.39.0)
- java-mac (2.0.1)
- git (4.4.2)
- subversion (1.3.1)
- maven (2.2.0)
- ant (2.2.1)
- android-sdk (0.2.1)
- my-perforce (3.0.3)
- perforce (2.3.0)
- groovy (1.0.0)
- unity (1.0.8)
- docker (2.4.7)
- ark (1.0.1)
- logrotate (1.9.2)
- visualstudio (1.1.0)
- wix (2.0.2)
- golang (1.7.0)
- homebrew (2.1.0)
- php (1.8.0)
- line (0.6.3)
- nodejs (2.4.4)
- python (1.4.7)
- apt (2.9.2)
- yum (3.10.0)
- runit (1.7.6)
- build-essential (3.2.0)
- windows (1.40.0)
- yum-epel (0.7.0)
- xml (2.0.0)
- apache2 (3.2.2)
- mysql (7.0.0)
- iis (4.1.7)
- perl (3.0.0)
- selinux (0.9.0)
- selinux_policy (0.7.2)
- compat_resource (12.9.1)
- seven_zip (2.0.0)
- chef_handler (1.3.0)
- chef-sugar (3.3.0)
- yum-mysql-community (0.2.0)
- smf (2.2.8)
- rbac (1.0.3)
- packagecloud (0.2.0)
Compiling Cookbooks...
Converging 110 resources
Recipe: logrotate::default
* yum_package[logrotate] action install (up to date)
* directory[/etc/logrotate.d] action create (up to date)
Recipe: perforce::linux
* user[root] action create (up to date)
* directory[/opt/perforce] action create (up to date)
* remote_file[p4] action create (up to date)
* template[/etc/profile.d/perforce.sh] action create (up to date)
Recipe: git::source
* git_client[default] action install
* yum_package[expat-devel] action install (up to date)
* yum_package[gettext-devel] action install (up to date)
* yum_package[libcurl-devel] action install (up to date)
* yum_package[openssl-devel] action install (up to date)
* yum_package[perl-ExtUtils-MakeMaker] action install (up to date)
* yum_package[zlib-devel] action install (up to date)
* remote_file[/tmp/kitchen/cache/git-2.8.1.tar.gz] action create (skipped due to not_if)
* execute[Extracting and Building Git 2.8.1 from Source] action run
================================================================================
Error executing action `run` on resource 'execute[Extracting and Building Git 2.8.1 from Source]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
STDOUT: CC credential-store.o
STDERR: mkdir: cannot create directory `git-2.8.1': File exists
/bin/sh: cc: command not found
make: *** [credential-store.o] Error 127
---- End output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
Ran (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
returned 2
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb
47: execute "Extracting and Building Git #{new_resource.source_version} from Source" do
48: cwd Chef::Config['file_cache_path']
49: additional_make_params = ''
50: additional_make_params += 'USE_LIBPCRE=1' if new_resource.source_use_pcre
51: command <<-COMMAND
52: (mkdir git-#{new_resource.source_version} && tar -zxf git-#{new_resource.source_version}.tar.gz -C git-#{new_resource.source_version} --strip-components 1)
53: (cd git-#{new_resource.source_version} && make prefix=#{new_resource.source_prefix} #{additional_make_params} install)
54: COMMAND
55: not_if "git --version | grep #{new_resource.source_version}"
56: not_if "#{new_resource.source_prefix}/bin/git --version | grep #{new_resource.source_version}"
57: end
58: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb:47:in `block in <class:Source>'
execute("Extracting and Building Git 2.8.1 from Source") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :execute
command " (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)\n (cd git-2.8.1 && make prefix=/usr/local install)\n"
backup 5
cwd "/tmp/kitchen/cache"
returns 0
declared_type :execute
cookbook_name "git"
not_if "git --version | grep 2.8.1"
not_if "/usr/local/bin/git --version | grep 2.8.1"
end
================================================================================
Error executing action `install` on resource 'git_client[default]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
execute[Extracting and Building Git 2.8.1 from Source] (/tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
STDOUT: CC credential-store.o
STDERR: mkdir: cannot create directory `git-2.8.1': File exists
/bin/sh: cc: command not found
make: *** [credential-store.o] Error 127
---- End output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
Ran (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
returned 2
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]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :git_client
cookbook_name "git"
recipe_name "source"
source_checksum "e08503ecaf5d3ac10c40f22871c996a392256c8d038d16f52ebf974cba29ae42"
source_prefix "/usr/local"
source_url "https://nodeload.github.com/git/git/tar.gz/v2.8.1"
source_version "2.8.1"
end
Running handlers:
[2016-04-28T00:57:26+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-04-28T00:57:26+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 29 seconds
[2016-04-28T00:57:26+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-04-28T00:57:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-04-28T00:57:26+00:00] ERROR: git_client[default] (git::source line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[Extracting and Building Git 2.8.1 from Source] (/tmp/kitchen/cache/cookbooks/git/libraries/provider_git_client_source.rb line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
STDOUT: CC credential-store.o
STDERR: mkdir: cannot create directory `git-2.8.1': File exists
/bin/sh: cc: command not found
make: *** [credential-store.o] Error 127
---- End output of (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
----
Ran (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1)
(cd git-2.8.1 && make prefix=/usr/local install)
returned 2
[2016-04-28T00:57:28+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <linux-slave-centos-67>.
>>>>>> Please see .kitchen/logs/linux-slave-centos-67.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
']
>>>>>> ----------------------
zlib(finalizer): the stream was freed prematurely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment