Windows Update ERROR DOWNLOADING WSUSSCAN

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
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 27, 2020 - 11:10

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!
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 27, 2020 - 11:15

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 27, 2020 - 1:53 PM

Can you try using a web browser?

https://wapt.undomaine.fr/waptwua/wsusscn2.cab

To verify that the file is indeed present.

the order

Code: Select all

wapt-get update
Does it work?

Simon
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 27, 2020 - 4:16 PM

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?
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 27, 2020 - 4:22 PM

I completely forgot to give you the specifications of my WAPT infrastructure.

Server: Debian;
Administration machine: Win10 x64
; Managed machines: Win10 x64
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 28, 2020 - 09:07

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:

Code: Select all

wapt-get waptwua-scan
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 28, 2020 - 09:52

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
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 28, 2020 - 10:13

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?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 28, 2020 - 11:18

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
Benoit ALBERT
Messages: 9
Registration: May 25, 2020 - 4:04 p.m.

May 28, 2020 - 2:46 PM

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?
Locked