Getting compile error on converge on Amazonlinux cannot load such file -- chef/mixin/language
onetwopunch opened this issue · comments
Synchronizing Cookbooks:
- test-helper (0.0.1)
- career-consul-vault (0.1.0)
- consul (3.1.0)
- nssm (4.0.0)
- build-essential (2.3.1)
- golang (1.7.0)
- poise (2.8.1)
- poise-archive (1.5.0)
- poise-service (1.5.2)
- 7-zip (1.0.2)
- windows (1.44.3)
- chef_handler (1.1.6)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/windows/libraries/windows_package.rb
================================================================================
LoadError
---------
cannot load such file -- chef/mixin/language
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/windows/libraries/windows_package.rb:7:in `<top (required)>'
Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/windows/libraries/windows_package.rb:
1: require 'chef/resource/lwrp_base'
2: require 'chef/provider/lwrp_base'
3:
4: require 'win32/registry' if RUBY_PLATFORM =~ /mswin|mingw32|windows/
5:
6: require 'chef/mixin/shell_out'
7>> require 'chef/mixin/language'
8: class Chef
9: class Provider
10: class WindowsCookbookPackage < Chef::Provider::LWRPBase # ~FC058
11: include Chef::Mixin::ShellOut
12: include Windows::Helper
13:
14: use_inline_resources if defined?(use_inline_resources)
15:
16: # the logic in all action methods mirror that of
System Info:
------------
chef_version=14.0.190
platform=amazon
platform_version=2017.09
ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
program_name=/opt/chef/bin/chef-client
executable=/opt/chef/bin/chef-client
Because you have Chef Client 14.x, you probably now need to blow away caches and update your windows cookbook to the latest. The latest windows cookbook doesn't even include that resource, as it is embedded in chef-client now. It's also possible your chef server may have cached a confused merge of two versions of that cookbook through berkshelf action too. See chef-boneyard/windows#564
Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.