Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: uninitialized constant #<Class:#<Chef::Recipe:0x0000000009664a00>>::Chocolatey #142

Open
mgiammarco opened this issue Jul 29, 2019 · 2 comments

Comments

@mgiammarco
Copy link

Cookbook version

2.0.1

Chef-client version

15.1.36

Platform Details

Windows 10

Scenario:

Trying to install chocolatey with chef-run or chef-apply

Steps to Reproduce:

Launched chef-run or chef-apply on default.rb

Expected Result:

Install chocolatey on target system

Actual Result:

On remote failed to converge and no log.
On local I see the log that says:

Generated at 2019-07-29 20:59:36 +0200
NameError: uninitialized constant #<Class:#Chef::Recipe:0x0000000007eee678>::Chocolatey
..\Downloads\chocolatey\recipes\default.rb:25:in run_chef_recipe' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:195:in instance_eval'
C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:195:in run_chef_recipe' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:209:in run_application'
C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-15.1.36-universal-mingw32/lib/chef/application/apply.rb:222:in run' C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.6.0/gems/chef-bin-15.1.36/bin/chef-apply:24:in <top (required)>'
C:/opscode/chef-workstation/modules/chef/../../bin/chef-apply:359:in load' C:/opscode/chef-workstation/modules/chef/../../bin/chef-apply:359:in

'

@mgiammarco
Copy link
Author

Nobody can help me? It seems strange to me to get a NameError: uninitialized constant #Class:#Chef::Recipe:0x0000000007eee678::Chocolatey on a freshly installed Chef Workstation

@ferventcoder
Copy link
Contributor

Paging @tas50 - not sure if you see notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants