[RESOLVED] GPO agent 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
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 24, 2023 - 08:16

Good morning,
I am on Windows Server 2022 with Wapt version 2.4.014143

I created a GPO that sets up a scheduled task to deploy the WAPT agent to my client workstations.

Everything worked correctly until the upgrade to version 2.4.0.14143 of WAPT.

I modified the hash as usual (--hash=5e80905b087b20818631dcbe765d89a788df2a5140bd55e5413e152d43861fd6 --minversion=2.4.0.14143 --wait=15 --waptsetupurl=http://"IP of my server"/api/v3/get_waptagent_exe/{{ip}}/waptagent.exe)

I tried running the command directly from PowerShell. Here's the error I'm getting:

Code: Select all

WAPT version: 
WAPT required version: 2.4.0.14143
Wapt agent path: C:\Users\ADMINI~1\AppData\Local\Temp\waptagent.exe
Wget new waptagent from http://172.18.50.13/api/v3/get_waptagent_exe/
Trying to reach http://"IP de mon serveur"/api/v3/get_waptagent_exe/...
Expecting hash sha256: 5e80905b087b20818631dcbe765d89a788df2a5140bd55e5413e152d43861fd6
Using proxy : 
Error trying to get http://"IP de mon serveur"/api/v3/get_waptagent_exe/ : Error downloading http://"IP de mon serveur"/api/v3/get_waptagent_exe/: [EHttpSocket] THttpClientSocket.WGet:
 "IP de mon serveur":80/api/v3/get_waptagent_exe/ failed as HTTP Error 404 - Not Found... sleeping
Delete sheduled task "fullwaptupgrade"
c:\temp\waptdeploy.exe : An unhandled exception occurred at $004038EC:
Au caractère C:\Users\Administrateur\Desktop\Pb Wapt.ps1:1 : 1
+ c:\temp\waptdeploy.exe --hash=5e80905b087b20818631dcbe765d89a788df2a5 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An unhandled ex...d at $004038EC::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Exception: Error downloading http://"IP de mon serveur"/api/v3/get_waptagent_exe/: [EHttpSocket] THttpClientSocket.WGet: "IP de mon serveur"/api/v3/get_waptagent_exe/ failed as 
HTTP Error 404 - Not Found
  $004038EC
  $00404A87
Do you have any idea where the problem comes from?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 24, 2023 - 09:27

Hi Christophe,

have you updated the waptdeploy.exe binary in the GPO to the latest version? We've added support for {{ip}} to allow the use of the remote repository during the initial deployment.

Also, did you restart the postconf after the update?

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
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 24, 2023 - 09:48

Yes, I've updated the Waptdeploy binary.

However, what is postconf?
How do I restart it?
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 25, 2023 - 11:07

Can anyone help me?

I'm using Windows Server 2022, and I'm not sure if I'm affected by postconf.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 25, 2023 - 11:27

In your GPO, have you replaced waptdeploy with the latest version?


It's available on the server:
https://srvwapt.mydomain.lan/wapt/wapta ... deploy.exe
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 25, 2023 - 11:35

Yes, I replaced it correctly.
Attachments
Screenshot 2023-10-25 113435.png
Screenshot 2023-10-25 113435.png (21.67 KB) Viewed 5958 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 25, 2023 - 11:59

Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 25, 2023 - 12:12

No, unfortunately.
After accepting the risk because the self-signed certificate isn't secure, I get this message:
Internal Server Error.

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 25, 2023 - 1:59 PM

Do you have any secondary deposit rules?
Christophe
Messages: 85
Registration: June 5, 2018 - 8:31 AM
Location: Arras (62)
Contact :

October 25, 2023 - 2:15 PM

Yes, indeed, I have rules based on the agents' IP addresses because I have 2 remote repositories
Locked