[SOLVED] Installing tis-powershell

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
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

January 24, 2023 - 4:57 PM

Hello everyone,

I'm exploring Wapt 2.3.0.13438 Discovery before permanently migrating my package deployment. For now, I'm using the Kaspersky admin console to do this.

I'm having a problem with the tis-powershell (7.3.1-10) package. Its dependencies include powershell-5.1-15, which requires dotnetfx, which requires dotnetfx4.8. I've downloaded all these dependencies and added them to the host package on my test machine
wapt-1.png
wapt-1.png (36.04 KB) Viewed 4840 times

I click on "Save and apply". The installation starts but results in an error for each sub-package.

wapt-2.png
wapt-2.png (15.6 KB) Viewed 4840 times

Code: Select all

Installing hil_-powershell(=7.3.1-20)
Installing: hil_-powershell5
Installing hil_-dotnetfx(=4.8.1-24)
Installing hil_-powershell5(=5.1-15)
Erreur lors de l'installation de ['hil_-powershell(=7.3.1-20)']: erreurs dans les paquets [[PackageRequest(package='hil_-powershell',version=(Version('7.3.1.0'), 20),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-7', 'win-7', 'w-7', 'windows7', 'win7', 'w7', 'windows', 'win', 'w'],min_os_version=Version('6.1.7601.24544'),max_os_version=Version('6.1.7601.24544')), PackageEntry('hil_-powershell','7.3.1-20' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4074, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt22ix2lhn\\setup.py", line 19, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 7007, in audit\n    raise Exception(\'Package %s is not installed\' % package)\nException: Package hil_-powershell5 is not installed\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1282, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hil_-powershell(=7.3.1-20)']: erreurs dans les paquets [[PackageRequest(package='hil_-powershell',version=(Version('7.3.1.0'), 20),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-7', 'win-7', 'w-7', 'windows7', 'win7', 'w7', 'windows', 'win', 'w'],min_os_version=Version('6.1.7601.24544'),max_os_version=Version('6.1.7601.24544')), PackageEntry('hil_-powershell','7.3.1-20' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4074, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt22ix2lhn\\setup.py", line 19, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 7007, in audit\n    raise Exception(\'Package %s is not installed\' % package)\nException: Package hil_-powershell5 is not installed\n']]

Exception: Erreur lors de l'installation de ['hil_-powershell(=7.3.1-20)']: erreurs dans les paquets [[PackageRequest(package='hil_-powershell',version=(Version('7.3.1.0'), 20),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-7', 'win-7', 'w-7', 'windows7', 'win7', 'w7', 'windows', 'win', 'w'],min_os_version=Version('6.1.7601.24544'),max_os_version=Version('6.1.7601.24544')), PackageEntry('hil_-powershell','7.3.1-20' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4074, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt22ix2lhn\\setup.py", line 19, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 7007, in audit\n    raise Exception(\'Package %s is not installed\' % package)\nException: Package hil_-powershell5 is not installed\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1907, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 710, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1282, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['hil_-powershell(=7.3.1-20)']: erreurs dans les paquets [[PackageRequest(package='hil_-powershell',version=(Version('7.3.1.0'), 20),architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-7', 'win-7', 'w-7', 'windows7', 'win7', 'w7', 'windows', 'win', 'w'],min_os_version=Version('6.1.7601.24544'),max_os_version=Version('6.1.7601.24544')), PackageEntry('hil_-powershell','7.3.1-20' architecture='x64',maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5193, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4167, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4074, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt22ix2lhn\\setup.py", line 19, in install\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 7007, in audit\n    raise Exception(\'Package %s is not installed\' % package)\nException: Package hil_-powershell5 is not installed\n']]
It's as if the dependencies and/or the installation order were not respected (or there's something I haven't understood).

So I wanted to install at least dofnetfx4.8, I removed the other packages from the host package
wapt-3.png
wapt-3.png (28.31 KB) Viewed 4838 times
The installation restarted but it's as if it didn't take into account the modification of the host package and it's trying again to install all the packages (I can't attach a 4th image to this post).

Have I missed some subtlety?

Wapt: 2.3.0.13438
Wapt-agent: 2.3.0
Server: Debian 11
Target operating system: Windows 7 64-bit

Thanks in advance.
Last edited by flipflip on Feb 21, 2023 - 3:58 PM, edited 1 time.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 25, 2023 - 12:09

Hello,

the tis-powershell package installs the latest version, and is therefore redundant and conflicts with the tis-powershell5 package which installs version 5. You must use one or the other.

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

January 25, 2023 - 5:53 PM

Hello and thank you for your reply.

Having experienced strange behavior on my test PC, I decided to remove it from the WAPT inventory, uninstall the agent and the console (they're on the same machine), and redo the agent and console deployment process, rebooting between each step.

- The PC registers successfully with the server;

wapt-6.png
wapt-6.png (2.83 KB) Viewed 4795 times

- I'm launching the deployment of the powershell 7 package all by myself;
- I'm monitoring the processes but nothing is coming to fruition;
- I go back to the console and everything is pending...
wapt-5.png
wapt-5.png (27.15 KB) Viewed 4795 times
It's 5:45 PM when I took the screenshot. So it's been waiting for 15 minutes, and another problem is the message: Unable to retrieve the action...

I'm going to dig around a bit in the C:\Program Files (x86)\wapt\logs directory, I open the waptservice.log file and surprise: there is indeed a problem.
2023-01-25 17:45:59,666 [wapttasks WaptTaskManager 2000] WARNING Host on the server is not known or not known under this FQDN name (known as monpc.mo.domain). Trying to register the computer...
And the file is full of them. If I understand correctly, there's a problem with the DNS part. I'm running basic tests

Code: Select all

nslookup serverWapt --> ça marche
ping serverWapt --> ça marche
ping serverWapt.mon.domain --> ça marche
nslookup monpc --> ça marche
ping monpc --> ça marche
nslookup monpc.mon.domain --> ça marche
ping monpc.mon.domain --> ça marche
ping IP.DE.MON.PC --> ça marche
I perform the same tests from the wapt server and everything is OK.

I've tested pretty much everything on the DNS and network side, for me everything is working.
Have I missed something?
x-davidl
Messages: 39
Registration: Apr 25, 2022 - 5:07 p.m.

January 27, 2023 - 10:42

Hello,

I suggest you re-register your post

in a command prompt window (command prompt admin)

using `wapt-get register`.

If this creates a duplicate, properly delete the "old" post

. Regards.
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

January 30, 2023 - 1:44 PM

Good morning,

The wapt-get register did not create any duplicates and the machine is still in a strange state.
2023-01-30 12:00:22,262 [wapttasks WaptTaskManager 6412] WARNING Host on the server is not known or not known under this FQDN name (known as my.MY.DOMAIN). Trying to register the computer...
2023-01-30 12:00:53,827 [wapttasks WaptTaskManager 6412] INFO Got signed certificate from server. Issuer: waptserver. CN: RND-72669821-65F2-436E-B09C-0B153AAC7155
2023-01-30 12:00:53,889 [wapttasks WaptTaskManager 6412] INFO Save host key to C:\Program Files (x86)\wapt\private\RND-72669821-65F2-436E-B09C-0B153AAC7155.pem
2023-01-30 12:00:53,889 [wapttasks WaptTaskManager 6412] INFO Save host cert to C:\Program Files (x86)\wapt\private\RND-72669821-65F2-436E-B09C-0B153AAC7155.crt
2023-01-30 12:00:53,998 [wapttasks WaptTaskManager 6412] INFO New registration successful. Retring sending host status.
2023-01-30 12:00:53,998 [wapttasks WaptTaskManager 6412] INFO Reloading waptcore configuration for Wapt instance thread 6412
2023-01-30 12:00:55,777 [wapttasks WaptTaskManager 6412] INFO update_server_status successful (data size 2407)
2023-01-30 12:00:55,777 [wapttasks WaptTaskManager 6412] WARNING Host on the server is not known or not known under this FQDN name (known as my.MY.DOMAIN). Trying to register the computer...
I restarted the wapt service on the machine from the console but nothing changed.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

January 30, 2023 - 4:57 PM

Can you remove your machine from the console?

then make a

Code: Select all

net stop waptservice

Code: Select all

wapt-get register

Code: Select all

net start waptservice
Note that the "task" tab in the console can sometimes lose connection; simply switch tabs to try and regain the connection
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

January 30, 2023 - 5:29 PM

I've also wondered about this, but I don't even know how the WAPT agent retrieves the domain. My network's IP addressing and all network settings are managed by a DHCP server (Linux), which provides all the configuration and the search domain (in lowercase). Does WAPT perhaps retrieve the domain in the Windows sense? If so, then I understand the uppercase/lowercase distinction because the machine's Windows domain is indeed written in uppercase. Although, in this case, it doesn't seem very logical to differentiate between case.

On my test machine, when I view the network adapter's configuration details (Control Panel > Network and Sharing Center > Network Connection Details), the "Connection-specific DNS Suffix" setting is indeed in lowercase.

On my test machine, I uninstalled everything (agent and console, since it's the same machine), deleted the last directories related to WAPT, rebooted the machine, and reinstalled everything, but I still get the same result.
flipflip
Messages: 56
Registration: May 31, 2022 - 09:05

January 30, 2023 - 6:05 PM

Oops, our answers crossed.

@sfonteneau, your suggestion allowed me to correctly reinstall the machine in the console. So I launched the PowerShell package installation while monitoring the machine's Windows Task Manager. I can clearly see the waptpython process going haywire for several seconds, then nothing.

I went back to the console after waiting 30 minutes without doing anything on the machine, but everything is still pending
wapt-7.png
wapt-7.png (27.34 KB) Viewed 4696 times
I checked the event viewer on the test machine and I found this in the logs:

Code: Select all

Nom de l’application défaillante waptpython.exe, version : 3.8.16150.1013, horodatage : 0x638fbd39
Nom du module défaillant : python38.dll, version : 3.8.16150.1013, horodatage : 0x638fbd0f
Code d’exception : 0xc0000005
Décalage d’erreur : 0x001e48ba
ID du processus défaillant : 0x184c
Heure de début de l’application défaillante : 0x01d934bbb5f93917
Chemin d’accès de l’application défaillante : C:\Program Files (x86)\wapt\waptpython.exe
Chemin d’accès du module défaillant: C:\Program Files (x86)\wapt\python38.dll
ID de rapport : 39ba0bdf-a0ba-11ed-815a-0800278aa4f7
Locked