You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely clear on what's causing this problem, but when I try to converge my node, I get the following error from the unix_bin cookbook:
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/unix_bin/definitions/providers.rb
================================================================================
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/unix_bin/definitions/providers.rb:7:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/unix_bin/definitions/providers.rb:
1: #
2: # This definition is used to assign the providers to their resources.
3: #
4: # Definition files are loaded after providers and resources, but
5: # before recipies. (and are not run-list sensitive like receipes)
6: #
7>> Chef::Platform.platforms[:centos][:default][:unix_bin_package] = Chef::Provider::UnixBinPackageYum
8: Chef::Platform.platforms[:ubuntu][:default][:unix_bin_package] = Chef::Provider::UnixBinPackageApt 9:
Running handlers:
[2016-02-29T13:31:29-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-02-29T13:31:29-05:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 03 seconds
[2016-02-29T13:31:29-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-02-29T13:31:29-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-02-29T13:31:29-05:00] ERROR: undefined method `[]' for nil:NilClass
[2016-02-29T13:31:29-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
And the chef-stacktrace.out file has the following:
This is being run on Ubuntu, so I wonder if maybe the :centos key doesn't exist in the platforms hash? Just a guess, I know nothing about chef internals.
I'm not actually using this cookbook directly, I'm using the "service_factory" cookbook, which in turns depends on "unix_bin". From the looks of the stack trace, though, it's not about the specific use of the cookbook, though, it appears to be happening during some kind of initial compilation phase.
uname -a gives:
Linux myhostname 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
I believe the issue you are experiencing is that the last few versions of the application have not been uploaded to the Chef Supermarket and the CHANGELOG.md does not reference these changes either.
Currently the "released" version is "0.2.7" which was released in 2013. There have been a few subsequent changes for use in Chef 12 in the 0.2.8 and 0.2.9 releases which have not been uploaded to the Supermarket. Thus, without any customization, Chef/Berks will use the 0.2.7 version where this issue is.
We customized our Berksfile to point to the Git repo for now until this is resolved and released to the Chef Supermarket.
I'm not entirely clear on what's causing this problem, but when I try to converge my node, I get the following error from the
unix_bin
cookbook:And the
chef-stacktrace.out
file has the following:This is being run on Ubuntu, so I wonder if maybe the
:centos
key doesn't exist in theplatforms
hash? Just a guess, I know nothing about chef internals.I'm not actually using this cookbook directly, I'm using the "service_factory" cookbook, which in turns depends on "unix_bin". From the looks of the stack trace, though, it's not about the specific use of the cookbook, though, it appears to be happening during some kind of initial compilation phase.
uname -a
gives:The text was updated successfully, but these errors were encountered: