# Error while using Wsus-client Cookbook

**URL:** <https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446>\
**Category:** Chef Infra (archive)\
**Created:** [September 19, 2016, 12:16pm UTC](https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446 "2016-09-19T12:16:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![waseemahammed](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/waseemahammed/32/1708_2.png) [@waseemahammed](https://discourse.chef.io/u/waseemahammed)\
**Post date:** [September 19, 2016, 12:16pm UTC](https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446/1 "2016-09-19T12:16:00Z")

</div>

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: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’  
(eval):2:in `block in action\_download’

Please HELP!!

---

<div class="post-metadata">

**Author:** ![Jeremy\_Mauro](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jeremy\_Mauro](https://discourse.chef.io/u/Jeremy_Mauro)\
**Post date:** [September 19, 2016, 2:43pm UTC](https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446/2 "2016-09-19T14:43:15Z")

</div>

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](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](https://github.com/criteo-cookbooks/wsus-client/issues)

Regards,  
JM

---

<div class="post-metadata">

**Author:** ![waseemahammed](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/waseemahammed/32/1708_2.png) [@waseemahammed](https://discourse.chef.io/u/waseemahammed)\
**Post date:** [September 19, 2016, 2:46pm UTC](https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446/3 "2016-09-19T14:46:19Z")

</div>

> [@Jeremy\_Mauro](#):
>
> 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](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: [Issues · criteo-cookbooks/wsus-client · GitHub](https://github.com/criteo-cookbooks/wsus-client/issues)

Hi,

Thanks for the response. Issue resolved now. 🙂

---

<div class="post-metadata">

**Author:** ![ant4r3s](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ant4r3s/32/1807_2.png) [@ant4r3s](https://discourse.chef.io/u/ant4r3s)\
**Post date:** [June 27, 2018, 8:37am UTC](https://discourse.chef.io/t/error-while-using-wsus-client-cookbook/9446/4 "2018-06-27T08:37:39Z")

</div>

How did you resolve it?
