Page 1 of 2
Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 27, 2020 - 11:10 AM
by Benoit ALBERT
Hello,
I'm trying to set up Windows Update management via Wapt, but I'm getting an error in the console: "ERROR DOWNLOADING WSUSSCAN". The error details show:
Unable to refresh wsusscan cab, using old one. (error: ConnectionError: HTTPSConnectionPool(host='wapt.undomaine.fr', port=443): Max retries exceeded with url: /waptwua/wsusscn2.cab (Caused by NewConnectionError('
This seems strange to me because I've already set up an SSL certificate in /opt/wapt/waptserver/ssl and I can connect via HTTPS.
If anyone can help, I would be very grateful because I'm completely stuck at this point; I feel like I've missed something.
Thanks!
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 27, 2020 - 11:15 AM
by Benoit ALBERT
As additional information, my agent configuration was done graphically. The waptwua section outputs:
[waptwua]
enabled=true
default_allow=true
install_at_shutdown=true
install_delay=21
download_scheduling=2d
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 27, 2020 - 1:53 PM
by sfonteneau
Can you try using a web browser?
https://wapt.undomaine.fr/waptwua/wsusscn2.cab
To verify that the file is indeed present.
the order
Does it work?
Simon
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 27, 2020 - 4:16 PM
by Benoit ALBERT
I successfully downloaded the wsusscn2.cab file using the link you provided.
The command `wapt-get update` returns:
About to speak to waptservice...
Updating the list of available packages
Get packages index
: 0% complete
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1746, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 619, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 766, in _run
self.result = self.wapt.update(force=self.force,register=self.notify_server_on_finish)
File "C:\Program Files (x86)\wapt\common.py", line 4407, in update
"upgrades": self.list_upgrade(),
File "C:\Program Files (x86)\wapt\common.py", line 5321, in list_upgrade
depends = self.check_depends(result['install']+result['upgrade']+result['additional'])
File "C:\Program Files (x86)\wapt\common.py", line 4551, in check_depends
old_matches = self.waptdb.installed_matching(package_request)
File "C:\Program Files (x86)\wapt\common.py", line 1321, in installed_matching
return q[0] if q and package_cond.is_matched_by(q[0]) else None
File "C:\Program Files (x86)\wapt\waptpackage.py", line 620, in is_matched_by
self._is_matched_version(package_entry.version) and
File "C:\Program Files (x86)\wapt\waptpackage.py", line 561, in _is_matched_version
version = PackageVersion(version)
File "C:\Program Files (x86)\wapt\waptpackage.py", line 422, in PackageVersion
return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '10759.0-0'
ValueError: invalid literal for int() with base 10: '10759.0-0'
Is there a problem with the agent?
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 27, 2020 - 4:22 PM
by Benoit ALBERT
I completely forgot to give you the specifications of my WAPT infrastructure.
Server: Debian;
Administration machine: Win10 x64
; Managed machines: Win10 x64
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 28, 2020 - 09:07
by sfonteneau
This is unrelated, but it seems that one of your WAPT packages has a strange version, something like this:
10759.0-0
In an administrator command prompt, can you do the following:
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 28, 2020 - 09:52
by Benoit ALBERT
The order took a very long time and seemed blocked at certain times. The result is:
C:\Windows\system32>wapt-get waptwua-scan
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Ensure wuauserv Auto Update option is disabled
Scanning with windows updates rules:
{
"default_allow": true,
"install_delay": "21",
"download_scheduling": "2d",
"filter": "Type='Software' or Type='Driver'",
"allow_direct_download": false,
"offline": true,
"install_scheduling": null
}
Connecting to local update searcher using offline wsusscn2 file...
Offline Update searcher ready...
Looking for updates with filter: Type='Software' or Type='Driver'
Waiting for WUA search to complete
Done search
WUA Search completed !
Updates scan done.
Writing status in local wapt DB
Status: OK
(16, 0, 0)
None
re-enabling wuauserv previous state: 0
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 28, 2020 - 10:13
by Benoit ALBERT
The WUA status changed to "OK" on the machine where I ran the command. However, when I run a Windows update on that machine... An error comes out:
File "C:\Program Files (x86)\wapt\waptpackage.py", line 561, in _is_matched_version
version = PackageVersion(version)
File "C:\Program Files (x86)\wapt\waptpackage.py", line 422, in PackageVersion
return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '10759.0-0'
ValueError: invalid literal for int() with base 10: '10759.0-0'
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1746, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 619, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 766, in _run
self.result = self.wapt.update(force=self.force,register=self.notify_server_on_finish)
File "C:\Program Files (x86)\wapt\common.py", line 4407, in update
"upgrades": self.list_upgrade(),
File "C:\Program Files (x86)\wapt\common.py", line 5321, in list_upgrade
depends = self.check_depends(result['install']+result['upgrade']+result['additional'])
File "C:\Program Files (x86)\wapt\common.py", line 4551, in check_depends
old_matches = self.waptdb.installed_matching(package_request)
File "C:\Program Files (x86)\wapt\common.py", line 1321, in installed_matching
return q[0] if q and package_cond.is_matched_by(q[0]) else None
File "C:\Program Files (x86)\wapt\waptpackage.py", line 620, in is_matched_by
self._is_matched_version(package_entry.version) and
File "C:\Program Files (x86)\wapt\waptpackage.py", line 422, in PackageVersion
return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '10759.0-0'
It indeed seems there I'm getting an error with "10759.0-0". How can I find out which package is causing the problem?
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 28, 2020 - 11:18
by sfonteneau
For Wua, it's OK. The wsusscn2.cab file wasn't present in your first test, in my opinion.
I think the package version number isn't complete.
In your repository, can you tell me if any package has a version number similar to
10759.0-0
and give me the original version number of the package?
Simon
Re: Windows Update ERROR DOWNLOADING WSUSSCAN
Published: May 28, 2020 - 2:46 PM
by Benoit ALBERT
No, I don't currently have a package with a version number that matches that... Perhaps it's from an old package I developed for practice and then deleted. Is there a way to clear the repository cache?