Page 1 of 2

wua error

Published: March 30, 2021 - 1:15 PM
by jptw
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

Re: wua error

Published: March 30, 2021 - 1:45 PM
by sfonteneau
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.

Re: wua error

Published: March 30, 2021 - 2:04 PM
by jptw
Hello,

same problem.
I also tried deleting all the contents of c:\windows\temp
and rebooting,
but I still get the same error.

Re: wua error

Published: April 1, 2021 - 12:32 PM
by jptw
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)

Re: wua error

Published: April 1, 2021 - 2:50 PM
by sfonteneau
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

Re: wua error

Published: April 1, 2021 - 3:03 PM
by jptw
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

Re: wua error

Published: April 1, 2021 - 4:02 PM
by jptw
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.)

Re: wua error

Published: April 1, 2021 - 4:39 PM
by sfonteneau
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.

Re: wua error

Published: April 1, 2021 - 5:15 PM
by jptw
Okay, thanks,
I'll check the Windows side.
If all else fails, I'll try with an update from 20h2.
Thanks.

Re: wua error

Published: April 7, 2021 - 12:48 PM
by jptw
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. ;)