Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation failed. (Error code 2359299 - Result code 3) #41

Open
daxgames opened this issue Apr 20, 2019 · 5 comments
Open

Operation failed. (Error code 2359299 - Result code 3) #41

daxgames opened this issue Apr 20, 2019 · 5 comments

Comments

@daxgames
Copy link

daxgames commented Apr 20, 2019

I am using test-kitchen to test recipes using WinRM Elevated with Windows 2012R2. kitchen converge works the first time I run it and applies patches correctly and reboots the server.

Upon reboot Windows update claims there are 16 more patches available for install. Running kitchen converge a second time installs one update, verified using systeminfo, and results in the error:

Note: Before the error the Control Panel\System and Security\Windows Update changes to to indicate a reboot is required to continue

       Recipe: wsus-client::update
         * wsus_client_update[WSUS updates] action download
           - downloading 2 update(s)
         * wsus_client_update[WSUS updates] action install

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

           RuntimeError
           ------------
           Operation failed. (Error code 2359299 - Result code 3)

           Resource Declaration:
           ---------------------
           # In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/wsus-client/recipes/update.rb

            25: wsus_client_update 'WSUS updates' do
            26:   node['wsus_client']['update'].each { |property, value| send(property, value) }
            27: end

           Compiled Resource:
           ------------------
           # Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/wsus-client/recipes/update.rb:25:in `from_file'

           wsus_client_update("WSUS updates") do
             action [:download, :install]
             updated true
             default_guard_interpreter :default
             declared_type :wsus_client_update
             cookbook_name "wsus-client"
             recipe_name "update"
             download_timeout 3600
             install_timeout 3600
             handle_reboot false
             reboot_delay 1
           end

           System Info:
           ------------
           chef_version=13.6.4
           platform=windows
           platform_version=6.3.9600
           ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
           program_name=C:/opscode/chef/bin/chef-client
           executable=C:/opscode/chef/bin/chef-client

Accessing the Windows GUI and pressing Install Updates without a reboot in Control Panel\System and Security\Windows Update claims to install the remaining updates but this is not apparent in systeminfo output. However checking for updates now says 67 updates are now available.

Rebooting and rerunning kitchen converge results in the same error above except this time it is during the download action.

Possible explanation but how to prevent it.

@sredne
Copy link

sredne commented May 7, 2019

I am also seeing this issue. According to https://docs.microsoft.com/de-de/security-updates/windowsupdateservices/18127393 it translates to Result Code 0x240003, which means it completed to install, but with errors. Should we have an option to ignore the errors and have it not fail out?

@daxgames
Copy link
Author

daxgames commented May 7, 2019

My thoughts exactly.

@Annih
Copy link
Contributor

Annih commented May 8, 2019

Did you try with the handle_reboot property set to true?

@daxgames
Copy link
Author

daxgames commented May 8, 2019

I did and it did not help.

@sredne
Copy link

sredne commented May 9, 2019

I would like to have the ability to run the wsus-update without needing a reboot during the chef-client run and control that outside of that download/install call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants