[RESOLVED] Package deployment blocked

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
maibal74
Messages: 4
Registration: Oct 18, 2019 - 09:24

October 18, 2019 - 09:34

Hello,

I just discovered the WAPT solution and have been experimenting with it for a few days. First of all, I wanted to congratulate everyone who worked on this software, which is incredibly efficient and well-designed!

The installation: WAPT version 1.7.4.6223
OS: Windows Server 2008 R2
Test machine: Windows 10.

That said, I have a small problem... perhaps I haven't fully understood everything I've read, but I want to deploy an .exe (it's AnyDesk). The idea is to launch it on the fly when a user needs remote assistance. For your information, when you click on the .exe, it launches, but there's no installation... (but I also encounter this problem whenever I try to create a package).

So, I followed the tutorial to create a package template. I check the information, like the version and other details, in PyScripter... and I test it by clicking "install". Great, it works! So I validate and create the package, which ends up in my private repository.

The problem is, I want to deploy it. I choose my test machine, I deploy it, and... nothing happens. The machine remains yellow with the status "TO-UPGRADE", it's just spinning... and I also notice that in the general tab there's the package trying to deploy, but also a line with a package name that's like a series of numbers:

https://image.noelshack.com/fichiers/20 ... 3911-1.png

Okay... and then after spinning for a few minutes, a nice error:

id;Description;Summary;Start time;Traces;Created by
5;Installation of lbs-anydesk(=5.3.3.1) (task #5);"Exception: Error installing [u'lbs-anydesk(=5.3.3.1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',version=(Version('5.3.3.1'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1'), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n']]";2019-10-18T09:22:45.910000;"Installing lbs-anydesk(=5.3.3.1)

Installing lbs-anydesk(=5.3.3.1)

installing lbs-anydesk
[Error 5] Access refusal: 'c:\\windows\\temp\\waptqvz03s\\AnyDesk.exe'


Traceback (most recent call last):
File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1711, in run
self.running_task.run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 559, in run
self._run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 1017, in _run
self.result.get('errors',[])))
Exception: Error installing [u'lbs-anydesk(=5.3.3.1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',version=(Version('5.3.3.1'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n']]

Exception: Error installing [u'lbs-anydesk(=5.3.3.1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',version=(Version('5.3.3.1'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1'), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n']]
Traceback (most recent call last):
File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1711, in run
self.running_task.run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 559, in run
self._run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 1017, in _run
self.result.get('errors',[])))
Exception: Error installing [u'lbs-anydesk(=5.3.3.1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',version=(Version('5.3.3.1'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1'), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n']]
";

Regarding the task number series:

id;Description;Summary;Start time;Traces;Created by
6;Installation of 639C4D56-487D-48FB-4641-3696948765C6(=1) (task #6);"Exception: Error installing [u'639C4D56-487D-48FB-4641-3696948765C6(=1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n'], [PackageRequest(package=u'639C4D56-487D-48FB-4641-3696948765C6',version=(Version('1.0.0.0'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'639C4D56-487D-48FB-4641-3696948765C6',u'1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nEWaptUnavailablePackage: Missing dependencies: lbs-anydesk\n']]";2019-10-18T09:27:52.393000;"Installing 639C4D56-487D-48FB-4641-3696948765C6(=1)

Installing lbs-anydesk(=5.3.3.1)
installing lbs-anydesk
[Error 5] Access refused: 'c:\\windows\\temp\\wapt1sijix\\AnyDesk.exe'

Installing 639C4D56-487D-48FB-4641-3696948765C6(=1)

Traceback (most recent call last):
File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1711, in run
self.running_task.run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 559, in run
self._run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 1017, in _run
self.result.get('errors',[])))
Exception: Error installing [u'639C4D56-487D-48FB-4641-3696948765C6(=1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n'], [PackageRequest(package=u'639C4D56-487D-48FB-4641-3696948765C6',version=(Version('1.0.0.0'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'639C4D56-487D-48FB-4641-3696948765C6',u'1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nEWaptUnavailablePackage: Missing dependencies: lbs-anydesk\n']]

Exception: Error installing [u'639C4D56-487D-48FB-4641-3696948765C6(=1)']: errors in packets [[PackageRequest(package=u'lbs-anydesk',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n'], [PackageRequest(package=u'639C4D56-487D-48FB-4641-3696948765C6',version=(Version('1.0.0.0'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'639C4D56-487D-48FB-4641-3696948765C6',u'1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nEWaptUnavailablePackage: Missing dependencies: lbs-anydesk\n']]
Traceback (most recent call last):
File ""C:\Program Files (x86)\wapt\waptservice\service.py"", line 1711, in run
self.running_task.run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 559, in run
self._run()
File ""C:\Program Files (x86)\wapt\waptservice\waptservice_common.py"", line 1017, in _run
self.result.get('errors',[])))
Exception: Error installing [u'639C4D56-487D-48FB-4641-3696948765C6(=1)']: errors in packages [[PackageRequest(package=u'lbs-anydesk',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'lbs-anydesk',u'5.3.3.1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nTimeoutExpired: Command \'""AnyDesk.exe"" \' timed out after 300 seconds with output \'\'\'\'\n'], [PackageRequest(package=u'639C4D56-487D-48FB-4641-3696948765C6',version=(Version('1.0.0.0'), None),architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.17763'),max_os_version=Version('10.0.17763')), PackageEntry(u'639C4D56-487D-48FB-4641-3696948765C6',u'1' ), u'Traceback (most recent call last):\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 4850, in install\n force=force\n File ""C:\\Program Files (x86)\\wapt\\common.py"", line 3929, in install_wapt\n raise e\nEWaptUnavailablePackage: Missing dependencies: lbs-anydesk\n']]
";

What did I do wrong? Do you need more logs? For packages imported from the internet, so official if I may say so, there are no problems.



Thank you,
Last edited by maibal74 on Oct 22, 2019 - 11:47, edited 1 time.
jeancharles
Messages: 21
Registration: June 11, 2019 - 10:02

October 18, 2019 - 09:48

Good morning,

The best solution would probably be to create a package that simply copies the executable to the PC, and replaces it when a new version of the executable is available.

Here is a directory deletion and copy procedure in the pyscripter package:

Code: Select all

    
    for folder in listfolder:
        if isdir(makepath(install_location('PyScripter_is1'),folder)):
            remove_tree(makepath(install_location('PyScripter_is1'),folder))
        copytree2(makepath(folder),makepath(install_location('PyScripter_is1'),folder))
I don't think WAPT is designed to push an executable without installation and then remove it. In fact, executing a package requires a "return error" code of 0 before the timeout; otherwise, the package will fail.

After all, I'm just a user, I could be wrong :)
maibal74
Messages: 4
Registration: Oct 18, 2019 - 09:24

October 18, 2019 - 11:24

Thanks for your reply. However, I'm a bit of a beginner with PyScripter... where should I put this in setup.py? Currently, I have this:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []
def install():
    print('installing lbs-anydesk')
    install_exe_if_needed("AnyDesk.exe",'',key='',min_version='5.3.3.0')

THANKS,
maibal74
Messages: 4
Registration: Oct 18, 2019 - 09:24

October 21, 2019 - 09:38

Did I say something I shouldn't have?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 21, 2019 - 10:03 PM

There are many installation methods for AnyDesk, apparently

(https://support.anydesk.com/Automatic_Deployment

): file copy
, command line launch
, or MSI file.

Try using the ;-)
maibal74
Messages: 4
Registration: Oct 18, 2019 - 09:24

October 22, 2019 - 11:46

Thank you for your feedback, I'll manage with that :)
Locked