# Error executing action \`download\` on resource 'wsus\_client\_update\[WSUS updates\]

**URL:** <https://discourse.chef.io/t/error-executing-action-download-on-resource-wsus-client-update-wsus-updates/13260>\
**Category:** Chef Infra (archive)\
**Created:** [July 5, 2018, 5:42am UTC](https://discourse.chef.io/t/error-executing-action-download-on-resource-wsus-client-update-wsus-updates/13260 "2018-07-05T05:42:13Z")\
**Posts on this page:** 3\
**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:** [July 5, 2018, 5:42am UTC](https://discourse.chef.io/t/error-executing-action-download-on-resource-wsus-client-update-wsus-updates/13260/1 "2018-07-05T05:42:13Z")

</div>

Hi All,

I’m trying to install windows updates using wsus-client cookbook. When I log into a server and run this cookbook I see no error and updates working properly. When I use the same cookbook with ‘packer’ to windows update I get the below error.

So far I came to know that this is ‘Access denied’ error. Can someone help me what access being denied here or any permission need to provided?

00:06:08.927 amazon-ebs: ================================================================================e[0m  
00:06:08.928 amazon-ebs: e[31mError executing action `download` on resource ‘wsus\_client\_update[WSUS updates]‘e[0m  
00:06:08.929 amazon-ebs: ================================================================================e[0m  
00:06:08.929 amazon-ebs:  
00:06:08.930 amazon-ebs: e[0mWIN32OLERuntimeErrore[0m  
00:06:08.930 amazon-ebs: --------------------e[0m  
00:06:08.931 amazon-ebs: (in OLE method `CreateUpdateDownloader': ) 00:06:08.931 amazon-ebs: e[0m OLE error code:80070005 in <Unknown> 00:06:08.932 amazon-ebs: e[0m <No Description> 00:06:08.932 amazon-ebs: e[0m HRESULT error code:0x80020009 00:06:08.932 amazon-ebs: e[0m Exception occurred.e[0m 00:06:08.933 amazon-ebs: 00:06:08.933 amazon-ebs: e[0mResource Declaration:e[0m 00:06:08.934 amazon-ebs: ---------------------e[0m 00:06:08.935 amazon-ebs: # In c:/chef-repo/.chef/local-mode-cache/cache/cookbooks/wsus-client/recipes/update.rb 00:06:08.935 amazon-ebs: e[0m 00:06:08.935 amazon-ebs: e[0m 25: wsus_client_update 'WSUS updates' do 00:06:08.936 amazon-ebs: e[0m 26: node['wsus_client']['update'].each { |property, value| send(property, value) } 00:06:08.937 amazon-ebs: e[0m 27: end 00:06:08.937 amazon-ebs: e[0m 00:06:08.938 amazon-ebs: e[0mCompiled Resource:e[0m 00:06:08.938 amazon-ebs: ------------------e[0m 00:06:08.938 amazon-ebs: # Declared in c:/chef-repo/.chef/local-mode-cache/cache/cookbooks/wsus-client/recipes/update.rb:25:in`from\_file’  
00:06:08.939 amazon-ebs: e[0m  
00:06:08.939 amazon-ebs: e[0mwsus\_client\_update(“WSUS updates”) do  
00:06:08.940 amazon-ebs: e[0m action [:download, :install]  
00:06:08.940 amazon-ebs: e[0m retries 0  
00:06:08.941 amazon-ebs: e[0m retry\_delay 2  
00:06:08.942 amazon-ebs: e[0m default\_guard\_interpreter :default  
00:06:08.942 amazon-ebs: e[0m declared\_type :wsus\_client\_update  
00:06:08.942 amazon-ebs: e[0m cookbook\_name “wsus-client”  
00:06:08.943 amazon-ebs: e[0m recipe\_name “update”  
00:06:08.943 amazon-ebs: e[0m download\_timeout 3600  
00:06:08.944 amazon-ebs: e[0m install\_timeout 3600  
00:06:08.945 amazon-ebs: e[0m reboot\_delay 1  
00:06:08.945 amazon-ebs: e[0mend  
00:06:08.945 amazon-ebs: e[0m  
00:06:08.946 amazon-ebs: e[0mPlatform:e[0m  
00:06:08.946 amazon-ebs: ---------e[0m  
00:06:08.947 amazon-ebs: i386-mingw32e[0m  
00:06:08.947 amazon-ebs:  
00:06:08.948 amazon-ebs: e[0m[2018-07-04T10:49:34+00:00] INFO: Running queued delayed notifications before re-raising exception  
00:06:08.948 amazon-ebs: [2018-07-04T10:49:34+00:00] ERROR: Running exception handlers  
00:06:08.949 amazon-ebs: [2018-07-04T10:49:34+00:00] ERROR: Exception handlers complete  
00:06:08.949 amazon-ebs: [2018-07-04T10:49:34+00:00] FATAL: Stacktrace dumped to c:/chef-repo/.chef/local-mode-cache/cache/chef-stacktrace.out  
00:06:08.950 amazon-ebs: [2018-07-04T10:49:34+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report  
00:06:08.951 amazon-ebs: [2018-07-04T10:49:34+00:00] FATAL: WIN32OLERuntimeError: wsus\_client\_update[WSUS updates] (wsus-client::update line 25) had an error: WIN32OLERuntimeError: (in OLE method `CreateUpdateDownloader’: )  
00:06:08.951 amazon-ebs: OLE error code:80070005 in   
00:06:08.952 amazon-ebs:   
00:06:08.952 amazon-ebs: HRESULT error code:0x80020009  
00:06:08.953 amazon-ebs: Exception occurred.  
00:06:08.955 ==\> amazon-ebs: Terminating the source AWS instance…

Please help!!!

Thanks,  
Waseem

---

<div class="post-metadata">

**Author:** ![joerod](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@joerod](https://discourse.chef.io/u/joerod)\
**Post date:** [July 16, 2018, 11:00pm UTC](https://discourse.chef.io/t/error-executing-action-download-on-resource-wsus-client-update-wsus-updates/13260/2 "2018-07-16T23:00:08Z")

</div>

Make sure you can download and connect to your wsus server via a script and confirm that works. Most of the issues I’ve had with this cookbook ended up being communication issues with wsus.

---

<div class="post-metadata">

**Author:** ![dr.lundy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/dr.lundy/32/1913_2.png) [@dr.lundy](https://discourse.chef.io/u/dr.lundy)\
**Post date:** [July 16, 2018, 11:43pm UTC](https://discourse.chef.io/t/error-executing-action-download-on-resource-wsus-client-update-wsus-updates/13260/3 "2018-07-16T23:43:37Z")

</div>

It’s likely a UAC issue… My work around was to create windows task and have it do a chef-client run specifying the recipe or cookbook.
