[SOLVED] Console crash

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
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

May 2, 2018 - 10:08

The most amazing thing is that if I type a search into the console, it works.
2018-05-02 10_07_31-WAPT console.png
2018-05-02 10_07_31-WAPT console.png (9.71 KB) Viewed 6334 times
This only happens if I leave the search field empty.
2018-05-02 10_08_02-WAPT console.png
2018-05-02 10_08_02-WAPT console.png (14.91 KB) Viewed 6334 times
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

May 2, 2018 - 10:17

Can you enable debug mode (View / Preferences / Show debug information, and also check "Show debug information" at the bottom of the window, which increases the log level to DEBUG)?

Then refresh the packages in the Private Repository tab.

And retrieve the trace at the bottom of the window.
Tranquil IT
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

May 2, 2018 - 10:31

Here's what happens next:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1895, in search
    for package in sorted(result,reverse=True,cmp=sort_no_version):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1890, in sort_no_version
    return cmp((package1.package,package1.architecture,package1.locale,package1.maturity,PackageVersion(package1.version)),(package2.package,package2.architecture,package2.locale,package2.maturity,PackageVersion(package2.version)))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 231, in PackageVersion
    return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '0.1'
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1895, in search
    for package in sorted(result,reverse=True,cmp=sort_no_version):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1890, in sort_no_version
    return cmp((package1.package,package1.architecture,package1.locale,package1.maturity,PackageVersion(package1.version)),(package2.package,package2.architecture,package2.locale,package2.maturity,PackageVersion(package2.version)))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 231, in PackageVersion
    return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '0.1'
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

May 2, 2018 - 10:37

OK...
The version number decoding doesn't like versions in the form !
1.2.3-0.1
(the second part after the hyphen must be an integer).
One of the culprits is:
/var/www/wapt/ymg-ms-teams_1.1.0.2253-0.1_all.wapt

. It needs to be edited and the ".1" removed.

I'll add a test to make sure the version has the correct format in the package build.

The version must be either
pure integer: 1 (
version only), 1.2.3.4
(version-packaging), or 1.2.3.4-1
(packaging is an integer)
Tranquil IT
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

May 2, 2018 - 11:17

Ah, that's interesting!

I'm correcting it....
uploads...

Code: Select all

[ /var/www/wapt ]
rcounhaye@wapt $ sudo rm ymg-ms-teams_1.1.0.2253-0.1_all.wapt
rcounhaye@wapt $ sudo wapt-scanpackages -f -ldebug /var/www/wapt
....
console relaunch + refresh software inventory...

Done.

And it looks like it's working! GG :)
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
Locked