[RESOLVED] Server change

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
Locked
Meyer
Messages: 9
Registration: May 28, 2021 - 10:42

December 19, 2023 - 11:11

Hello,

We've upgraded our server to a new license, so we're currently running on two machines. The vast majority of our network and its agents are still pointing to the old server. The WAPT agent is distributed via GPO.
After testing, it seems necessary to manually uninstall the old agent before deploying the new one. Following this, the client connects correctly to the new console.
Is there a solution that would allow us to avoid doing this on each machine individually and facilitate this migration?
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2023 - 11:17

Hi Yannick,

old server version, new server version? See the forum rules. Changing the server configuration shouldn't be a problem. Are you using dynamic configuration packages?

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
Meyer
Messages: 9
Registration: May 28, 2021 - 10:42

December 19, 2023 - 11:35

Hello Denis,

Thank you for your reply.
I should have specified that these are indeed two separate servers. Both are running version 2.4.0.14143 on Ubuntu Linux, with the same version for the agent and wapt deploy.
What do you mean by dynamic configuration packages?
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2023 - 12:42

Hi Yannick,

yes, it's clearer with the additional information. :-)

waptdeploy relies on the agent version, so since it hasn't changed, it doesn't deploy the new one. It's possible to add a --force parameter to waptdeploy in your GPO, however, this will reinstall the agent every time the machine restarts, so it should only be used for a short time.

Another way is to put a package on your old server that installs your new agent. This will force the switchover.

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
Meyer
Messages: 9
Registration: May 28, 2021 - 10:42

December 19, 2023 - 1:50 PM

Thanks Denis.

What does creating this package for the new agent involve? I assume it's done through the agent's dynamic configuration, within the package templates?
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 19, 2023 - 2:10 PM

Hello Yannick,

You can retrieve the xxx-waptupgrade package from your new server and import it onto your old server, setting the default mode to force=True by modifying the following line in setup.py:

Code: Select all

def install():
    force = True
    # if you want to modify the keys depending on environment (win32/win64... params..)
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
Meyer
Messages: 9
Registration: May 28, 2021 - 10:42

December 19, 2023 - 3:53 PM

Problem solved. Thank you very much, Denis.
Locked