wua error

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
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

March 30, 2021 - 1:15 PM

Hello,
(version 1.8.2.7357)
and I have one workstation in the test panel that I can't update WUA.
The workstations are running Windows 10 2004 and most of them don't have any problems.
I saw there was a KB article for WUA problems (TIS-KB4571756), but it didn't change anything.
I even installed one of the latest Microsoft KB articles (KB4601319),
but I still get these errors at the end of the update scan
-----------------------------------------------------------------------------------------
Error scanning updates: 0x80020009 (An exception occurred.): 0x80070002 (The specified file could not be found.
)
Error scanning updates: 0x80020009 (An exception occurred.): 0x80070002 (The specified file could not be found.
)
re-enabling wuauserv previous state: 0

Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1892, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 653, in run
self._run()
File "C:\Program Files (x86)\wapt\waptenterprise\waptservice\enterprise.py", line 217, in _run
self.result = wua.scan_updates_status(self.force)
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 910, in scan_updates_status
for update in self.updates():
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 843, in updates
search_result = self.update_searcher().EndSearch(search_job)
File "C:\WINDOWS\TEMP\gen_py\2.7\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateSearcher3.py", line 45, in EndSearch
ret = self._oleobj_.InvokeTypes(1610743817, LCID, 1, (9, 0), ((9, 1),),searchJob
com_error: (-2147352567, 'An exception occurred.', (0, None, None, None, 0, -2147024894), None)

0x80020009 (An exception occurred.): 0x80070002 (The specified file could not be found.
)
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1892, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 653, in run
self._run()
File "C:\Program Files (x86)\wapt\waptenterprise\waptservice\enterprise.py", line 217, in _run
self.result = wua.scan_updates_status(self.force)
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 910, in scan_updates_status
for update in self.updates():
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 843, in updates
search_result = self.update_searcher().EndSearch(search_job)
File "C:\WINDOWS\TEMP\gen_py\2.7\B596CC9F-56E5-419E-A622-E01BB457431Ex0x2x0\IUpdateSearcher3.py", line 45, in EndSearch
ret = self._oleobj_.InvokeTypes(1610743817, LCID, 1, (9, 0), ((9, 1),),searchJob
com_error: (-2147352567, 'An exception occurred.', (0, None, None, None, 0, -2147024894), None)
----------------------------------------------------------------------------------------------------------------------------------

Do you have an idea

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

March 30, 2021 - 1:45 PM

On the problematic machine:

- Stop the wapt service.

Delete C:\Windows\Temp\gen_py

. - Start the wapt service.

Can you tell me if it's better after that?

The latest 2.0 version includes a patch like this.
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

March 30, 2021 - 2:04 PM

Hello,

same problem.
I also tried deleting all the contents of c:\windows\temp
and rebooting,
but I still get the same error.
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

April 1, 2021 - 12:32

Hello,
I upgraded the WAPT server to version 2.0 and updated the clients.
The machine is still displaying the error:

"Waiting for WUA search to complete
. WUA Search completed!"
Done searching

re-enabling wuauserv previous state: 0

Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1958, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
self._run()
File "C:\Program Files (x86)\wapt\waptenterprise\waptservice\enterprise.py", line 230, in _run
self.result = wua.scan_updates_status(self.force)
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 889, in scan_updates_status
for update in self.updates():
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 824, 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, 'An exception has occurred.', (0, None, None, None, 0, -2147024894), None)

0x80020009 (An exception occurred.): 0x80070002 (The specified file was not found.
)
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1958, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
self._run()
File "C:\Program Files (x86)\wapt\waptenterprise\waptservice\enterprise.py", line 230, in _run
self.result = wua.scan_updates_status(self.force)
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 889, in scan_updates_status
for update in self.updates():
File "C:\Program Files (x86)\wapt\waptenterprise\waptwua\client.py", line 824, 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, 'An exception occurred produced.', (0, None, None, None, 0, -2147024894), None)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 1, 2021 - 2:50 PM

Strange, I can't reproduce the problem here. I have another lead.

Can you tell me if the file C:\Program Files (x86)\wapt\waptwua\cache\wsusscn2.cab on your machine has the following hashes:

SHA256: 8AFB76A64C12E6901A99BDA167D37396379919A94FE2BBE3726BACD2C36EE054
SHA1: DD2F24FCE6EB57DB8F13B24DF2AC0C81E0FC7A44

Simon
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

April 1, 2021 - 3:03 PM

the hash is the same

PS C:\Program Files (x86)\wapt\waptwua\cache> Get-FileHash .\wsusscn2.cab

Algorithm Hash Path
--------- ---- ----
SHA256 8AFB76A64C12E6901A99BDA167D37396379919A94FE2BBE3726BACD2C36EE054 C:\Program Files (x86)\wapt\waptwua\cache\wsusscn2.cab
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

April 1, 2021 - 4:02 PM

With the information provided, do you have a way of telling me which file it cannot find when error
0x80020009 (An exception has occurred.): 0x80070002 (The specified file could not be found.)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 1, 2021 - 4:39 PM

The reported errors are actually Windows errors, so it's Microsoft telling us this.

You can try deleting the contents of the folder: C:/Windows/SoftwareDistribution

https://www.ionos.fr/digitalguide/serve ... x80070002/

If one of the solutions in this link resolves the issue, we can create a Wapt package.
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

April 1, 2021 - 5:15 PM

Okay, thanks,
I'll check the Windows side.
If all else fails, I'll try with an update from 20h2.
Thanks.
jptw
Messages: 32
Registration: July 8, 2020 - 11:08 AM

April 7, 2021 - 12:48 PM

Hello,

bad news and good news!!

Following the 20H2 update on the WUA problem computer, I still have the same issue. :( :(

After a long search, I've identified the problem.
Don't ask me why, but the culprit is " Microsoft Silverlight " :o (you might have an idea).
Once uninstalled from the computer, rebooted, and ran the WUA scan again: no more errors, and the updates are correctly displayed.

So, as a reminder, the errors were:
--------------------------------------------------------------------------------
pywintypes.com_error: (-2147352567, 'An exception occurred.', (0, None, None, None, 0, -2147024894), None)

0x80020009 (An exception occurred.): 0x80070002 (The specified file could not be found.)
--------------------------------------------------------------------------------

Well, that's one good thing done, I can now continue my tests more calmly. ;)
Locked