Created
April 13, 2017 00:23
-
-
Save srajappa/e18d6b00a8a87739299b1eb3f8334ef4 to your computer and use it in GitHub Desktop.
Kitchen converge fail, syntax error in Git community cookbook.
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
$ kitchen converge | |
-----> Starting Kitchen (v1.15.0) | |
W, [2017-04-12T17:09:51.956502 #8552] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.956502 #8552] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.957005 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.957005 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.967032 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
W, [2017-04-12T17:09:51.967533 #8552] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method. | |
-----> Converging <default-centos-72>... | |
Preparing files for transfer | |
Preparing dna.json | |
Resolving cookbook dependencies with Berkshelf 5.6.0... | |
Removing non-cookbook files before transfer | |
Preparing validation.pem | |
Preparing client.rb | |
-----> Chef Omnibus installation detected (install only if missing) | |
Transferring files to <default-centos-72> | |
Starting Chef Client, version 13.0.118 | |
resolving cookbooks for run list: ["scm_jenkins::default"] | |
Synchronizing Cookbooks: | |
- scm_jenkins (0.1.0) | |
- java (1.48.0) | |
- git (4.6.0) | |
- apt (6.0.1) | |
- windows (3.0.5) | |
- homebrew (3.0.0) | |
- build-essential (8.0.0) | |
- yum-epel (2.1.1) | |
- ohai (5.0.3) | |
- seven_zip (2.0.2) | |
- mingw (2.0.0) | |
- compat_resource (12.16.3) | |
- dmg (3.1.0) | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
================================================================================ | |
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/git/libraries/z_provider_mapping.rb | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `set' for Chef::Platform:Class | |
Cookbook Trace: | |
--------------- | |
/tmp/kitchen/cache/cookbooks/git/libraries/z_provider_mapping.rb:6:in `<top (required)>' | |
Relevant File Content: | |
---------------------- | |
/tmp/kitchen/cache/cookbooks/git/libraries/z_provider_mapping.rb: | |
1: # provider mappings for Chef 11 | |
2: | |
3: ######### | |
4: # client | |
5: ######### | |
6>> Chef::Platform.set platform: :amazon, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
7: Chef::Platform.set platform: :centos, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
8: Chef::Platform.set platform: :debian, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
9: Chef::Platform.set platform: :fedora, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
10: Chef::Platform.set platform: :mac_os_x, resource: :git_client, provider: Chef::Provider::GitClient::Osx | |
11: Chef::Platform.set platform: :redhat, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
12: Chef::Platform.set platform: :scientific, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
13: Chef::Platform.set platform: :smartos, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
14: Chef::Platform.set platform: :solaris2, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
15: Chef::Platform.set platform: :suse, resource: :git_client, provider: Chef::Provider::GitClient::Package | |
System Info: | |
------------ | |
chef_version=13.0.118 | |
platform=centos | |
platform_version=7.2.1511 | |
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] | |
program_name=chef-client worker: ppid=11846;start=00:10:07; | |
executable=/opt/chef/bin/chef-client | |
Running handlers: | |
[2017-04-13T00:10:09+00:00] ERROR: Running exception handlers | |
[2017-04-13T00:10:09+00:00] ERROR: Running exception handlers | |
Running handlers complete | |
[2017-04-13T00:10:09+00:00] ERROR: Exception handlers complete | |
[2017-04-13T00:10:09+00:00] ERROR: Exception handlers complete | |
Chef Client failed. 0 resources updated in 01 seconds | |
[2017-04-13T00:10:09+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out | |
[2017-04-13T00:10:09+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out | |
[2017-04-13T00:10:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2017-04-13T00:10:09+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report | |
[2017-04-13T00:10:09+00:00] ERROR: undefined method `set' for Chef::Platform:Class | |
[2017-04-13T00:10:09+00:00] ERROR: undefined method `set' for Chef::Platform:Class | |
[2017-04-13T00:10:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
[2017-04-13T00:10:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1) | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: 1 actions failed. | |
>>>>>> Converge failed on instance <default-centos-72>. Please see .kitchen/logs/default-centos-72.log for more details | |
>>>>>> ---------------------- | |
>>>>>> Please see .kitchen/logs/kitchen.log for more details | |
>>>>>> Also try running `kitchen diagnose --all` for configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment