WUA Error

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 5, 2023 - 11:40

Good morning,

For some time now, updates have stopped installing on my 2016 and 2019 servers managed by WAPT.
No problems with my 2012R2s.
Here is the error, which is identical on all servers:

Code: Select all

Ensure wuauserv Auto Update option is disabled
Download all updates
Scanning with windows updates rules:
{
 "direct_download":false,
 "default_allow":true,
 "include_potentially_superseded_updates":false,
 "filter":"Type='Software' or Type='Driver'",
 "download_scheduling":"2h",
 "install_scheduling":"",
 "install_delay":"",
 "postboot_delay":"10m"
}
Windows updates rules have been changed
Looking for updates with filter: Type='Software' or Type='Driver'
   Connecting to local update searcher using offline wsusscn2 file...
   Offline Update searcher ready...
Waiting for WUA search to complete
WUA Search completed !
Done searching
re-enabling wuauserv previous state: 0
(-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -939523070), None)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 244, in _run
    self.result = wua.download_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1290, in download_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 914, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 849, in updates
    search_result = self.update_searcher().EndSearch(search_job)
  File "C:\Windows\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateSearcher3.py", line 45, in EndSearch
    ret = self._oleobj_.InvokeTypes(1610743817, LCID, 1, (9, 0), ((9, 1),),searchJob
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -939523070), None)

0x80020009 (Une exception s’est produite.): 0xc8000402 ((unable to get meaning for error code 0xc8000402))
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 244, in _run
    self.result = wua.download_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1290, in download_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 914, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 849, in updates
    search_result = self.update_searcher().EndSearch(search_job)
  File "C:\Windows\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateSearcher3.py", line 45, in EndSearch
    ret = self._oleobj_.InvokeTypes(1610743817, LCID, 1, (9, 0), ((9, 1),),searchJob
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -939523070), None)
I tried enabling and disabling the Windows Update service with the scan, but it didn't help...

THANKS.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 5, 2023 - 12:57

Hello,

I'm running an internal test with a Windows Server 2019 Standard, and it's working for now.


After some research, I

found that error code -2147352567 corresponds to 0x80020009 and
error code -939523070 corresponds to 0xc8000402.

Some Google searches mention problems with Windows Update channels. Have there been any changes in this area?

Are all 2019 and 2016 servers affected?

One common method is to delete the contents of %windir%\SoftwareDistribution\DataStore to clean up Windows Update.
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 9, 2023 - 10:15

Hi Simon,

yes, deleting the contents of the "SoftwareDistribution" folder seems to solve the problem.
I hadn't thought of that...

Thanks!
Locked