Unknown OLE server wmi error when bootstrapping Chef Client with AWS User Data without node_name


#1

Getting a unknown OLE server wmi error when bootstrapping Chef Client in AWS using User Data. What’s strange is if I provide a node_name in my client.rb, it works, but if I leave it blank and try to let Chef get that info using Ohai, I get the error. Any ideas?

Here’s the error:
C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:84:in initialize': unknown OLE server:WbemScripting.SWbemLocator’ (WIN32OLERuntimeError)
HRESULT error code:0x800401f3
Invalid class string
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:84:in new' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:84:inconnect_to_namespace’
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:64:in start_query' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:39:infirst_of’
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef/platform/query_helpers.rb:33:in windows_server_2003?' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef/win32/eventlog.rb:19:in<top (required)>'
from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef/event_loggers/windows_eventlog.rb:21:in <top (required)>' from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef/client.rb:41:in<top (required)>'
from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef/handler.rb:18:in <top (required)>' from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/lib/chef.rb:32:in<top (required)>‘
from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/opscode/chef/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire’
from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.37-universal-mingw32/bin/chef-client:23:in <top (required)>' from C:/opscode/chef/bin/chef-client:64:inload’
from C:/opscode/chef/bin/chef-client:64:in `’

-Ray


#2

Oof - that error might be a red herring. Looks like this might just be a User Data issue. :frowning: Working now.