The package failed when launched from the console

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
TomTom
Messages: 79
Registration: May 25, 2018 - 3:43 p.m.

April 12, 2021 - 8:30 AM

Good morning,

I am trying to deploy a new version of SAP but I am encountering a problem during deployment via the WAPT console.
The tests work in the pyScripter environment and also when I run the wapt-get update command via the command prompt without error.
When I deploy via the console, the application installs correctly but seems to remain stuck waiting for something because for a while there is no activity on the machine and it finally fails with the following output:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1958, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1192, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hydac-sapgui']: erreurs dans les paquets [[PackageRequest(package='hydac-sapgui',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19042'),max_os_version=Version('10.0.19042')), PackageEntry('hydac-sapgui','7.60-8' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4998, in install\n    result = self.install_wapt(full_fname(p.filename),\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3997, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3910, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\windows\\TEMP\\waptmeqicgeu\\setup.py", line 27, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3864, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1302, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 3948, in run\n    raise TimeoutExpired(cmd, \'\'.join(output), timeout)\nwaptutils.TimeoutExpired: Command \'"Setup\\NwSapSetup.exe" /package="local_c" /silent /force\' timed out after 300 seconds with output \'\'\'\'\n']]

Exception: Erreur lors de l'installation de ['hydac-sapgui']: erreurs dans les paquets [[PackageRequest(package='hydac-sapgui',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19042'),max_os_version=Version('10.0.19042')), PackageEntry('hydac-sapgui','7.60-8' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4998, in install\n    result = self.install_wapt(full_fname(p.filename),\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3997, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3910, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\windows\\TEMP\\waptmeqicgeu\\setup.py", line 27, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3864, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1302, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 3948, in run\n    raise TimeoutExpired(cmd, \'\'.join(output), timeout)\nwaptutils.TimeoutExpired: Command \'"Setup\\NwSapSetup.exe" /package="local_c" /silent /force\' timed out after 300 seconds with output \'\'\'\'\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1958, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 649, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1192, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hydac-sapgui']: erreurs dans les paquets [[PackageRequest(package='hydac-sapgui',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'windows'],min_os_version=Version('10.0.19042'),max_os_version=Version('10.0.19042')), PackageEntry('hydac-sapgui','7.60-8' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4998, in install\n    result = self.install_wapt(full_fname(p.filename),\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3997, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3910, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\windows\\TEMP\\waptmeqicgeu\\setup.py", line 27, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3864, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1302, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 3948, in run\n    raise TimeoutExpired(cmd, \'\'.join(output), timeout)\nwaptutils.TimeoutExpired: Command \'"Setup\\NwSapSetup.exe" /package="local_c" /silent /force\' timed out after 300 seconds with output \'\'\'\'\n']]

I think the execution context has something to do with it, but I'm stumped…

Setup.py:

Code: Select all

install_exe_if_needed(r"Setup\NwSapSetup.exe",silentflags='/package="local_c" /silent /force',accept_returncodes=[0, 129, 145, 144, 1603, 3010])

Thanks in advance

PS: Copy of a request to the mailing list
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Locked