[RESOLVED] Agent error after upgrade from 2.2.2 to 2.3; unable to generate the new agent

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
Locked
Welsh
Messages: 15
Registration: December 6, 2022 - 9:44 AM

April 20, 2023 - 11:20

Hello,

I followed the usual recommendations for upgrading WAPT from version 2.2.2 to 2.3.
The server is working perfectly and I have the following status:
WAPT Server Version: 2.3.0.13516
WAPT Agent Version: 2.2.2.12388
WAPT Setup Version: 2.3.0.13516
WAPT Deploy Version: 2.3.0.13516
Database Status: OK

I retrieved the waptsetup.exe file to update my console on a Windows Server 2019 Terminal Server.
Everything went smoothly.
The problem appears when opening the console. During the WAPTAgent check, I have to generate a new agent (which seems logical), but once everything is filled in (nothing is actually changed, just the DEV field instead of PROD initially ;) ), a window appears with the following error message:
(title) waptconsole
(content) Error creating waptagent.exe: Stuff should be pure Text for
C:\Users\MONUSER\AppData\Local\waptco..\waptsetup.exe.

I haven't found any information about this type of error on the forum. Can you help me?
Thank you in advance.
Baptiste
- 1 WAPT 2.5.5.15602 Enterprise server (3000 workstations) + 1 WAPT 2.4.0.14058 Enterprise server (10000 workstations)
- WAPT server OS: Linux REHL 8.7
- Administration/package creation machine OS: Windows Server 2019 v1809
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 20, 2023 - 4:35 PM

Hi Baptiste,

I think there must be a non-ASCII character in the agent's description or configuration.

In WAPT versions 2.2 and earlier, the WAPT agent was regenerated using innosetup (the executable installer creator), incorporating the agent's parameters specific to your network installation (server URL, certificate, configuration, etc.). This had the disadvantage of removing the cryptographic signature of waptsetup.exe and generating false positives with antivirus software.

To avoid this issue, in version 2.3, the agent parameters (server URL, certificate, configuration, etc.) are stored in the executable's certificate area to prevent modifying the signature during agent regeneration.

However, there are some restrictions on what can be placed in this area. We would need to identify the problematic character(s).

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

April 20, 2023 - 4:56 PM

The executable file used to distribute the agent configuration is limited to 32KB.
The error message may indicate that this limit has been exceeded.

Typically, this occurs if you are verifying HTTPS certificates with a large bundle (for example, the path to the complete CA bundle cacert.pem) and not just the CA that signed your HTTPS server certificate.

If this is the case, when generating the agent, you can replace the "Path to certificate authority files for HTTPS servers" with simply the number 1, which means verifying with the system CAs.
Tranquil IT
Welsh
Messages: 15
Registration: December 6, 2022 - 9:44 AM

April 20, 2023 - 4:58 PM

Hi Denis,
I just opened a support ticket, sorry.
I've just looked again and I don't see any non-ASCII characters, nor any spaces at the beginning or end of entries in the configuration window.
Yes, I understand from another thread that the configuration of the agent to be deployed has changed.
In the agent configuration interface, I have the impression that I've done everything "properly," unless it's directly related to the "Issuer DN" of the certificates, where there's an @ for the email field, = signs for each field value, and commas to separate the fields?
I don't know where else to look. ;)
Baptiste
- 1 WAPT 2.5.5.15602 Enterprise server (3000 workstations) + 1 WAPT 2.4.0.14058 Enterprise server (10000 workstations)
- WAPT server OS: Linux REHL 8.7
- Administration/package creation machine OS: Windows Server 2019 v1809
Welsh
Messages: 15
Registration: December 6, 2022 - 9:44 AM

April 20, 2023 - 4:59 PM

Thank you Mr. Touvet,
I will try that.
- 1 WAPT 2.5.5.15602 Enterprise server (3000 workstations) + 1 WAPT 2.4.0.14058 Enterprise server (10000 workstations)
- WAPT server OS: Linux REHL 8.7
- Administration/package creation machine OS: Windows Server 2019 v1809
Welsh
Messages: 15
Registration: December 6, 2022 - 9:44 AM

April 20, 2023 - 5:05 PM

Re,
Ah yes, that was it, the generation just completed correctly without any errors.
I'll test it right away on my DEV machines.
I'll give you feedback so I can close the ticket then.
:cross_finger:
- 1 WAPT 2.5.5.15602 Enterprise server (3000 workstations) + 1 WAPT 2.4.0.14058 Enterprise server (10000 workstations)
- WAPT server OS: Linux REHL 8.7
- Administration/package creation machine OS: Windows Server 2019 v1809
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 21, 2023 - 10:16

Thanks for the feedback :-) . I'm closing the topic,
Denis.
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked