Migration issue from version 2.2.3 to 2.5.4

Questions about WAPT Server / Requests and help related to the WAPT server
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
Answer
essaghir
Messages: 5
Registration: February 7, 2024 - 10:58

February 15, 2024 - 3:28 PM

Good morning,

Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Postgres 11.2

This ticket follows the ticket viewtopic.php?t=3766

Version 2.5.4 resolved the error encountered during the execution of the post-configuration script. The server has successfully migrated to version 2.5.4.15337
WAPT Server version: 2.5.4.15337
WAPT Agent version: 2.2.3.12463
WAPT Setup version: 2.5.4.15337
WAPT Deploy version: 2.5.4.15337
Database status: OK

I am now encountering a problem with the console that I downloaded from the server and installed after uninstalling version 2.2.3:
1) WAPTConsole indicates the Discovery version even though we have an Enterprise license
2) The inventory is empty, as is the private deposit box

I have attached the service logs
waptservice.7z
(3.88 KB) Downloaded 522 times
Could you please help me understand where the problem might be coming from? Thank you.

Sincerely,
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 15, 2024 - 3:56 PM

Hello Mohamed,

it seems the client is unable to connect to the server (at least the Socket.IO part).

Did you restart the postconf after the upgrade?

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
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

February 19, 2024 - 11:51

Hello Denis,

what do you mean by postconf?
I also upgraded to 2.5.4.15342 (waiting for some stability) and my console is empty (no connected machines).

Regards,
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 19, 2024 - 12:30

Hello David,

version etc. (see forum rules). Is the inventory empty or are the workstations disconnected? If the console is empty, it's a different bug; please open a new topic. If you are using WAPTServer on Windows (which isn't mentioned), there's no postconf script to run because it's launched by the Windows installer.

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
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

February 19, 2024 - 5:21 PM

Sorry, sorry: wapt under Windows (version 2.5.4.15342)

console in which all workstations are disconnected (see attached image). However, it seems the agent upgrade task is being deployed, so I'll wait for the workstations to restart.

Sorry, I only noticed it afterward. It seems I left the "verify certificate" box checked...

I'll update tomorrow morning depending on how the network is doing. Otherwise, I'll revert.

Regards
Attachments
mRemoteNG_Jq6S7IK1mN.png
mRemoteNG_Jq6S7IK1mN.png (9.52 KiB) Viewed 8994 times
mRemoteNG_g797gmCSmM.png
mRemoteNG_g797gmCSmM.png (33.7 KiB) Viewed 8994 times
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 20, 2024 - 1:47 PM

Hello David,

OK for the server under Windows. The postconf is a script that is run at the end of the installation/update for the WAPT server under Linux.

The log in the screenshot in question was for your latest update, version 2.4.0. Could you please try running the upgrade from the command line on a machine?

Code: Select all

wapt-get update
wapt-get install tcl-waptupgrade
Were your agents configured for HTTP or HTTPS? If HTTPS, was it with or without certificate verification?

Sincerely,

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
essaghir
Messages: 5
Registration: February 7, 2024 - 10:58

February 26, 2024 - 10:55

dcardon wrote: Feb 15, 2024 - 3:56 PM Hello Mohamed,

it seems the client is unable to connect to the server (at least the Socket.IO part).

Did you restart the postconf after the upgrade?

Regards,

Denis
Hello Denis,

I apologize for the late reply.
Yes, I successfully ran postconfig, which executes without errors. Therefore, this problem is resolved compared to version 2.5.
However, in the certificate information displayed at the end, the FQDNs shown do not match the FQDNs in the server URL. The names are different. Is this the source of the console connection problem in version 2.5.4?

However, I was able to connect the console installed on my machine and its agent by changing the server name in the url (https) to its ip address and disabling certificate verification (verify_cert=0).
In the console all stations (in 2.2.3) are disconnected because they are still trying to connect with the FQDN configured in their ini.

What do you advise me to do to solve the problem? Thank you.

Feel free to ask me if you need any further information. Thank you.

Sincerely,
x-davidl
Messages: 38
Registration: Apr 25, 2022 - 5:07 p.m.

February 27, 2024 - 8:45 AM

Hello everyone,

for my part, I restored a VM before the update (yes, mea culpa, I should have taken a snapshot... ouch, don't hit me! :-))
. Then I redeployed an INI file to set these two variables to 0 and then restarted the WAPT service:

`check_certificates_validity=0`
and `verify_cert=0`.

The machines gradually reconnected.
Finally, I also pushed the new version of the agent via GPO.

I think that when I did the first update, I must have left the box checked for the certificate, and that messed things up.
So, a week later, it's stable, but luckily I don't have 3000 machines. ;-)

Best regards.
Answer