J’essaie de déployer une nouvelle version de SAP mais je rencontre un problème lors du déploiement via la console WAPT.
Les tests fonctionnent dans l’environnement de pyScripter et de même lorsque je lance la commande wapt-get uprade via l’invite de commande sans erreur.
Lorsque je déploie via la console, l’application s’installe bien mais semble rester en attente de quelque chose car pendant un certain temps, plus d’activité sur le poste et échoue finalement avec en sortie ceci :
Code : Tout sélectionner
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']]
Je pense que le contexte d’exécution y est pour quelque chose mais je sèche…
Setup.py :
Code : Tout sélectionner
install_exe_if_needed(r"Setup\NwSapSetup.exe",silentflags='/package="local_c" /silent /force',accept_returncodes=[0, 129, 145, 144, 1603, 3010])
Merci d’avance
PS: Copie d'une demande à la mailing list