When spinning up a new server it is failing with the above error that cannot load such file. Tried checking the chef-client version which is 18.5.0 and also adding depends 'homebrew', '~> 5.0' in metadata file but still facing same issue.
Details:
Chef trace:
Generated at 2025-01-29 06:09:22 -0500
LoadError: cannot load such file -- chef/mixin/homebrew_user
internal:/opt/chef/embedded/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb:85:in require' <internal:/opt/chef/embedded/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in
require'
/var/chef/cache/cookbooks/homebrew/libraries/helpers.rb:23:in <class:HomebrewUserWrapper>' /var/chef/cache/cookbooks/homebrew/libraries/helpers.rb:22:in
<top (required)>'strong text
1 Like
Seeing this same error in Chef Infra Client v18.6.2
This topic was automatically closed after 10 days. New replies are no longer allowed.