Page 1 of 1

[RESOLVED] Package deployment blocked

Published: October 18, 2019 - 09:34
by maibal74
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,

Re: Package deployment blocked

Published: October 18, 2019 - 09:48
by jeancharles
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 :)

Re: Package deployment blocked

Published: October 18, 2019 - 11:24 AM
by maibal74
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,

Re: Package deployment blocked

Published: October 21, 2019 - 09:38
by maibal74
Did I say something I shouldn't have?

Re: Package deployment blocked

Published: October 21, 2019 - 10:03 PM
by sfonteneau
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 ;-)

Re: Package deployment blocked

Published: October 22, 2019 - 11:46 AM
by maibal74
Thank you for your feedback, I'll manage with that :)