Open pvandervelde opened 4 years ago
I've merged this and other change, can you please try with the artifacts from https://github.com/rgl/packer-provisioner-windows-update/actions/runs/209091335 and let me known how it goes?
I'll update our build container when I get back to the office on monday. Thanks for merging it so quickly!
We have been running Packer (1.6.0) and the windows-update plugin (0.9.0) to build Windows 2019 datacenter VM images. In about 50% of the cases we see the following error:
In cases where two builds fail they often find the same updates but don't have the same download sizes and in cases where it works often Windows Updates finds one or two additional updates. To us this looked like an issue where one of the updates wants a reboot or one of the downloads is corrupt or something.
As a solution we have created a version of the plugin where we catch the errors during install and then reboot the machine. This seems to have fixed the issue in our case. I will put in a PR shortly with the changes and link it to this issue.
Also our issue seems related to #15