[RESOLVED] Several problems following update 2.2.3 => 2.3

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
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

February 20, 2023 - 10:52

As things stand, apart from intervention from the Wapt team, I think I've exhausted all the options available to us.

What's somewhat reassuring is that at least two of us are experiencing the problem, albeit with different server configurations. So, for me, that rules out an infrastructure-related issue.
User avatar
fcomte
Messages: 18
Registration: February 1, 2023 - 11:15

February 20, 2023 - 10:58

I agree with this conclusion 👍.
- Installed WAPT version: 2.4.0.14080 Discovery
- Server OS: Debian GNU/Linux 11 (bullseye)
- Administration/package creation machine OS: Windows 10
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

February 21, 2023 - 10:51

Good morning,

Quick test results from this morning.

By some kind of magic, it works perfectly o_O.

I successfully deployed the agent to my workstations; they all registered on the server without any problems and are all logged in to the console. The only difference compared to usual is that I ran a task on all the workstations to force the time to be set (normally it does this automatically, but sometimes some of them seem to be out of sync). So I have a small package that I push, which just runs a little .bat file:

Code: Select all

@echo off
cls
net time \\monServerDeTemps /set /yes
exit
For the moment I haven't deployed wapt packages across my entire network, but just on a test machine, and it's working well with small packages (7-zip, PuTTY, WinSCP, FileZilla, Firefox, WinMerge... yes, it's a development machine) :) ).
Last edited by flipflip on Feb 21, 2023 - 2:50 PM, edited 1 time.
User avatar
fcomte
Messages: 18
Registration: February 1, 2023 - 11:15

February 21, 2023 - 12:19

Good morning,

Encouraged by flipflip's experience, I tried manually uninstalling the WAPT agent on a test machine. After reinstalling the agent and several attempts to reinstall the console by deleting the folders indicated by flipflip, I still get this error message:
2023-02-21 12_17_17.png
2023-02-21 12_17_17.png (6.89 KB) Viewed 7955 times
(I notice that the string at the end of the error message has changed since my last attempts)

What should I do to fix this problem?
- Installed WAPT version: 2.4.0.14080 Discovery
- Server OS: Debian GNU/Linux 11 (bullseye)
- Administration/package creation machine OS: Windows 10
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

February 21, 2023 - 2:08 PM

In hindsight, and I believe this has already been discussed, the problem stems from certificates following a change in how the installer (innosetup) handled them when upgrading to version 2.3 (to be confirmed by the Tranquil-IT team).

Without being an expert, it seems to me that at some point there was a problem distributing the certificates used to sign packages and communicate with the server. As a result, a stable situation became impossible. It's probably possible to redeploy the server's certificates to the agents, but that's beyond my expertise.

Perhaps a possible solution:

On a machine with a correctly functioning agent, compare the contents of the directory c:\program files (x86)\wapt\ssl and c:\program files (x86)\wapt\private and copy everything into the directory of a machine where the agent is malfunctioning. Restart the wapt service and run another test... This comes with no guarantee of success or a clean installation. ;)

For me, uninstalling and reinstalling the agent wasn't enough; I also removed the entire server component (programs, configuration, certificates, database). It's fairly simple because my server only offers wapt; you just need to know the correct commands on Debian and where the files and databases are located to perform the final cleanup.

But you must follow the order carefully:
- Delete the machines via the console;
- Uninstall the agents;
- Verify that none of them have re-registered;
- On the server, stop all wapt processes;
- Uninstall wapt on the server;
- Uninstall PostgreSQL and nginx (for Linux; I don't know if it's the same on Windows).
- On the server, go through the system directories to delete everything related to wapt, postgresql, and nginx.

When in doubt, reboot (although it's completely unnecessary on Linux).

As it stands, you're almost on a freshly installed server, and all that's left is to install the server layer and then deploy the agent.

Unfortunately, since we're using the Discovery version, there's little to no support from the Tranquil-IT team, which is normal (and don't take this as a criticism) since it's the free version. They generate revenue and funding through the Enterprise version.

In practice, the machines in my network that gave me trouble during my tests were often VMs. Whether they were managed by VMware on a hypervisor or on my PC managed by VirtualBox. Is that the cause? I don't know. Perhaps it's a clue for future development of Wapt.
User avatar
fcomte
Messages: 18
Registration: February 1, 2023 - 11:15

February 21, 2023 - 2:45 PM

Thank you so much for your feedback!

I think I'll go ahead with a complete reinstall, following the order you described. This will avoid any risky tinkering and allow me to take advantage of the situation to upgrade from CentOS 7 to Debian 11.

As for uninstalling the agents, I think I'll do it using a PowerShell or batch script deployed via GPO, based on your information. I'll test it first before proceeding.

I'll keep you posted. In any case, thank you again for your input! With your experience, I can approach the complete wipe with a bit more confidence 🥴🤣.
- Installed WAPT version: 2.4.0.14080 Discovery
- Server OS: Debian GNU/Linux 11 (bullseye)
- Administration/package creation machine OS: Windows 10
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

February 21, 2023 - 6:31 PM

The directory " The agent's directory contains the agent's own keys (the certificate's CN corresponds to the machine's UUID) as well as private data for the installed packages. These keys allow the agent to authenticate with the server.
Therefore, this content should not be copied to another machine. The certificate in this directory is named after the machine's UUID. When opened in Windows, it can be verified that it was issued (signed) by a Certificate Authority (CA) named after the WAPT server.
If the keys in "

The directory " This directory must contain the certificate(s) (named with a .crt extension in WAPT) of the administrator who signs packages and actions (in the console, this is the certificate listed in the "Personal Certificate Path" field in the Tools/Preferences menu).
It must be exactly the same. The agent uses the certificates from this directory.
Tranquil IT
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

February 22, 2023 - 10:08

Thank you for these explanations.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 24, 2023 - 2:37 PM

Hello everyone,

I'm marking this thread as resolved. It's already far too long and no longer very useful for someone looking for answers to their questions.

If you have any new questions, please start a new thread.

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
Locked