Error while using Wsus-client Cookbook


#1

Hi,

I had been installing windows updates using wsus-client cookbook. But getting following error.

=========================================================================
Error executing action `download` on resource 'wsus_client_update[WSUS updates]'
=========================================================================

WIN32OLERuntimeError
--------------------
(in OLE method `Search': )
    OLE error code:80244019 in <Unknown>
      <No Description>
    HRESULT error code:0x80020009
      Exception occurred.

Cookbook Trace:
---------------
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:86:in `method_missing'
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:86:in `block in updates'
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:84:in `tap'
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:84:in `updates'
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:33:in `block in class_from_file'

Resource Declaration:
---------------------
# In c:/chef/cache/cookbooks/wsus-client/recipes/update.rb

 31: wsus_client_update 'WSUS updates' do
 32:   #action :install
 33: end
 34:

Compiled Resource:
------------------
# Declared in c:/chef/cache/cookbooks/wsus-client/recipes/update.rb:31:in `from_file'

wsus_client_update("WSUS updates") do
  action [:download, :install]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :wsus_client_update
  cookbook_name "wsus-client"
  recipe_name "update"
end

Platform:
---------
x64-mingw32

[2016-09-19T17:06:48-07:00] INFO: Running queued delayed notifications before re-raising exception

Running handlers:
[2016-09-19T17:06:48-07:00] ERROR: Running exception handlers
Running handlers complete
[2016-09-19T17:06:48-07:00] ERROR: Exception handlers complete
Chef Client failed. 3 resources updated in 22 seconds
[2016-09-19T17:06:48-07:00] INFO: Sending resource update report (run-id: 381f5e38-d7cb-4175-9dd4-6751bec1f41e)
[2016-09-19T17:06:49-07:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2016-09-19T17:06:49-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-09-19T17:06:49-07:00] FATAL: WIN32OLERuntimeError: wsus_client_update[WSUS updates] (wsus-client::update line 31)
had an error: WIN32OLERuntimeError: (in OLE method `Search’: )
OLE error code:80244019 in

HRESULT error code:0x80020009
Exception occurred.

##############################

And here is the Chef-Stacktrace Output

WIN32OLERuntimeError: wsus_client_update[WSUS updates] (wsus-client::update line 31) had an error: WIN32OLERuntimeError: (in OLE method Search': ) OLE error code:80244019 in <Unknown> <No Description> HRESULT error code:0x80020009 Exception occurred. c:/chef/cache/cookbooks/wsus-client/providers/update.rb:86:inmethod_missing’
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:86:in block in updates' c:/chef/cache/cookbooks/wsus-client/providers/update.rb:84:intap’
c:/chef/cache/cookbooks/wsus-client/providers/update.rb:84:in updates' c:/chef/cache/cookbooks/wsus-client/providers/update.rb:33:inblock in class_from_file’
(eval):2:in `block in action_download’

Please HELP!!


#2

Hey,

Have you looked at https://social.technet.microsoft.com/Forums/sharepoint/en-US/08e32b9c-a83d-41c9-9816-c1ed5e719c5d/wsus-client-side-error-log-80244019-80071b6e?forum=winserverwsus

Otherwise don’t forget to open a case directly on github: https://github.com/criteo-cookbooks/wsus-client/issues

Regards,
JM


#3

Hi,

Thanks for the response. Issue resolved now. :slight_smile:


#4

How did you resolve it?