Closed sapna25 closed 7 years ago
Hello @sapna25
The error code 8024401C correspond to a HTTP timeout from the Update server. Could you describe your WSUS server infrastructure ?
From your error report, I guess the current client is a Windows Server 2012R2 (or Windows 8.1) do you have other version of Windows trying to download? Are they impacted by this timeout error?
Hi @Annih
My client is a Windows Server 2012R2 and I don't have any other version of windows in my infrastructure.I am trying to download and install patches from my WSUS server and whenever I run chef-client from Rudeck Job on my client node I am getting this error. If set proxies on node then it works., but if I unset it doesn't work.So what will be the exact issue? My server and client node is in the same network so why do I need to set proxy? I am using WINRM to make connection from Rundeck to Windows.
Hi @Annih
My client is a Windows Server 2012R2 and I don't have any other version of windows in my infrastructure.I am trying to download and install patches from my WSUS server and whenever I run chef-client from Rudeck Job on my client node I am getting this error. If set proxies on node then it works., but if I unset it doesn't work.So what will be the exact issue? My server and client node is in the same network so why do I need to set proxy? I am using WINRM to make connection from Rundeck to Windows.
Hello @sapna25 Interesting... What kind of proxy are you setting up? Did you debug the WSUS server? Is there any error logs?
Did you try to run chef-client locally? Without rundeck and WinRM?
Locally its perfectly running but when I try to run it through rundeck as powershell command (chef-client) it shows above errors.I dont want to use any proxies then how should I do it?
Hi @Annih
Locally its perfectly running but when I try to run it through rundeck as powershell command (chef-client) it shows above errors.I dont want to use any proxies then how should I do it?
Humm ok, when running chef via WinRM you're shell is running in a "remoting context", this may introduce many weird behavior.
Would it be OK for you to create a schedule task to run chef? This is a common way to remotely perform "local tasks".
This would mean that your rundeck job should:
I'm suggesting that, because debugging Windows Update on WinRM context is not trivial :)
Starting Chef Client, version 13.5.3 [2017-10-27T00:27:16-07:00] INFO: Chef 13.5.3 [2017-10-27T00:27:16-07:00] INFO: Platform: x64-mingw32 [2017-10-27T00:27:16-07:00] INFO: Chef-client pid: 1340 [2017-10-27T00:27:16-07:00] INFO: The plugin path C:\chef\ohai\plugins does not exist. Skipping... [2017-10-27T00:27:20-07:00] INFO: Run List is [role[updated_windows_server], recipe[wsus-client]] [2017-10-27T00:27:20-07:00] INFO: Run List expands to [wsus-client] [2017-10-27T00:27:20-07:00] INFO: Starting Chef Run for WindowsNode1 [2017-10-27T00:27:20-07:00] INFO: Running start handlers [2017-10-27T00:27:20-07:00] INFO: Start handlers complete. [2017-10-27T00:27:20-07:00] INFO: Error while reporting run start to Data Collector. URL: https://chefservertest1/organi zations/capgemini/data-collector Exception: 404 -- 404 "Not Found" (This is normal if you do not have Chef Automate) resolving cookbooks for run list: ["wsus-client"] [2017-10-27T00:27:20-07:00] INFO: Loading cookbooks [wsus-client@2.0.0] Synchronizing Cookbooks:
wsus_client_update[WSUS updates] action download[2017-10-27T00:27:21-07:00] INFO: Processing wsus_client_update[WSUS updates] action download (wsus-client::update line 25)
================================================================================ Error executing action
download
on resource 'wsus_client_update[WSUS updates]'WIN32OLERuntimeError
(in OLE method `Search': ) OLE error code:8024401C in
[2017-10-27T00:27:38-07:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers: [2017-10-27T00:27:38-07:00] ERROR: Running exception handlers Running handlers complete [2017-10-27T00:27:38-07:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 22 seconds [2017-10-27T00:27:38-07:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out [2017-10-27T00:27:38-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2017-10-27T00:27:38-07:00] FATAL: WIN32OLERuntimeError: wsus_client_update[WSUS updates] (wsus-client::update line 25) had an error: WIN32OLERuntimeError: (in OLE method `Search': ) OLE error code:8024401C in