[RESOLVED] Deployment issue

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

August 31, 2021 - 11:22

Good morning,
I hope I'm in the right section, if not please move my topic.

I need help with a simple deployment.
I created a package that copies an .ico file to the computer's Windows folder, then creates a desktop shortcut to a URL, associating the previously copied icon with it. On my server (Windows Server 2012 R2), everything works from PyScripter. But when I try to deploy my package on my test machine, I always get an error, and neither copying the icon nor creating the shortcut works.

Code: Select all

from setuphelpers import *
uninstallkey = []
def install():
	filecopyto('chemindepartagedemonicone',makepath('C:','Windows'))
	create_shortcut(makepath(common_desktop(),ur"lien.url"),target='http://monlienweb',icon=makepath('C:','Windows','monicone.ico'))
The code is quite simple, but I can't deploy it. The error message is "missing dependencies: mypackagename"

Does anyone have any ideas?
THANKS
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

August 31, 2021 - 12:13

Hello,
is it possible to also have the control file please?
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

August 31, 2021 - 12:28

Of course.
Thank you for your help.

Code: Select all

package           : MonPaquet
version           : 0-4
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Domaine ADMINISTRATEUR
description       : Créer l'îcone sur le bureau
depends           : 
conflicts         : 
maturity          : DEV
locale            : 
target_os         : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    :
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 1e256ec9-d2c7-444f-a729-fff88a3485c1
valid_from        : 
valid_until       : 
forced_install_on : 
signer            : MASOCIETE
signer_fingerprint: f9f318bb55a4e9a4de6fbd8ad0a73d9d32022145e6a244f01503a2c5884f4df1
signature         : j1sjpRRd0F62P0tKmfvYz/EeRDzRMoaGErYhrW1Cwq0manOtoCw8N+xoCNB1eFljVLhCum5nUgU0pCw+44TlnHVKjAnhF4770r6sfSC0rdfs//pNQo+qjLkh10x9aAZ4g4k0GFOZwAgxmMTG2f7GfnhxCwWm+jJW+SfQPsD9KVhztE3PYunxa7GPn+OimhokJCD3uPswiyE/9OEI7jh9/SpTVMdhLJDf17+33WFnC9yv1RoHS1jcROCboAYFCGIxvJ7AxtRpAbIYzOaasmRMg6aX9F1SFySxHeMFGDmLPoaPg98le4pk1irPUShqh3safxwXSwO4j4sFbZZ2SknADQ==
signature_date    : 2021-08-31T10:33:31.048000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

August 31, 2021 - 12:32

Is it possible to get the full error from the console as well, because I don't see it that way.
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

August 31, 2021 - 1:41 PM

Here are all the logs I could find:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3704, in install_wapt
    raise EWaptUnavailablePackage('Missing dependencies: %s' % (','.join(missing_depends,)))
EWaptUnavailablePackage: Missing dependencies: MonPaquet
EWaptUnavailablePackage: Missing dependencies: MonPaquet





Installing 24E30E4C-32DF-11B2-A85C-E967E00E6C6B

Installing 24E30E4C-32DF-11B2-A85C-E967E00E6C6B(=13)

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: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\n']]

Exception: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\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: Erreur lors de l'installation de [u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B']: erreurs dans les paquets [[PackageRequest(package=u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',architectures=[u'x64'],locales=['fr'],maturities=[u'PROD'],min_os_version=Version('10.0.19041'),max_os_version=Version('10.0.19041')), PackageEntry(u'24E30E4C-32DF-11B2-A85C-E967E00E6C6B',u'13' ), u'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4855, in install\n    force=force\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 3934, in install_wapt\n    raise e\nEWaptUnavailablePackage: Missing dependencies: MonPaquet\n']]
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

August 31, 2021 - 2:05 PM

In view of the errors, a dependency package named
MyPackage
is missing.
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

August 31, 2021 - 3:41 PM

This is precisely the package I created and am trying to install.
That's what I don't understand.

My method:
In the WAPT console, I go to Tools, then Generate a package template.
- I don't include an installer (since there isn't one)
- I name my package: MyPackage
- Maturity: DEV
- leave everything else blank, then click Create and Edit.

Next, I add the code I posted in my first message to the setup.py file.
I test everything by right-clicking on the install section of the Run Configurations menu.
And since it works, I right-click on -i build -upload.

My package is then in my private repository.
In the inventory tab, I select my test machine and then Add Dependency.
In the inventory tab, I select my test machine again and then Run Installations.

And that's where I get the errors and it won't install.
Where is my mistake (hoping there is only one :D )?
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

August 31, 2021 - 4:40 PM

Trying to upload it from the console?

https://www.wapt.fr/fr/doc/wapt-create- ... apt-server

Otherwise, it means the package doesn't have permission to see the package, due to one of the filters in the control file
Scud
Messages: 27
Registration: March 23, 2020 - 3:37 PM

September 1, 2021 - 9:58 AM

Gaetan wrote: August 31, 2021 - 4:40 PM Trying to upload it from the console?
Thanks for your replies, but I don't have the same version as you. I'm on Wapt Community 1.8.2.73.73
So I don't have the same option.
Gaetan wrote: August 31, 2021 - 4:40 PM Otherwise, it means the package doesn't have permission to see the package, one of the filters in the control file
I didn't quite understand that part :? :lol:
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

September 1, 2021 - 10:00

Gaetan wrote: August 31, 2021 - 4:40 PM Trying to upload it from the console?

https://www.wapt.fr/fr/doc/wapt-create- ... apt-server

Otherwise, it means the package doesn't have permission to see the package, one of the filters in the control file
Locked