criteo-cookbooks / wsus-client

Chef Cookbook to install and configure client for Windows Server Update Services (WSUS)
Apache License 2.0
15 stars 19 forks source link

wuauclt path not working with latest chef-client (12.9.41) #22

Closed jdgoins closed 8 years ago

jdgoins commented 8 years ago

When running wsus-client using chef-client 12.9.41, the below error is thrown. The path is being seen as invalid. This works properly with chef-client 12.8.1.

[2016-05-05T10:15:15-06:00] ERROR: Running exception handlers [2016-05-05T10:15:15-06:00] ERROR: Exception handlers complete [2016-05-05T10:15:15-06:00] INFO: Sending resource update report (run-id: b3c02539-052f-474a-943a-55c13e9937a6) [2016-05-05T10:15:15-06:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out [2016-05-05T10:15:15-06:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2016-05-05T10:15:15-06:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Force Windows update detection cycle] (wsus-client::configure line 102) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' ---- Begin output of c:\windows\sysnative\wuauclt.exe /ResetAuthorization /DetectNow ---- STDOUT: STDERR: The system cannot find the path specified. ---- End output of c:\windows\sysnative\wuauclt.exe /ResetAuthorization /DetectNow ---- Ran c:\windows\sysnative\wuauclt.exe /ResetAuthorization /DetectNow returned 1 [2016-05-05T10:15:27-06:00] INFO: Child process exited (pid: 884)

Annih commented 8 years ago

Hello @jdgoins

Thanks for your feedback, this has been fixed by #21, which has not been released yet. I assume you are using supermarket version, try using latest version of master branch

I'll try to release soon :)

jdgoins commented 8 years ago

Looks like it's working in my tests. Thanks!