Wapt Upgrader Packet Error #Help

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
renaud.counhaye
Messages: 31
Registration: December 13, 2017 - 11:45

April 24, 2018 - 10:42

Hello everyone

I would like a quick and effective helping hand with a very annoying situation that is really pushing me to my limit. evil:

We had 3 WAPT servers in our company and recently decided to migrate all of them to 1 brand new one (1.5).
My idea then is to deploy on these 3 old servers (1.3) and old clients the wapt-upgrade package generated on the new one.

First problem, I can't access the repo of the new server, I'm getting a 403 from nginx and I can't find any documentation to unlock it.

Second problem: I used the console of the new server to download and edit the packet, then I transferred this content to the admin PC of an old server to "recompile" the packet and be able to upload it, result? FAIL.

Code: Select all

2018-04-24 10:18:59,569 WARNING error: (2, 'GetFileVersionInfo:GetFileVersionInfoSize', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
2018-04-24 10:18:59,569 WARNING error: (2, 'GetFileVersionInfo:GetFileVersionInfoSize', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
2018-04-24 10:18:59,571 WARNING error: (2, 'GetFileVersionInfo:GetFileVersionInfoSize', 'Le fichier sp\xe9cifi\xe9 est introuvable.')
  ERROR building C:\waptdev\ymg-deploy-ymagis-nxt-wapt: [Errno 2] No such file or directory: 'patchs\\version'
Looking at the Python code, we notice that it's calling a file that doesn't even exist...

Code: Select all

def update_control(entry):
    """Update package control file before build-upload"""
    waptget = get_file_properties(makepath('patchs','wapt-get.exe'))
    rev = open(makepath('patchs','version')).read().strip()
    entry.package = '%s-waptupgrade' % WAPT.config.get('global','default_package_prefix')
    entry.version = '%s-%s' % (waptget['FileVersion'],rev)
because indeed in the "patches" folder, there is only waptdeploy.exe and no "version" folder.

The real problem is that all the variables in Python are filled dynamically, making the code difficult to read and adapt if you don't want to use sha256.

Ultimately, will my solution even work and allow the old PCs to connect to the new server smoothly, or should I torture myself with the idea of ​​creating a powershell that destroys the old WAPT agent before simply installing the new one... (I've already tried in Python, but obviously, killing the WAPT service and launching the uninstallation doesn't work well together).

I hope you can help me; this migration project is causing a roadblock for us...

Sincerely,

Renaud.
Renaud Counhaye,
Network Systems Technician,
Central Functions Division
, Ymagis Group
Picture
Locked