WUA: pywintypes error 2147352567

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 18, 2022 - 2:09 PM

Good morning
I'm encountering this problem on a few machines (Win 10 pro, Win 7 embedded, Win 10 LTSD)...
The error status returns:

Code: Select all

0x80020009 (Une exception s’est produite.): 0x80240031 ((unable to get meaning for error code 0x80240031))
And the details are as follows:

Code: Select all

Ensure wuauserv Auto Update option is disabled
Scanning with windows updates rules:
{
 "direct_download": false,
 "default_allow": false,
 "include_potentially_superseded_updates": false,
 "filter": "Type='Software' or Type='Driver'",
 "download_scheduling": "5d",
 "install_scheduling": "12h",
 "install_delay": "2d",
 "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...
re-enabling wuauserv previous state: 0
(-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1894, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 692, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 291, in _run
    self.result = wua.install_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1335, in install_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 913, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 821, in updates
    search_job = self.update_searcher().BeginSearch(self.params.filter, scb_interface, None)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 783, in update_searcher
    self._update_service = self.update_service_manager().AddScanPackageService("Offline Sync Service", self.wsusscn2)
  File "C:\WINDOWS\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateServiceManager2.py", line 36, in AddScanPackageService
    ret = self._oleobj_.InvokeTypes(1610743814, LCID, 1, (9, 0), ((8, 1), (8, 1), (3, 49)),serviceName
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)

0x80020009 (Une exception s’est produite.): 0x80240031 ((unable to get meaning for error code 0x80240031))
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1894, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 692, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\enterprise.py", line 291, in _run
    self.result = wua.install_updates(self.force, uuids=self.uuids)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 1335, in install_updates
    self.scan_updates_status()
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 913, in scan_updates_status
    for update in self.updates():
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 821, in updates
    search_job = self.update_searcher().BeginSearch(self.params.filter, scb_interface, None)
  File "C:\Program Files (x86)\wapt\waptwua\client.py", line 783, in update_searcher
    self._update_service = self.update_service_manager().AddScanPackageService("Offline Sync Service", self.wsusscn2)
  File "C:\WINDOWS\TEMP\gen_py\3.8\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateServiceManager2.py", line 36, in AddScanPackageService
    ret = self._oleobj_.InvokeTypes(1610743814, LCID, 1, (9, 0), ((8, 1), (8, 1), (3, 49)),serviceName
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, None, None, None, 0, -2145124303), None)
Sometimes, instead of
pywintypes.com_error: (-2147352567, 'An exception occurred.', (0, None, None, None, 0, -2145124303)
I have
pywintypes.com_error: (-2147352567, 'An exception occurred.', (0, None, None, None, 0, -2146762487), None)

Any idea what's wrong?

Sincerely,
Tom
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 18, 2022 - 5:13 PM

Hello,

a search for 0x80240031 gives me these results:

https://www.bugsfighter.com/how-to-fix- ... x80240031/
https://www.auslogics.com/en/articles/f ... x80240031/

Could you try following the tutorials and see if that helps?

Simon
Locked