Problem bootstraping chef-client to Windows machines


#1

Hello im bootstrapping new machines with chef, and today im receiving
this new error:

Command:
knife bootstrap windows winrm IP -r ‘role[windows]’ -x Administrator
-P ‘PASS’ -N nodename

chef-client(11.14.2)

chef-stacktrace.out
Generated at 2014-08-04 12:35:34 +0000
LoadError: cannot load such file – ruby-wmi
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in
require' C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire’
c:/chef/cache/cookbooks/windows/libraries/registry_helper.rb:27:in
`<top (required)>’
.
.
.

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/application.rb:55:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:23:in load' C:/opscode/chef/bin/chef-client:23:in

Its a problem with ruby-wmi as its not installed when the client its
installed…

Anything has changed with this chef-client version?

Regards,

Carlos


#2

Guys, i just forced to use the 11.12.8 version for chef-client and its
working fine, anything about this?!?!?!

Its normal to release new client versions with this type of problems!?!?

Best regards,

Carlos.

On Mon, Aug 4, 2014 at 2:44 PM, Carlos Camacho
carlos.camacho@frontiersin.org wrote:

Hello im bootstrapping new machines with chef, and today im receiving
this new error:

Command:
knife bootstrap windows winrm IP -r ‘role[windows]’ -x Administrator
-P ‘PASS’ -N nodename

chef-client(11.14.2)

chef-stacktrace.out
Generated at 2014-08-04 12:35:34 +0000
LoadError: cannot load such file – ruby-wmi
C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in
require' C:/opscode/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire’
c:/chef/cache/cookbooks/windows/libraries/registry_helper.rb:27:in
`<top (required)>’
.
.
.

C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/lib/chef/application.rb:55:in
run' C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.14.2-x86-mingw32/bin/chef-client:26:in<top (required)>'
C:/opscode/chef/bin/chef-client:23:in load' C:/opscode/chef/bin/chef-client:23:in

Its a problem with ruby-wmi as its not installed when the client its
installed…

Anything has changed with this chef-client version?

Regards,

Carlos