Page 1 of 1

[SOLVED] installation error failed as 401 Unauthorized

Published: Dec 24, 2025 - 08:58
by skoizer
Hello,
License: enterprise
version: 2.6.1.17472
Windows 11 25H2


I created a powershell script to install the agent on workstations in certain cases.

The waptdeploy.exe is that of the server = 2.6.1.17472

$Path= $PSScriptRoot
cd $PSScriptRoot
./waptdeploy.exe --hash=ed805600a3653a9c5c8901c8dda8b62220778bcb192d49b9ae385509007e71d7 --minversion=2.6.1.17472 --wait=15 --waptsetupurl=https://srvwapt.mondomaine.fr/api/v3/ge ... tagent.exe
Start-Sleep -Seconds 30
cd "C:\Program Files (x86)\wapt"
./wapt-get reset-config-from-url https://srvwap.mondomaine.frt/wapt/conf ... 9d79e.json


I have an error:

Error trying to get https://srvwapt.mondomaine.fr/api/v3/get_waptagent_exe/ : Error downloading https://srvwapt.mondomaine.fr/api/v3/get_waptagent_exe/: [EHttpSocket] THttpClientSocket.WGet: srvwapt.mondomaine.fr:443/api/v3/get_waptagent_exe/
failed as 401 Unauthorized... sleeping
Delete sheduled task "fullwaptupgrade"


if I go to the url https://srvwapt.mondomaine.fr/api/v3/ge ... tagent.exe
I get this nice error 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.



systemctl status nginx.service
the system is active

Re: [AGENT] installation error failed as 401 Unauthorized

Published: Dec 24, 2025 - 09:12
by skoizer
Fixed by changing --> {{ip}}
./waptdeploy.exe --hash=ed805600a3653a9c5c8901c8dda8b62220778bcb192d49b9ae385509007e71d7 --minversion=2.6.1.17472 --wait=15 --waptsetupurl=https://srvwapt.mydomain.com/api/v3/ge ... tagent.exe
to

./waptdeploy.exe --hash=ed805600a3653a9c5c8901c8dda8b62220778bcb192d49b9ae385509007e71d7 --minversion=2.6.1.17472 --wait=15 --waptsetupurl=https://srvwapt.mondomaine.fr/api/v3/ge ... tagent.exe

Re: [SOLVED] installation error failed as 401 Unauthorized

Published: Dec 29, 2025 - 3:04 PM
by sfonteneau
{{ip}} is normally interpreted by Wapt Deploy

and allows redirection to the correct secondary repository: for example,

https://srvwapt.mydomain.com/api/v3/ge ... tagent.exe.

Wapt Deploy must be up to date for this to work.

Re: [SOLVED] installation error failed as 401 Unauthorized

Published: Dec 30, 2025 - 5:28 PM
by skoizer
However, the version is correct...
"The waptdeploy.exe file is the one from the server = 2.6.1.17472"