Can't install agent with "Start-IcingaAgentInstallWizard"

hello

We can’t install icinga agent for windows on our windows 2016 servers.
here is the script we use :

Use-Icinga;
Start-IcingaAgentInstallWizard -DirectorUrl 'https://server.test.local/icingaweb2/director/'
-SelfServiceAPIKey ‘5c4fcfcead2910e3f532c4473f922ee7161cdb9e’ -UseDirectorSelfService 1
-OverrideDirectorVars 0 -Reconfigure
-RunInstaller

[Error]: The remote host for address “https://server.test.local/icingaweb2/director/self-service/powershell-parameters?key=c6c2d84b669f96b464aac2c408a04df52778a7bb” could not be resolved
[Error]: Your local stored host key is no longer valid. Using provided template key
[Notice]: Host was successfully registered within Icinga Director
[Error]: The remote host for address “https://server.test.local/icingaweb2/director/self-service/ticket?key=a059332a52ec5576db5469ae4b7e2526628807c0” could not be resolved
ScriptHalted
Au caractère C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache\framework_cache.psm1:109 : 9
throw $response.Content;
~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : OperationStopped: (:slight_smile: [], RuntimeException
FullyQualifiedErrorId : ScriptHalted

we don’t use satellites, only one master and many agents

  • director version 1.8.1
  • Icinga Web 2 Version 2.9.3 and modules (System - About):
  • Icinga 2 version r2.13.1-1
  • Operating System and version Ubuntu 20.04.3 LTS (Focal Fossa)
  • Webserver, PHP versions: 7.4.3

[Error]: The remote host for address
https://server.test.local/icingaweb2/…” could not be resolved

[Error]: The remote host for address
https://server.test.local/icingaweb2/…” could not be resolved

What does server.test.local resolve to if you try to ping it, for example?

Antony.

i can ping the server with his name/ name (fqdn) / ip address

i have this error when i try to open the link with a browser :
https://server.test.local/icingaweb2/director/self-service/ticket?key=a059332a52ec5576db5469ae4b7e2526628807c0

#0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Director\Controllers\SelfServiceController->ticketAction()
#1 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#3 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch()
#4 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch()
#5 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#6 {main}