Bonjour,
J’ai tenté d’installer Wazo Platform sur un serveur qui doit passer par un proxy pour accéder à Internet.
En utilisant export http_proxy="http://PROXY_IP:PROXY_PORT"; export https_proxy="http://PROXY_IP:PROXY_PORT"
, le git clone, et l’installation des paquets s’effectue correctement.
Néanmoins, l’exécution du ansible-playbook -i inventories/uc-engine uc-engine.yml
bloque sur la configuration de Wazo-Auth, lors de la tâche “Create service users with wazo-auth-keys” :
TASK [Install Wazo auth] *****************************************************************************************************************************************************************************************************************
TASK [wazo-auth : Install wazo-auth] *****************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [wazo-auth : Create default wazo-auth database preconfiguration] ********************************************************************************************************************************************************************
changed: [localhost]
TASK [wazo-auth : Copy wazo-auth database preconfiguration if needed] ********************************************************************************************************************************************************************
skipping: [localhost]
TASK [wazo-auth : Reset database options for wazo-auth package] **************************************************************************************************************************************************************************
changed: [localhost]
TASK [wazo-auth : Reconfigure database options for wazo-auth package] ********************************************************************************************************************************************************************
changed: [localhost]
TASK [wazo-auth : Initialize wazo-auth database] *****************************************************************************************************************************************************************************************
changed: [localhost]
TASK [engine-api-init : Create an index.html for the home page] **************************************************************************************************************************************************************************
skipping: [localhost]
TASK [engine-api-init : Install wazo-auth-keys] ******************************************************************************************************************************************************************************************
ok: [localhost]
TASK [engine-api-init : Create service users with wazo-auth-keys] ************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["wazo-auth-keys", "service", "update"], "delta": "0:00:01.086784", "end": "2023-11-09 10:30:54.496200", "msg": "non-zero return code", "rc": 1, "start": "2023-11-09 10:30:53.409416", "stderr": "503 Server Error: Service Unavailable for url: http://localhost:9497/0.1/token", "stderr_lines": ["503 Server Error: Service Unavailable for url: http://localhost:9497/0.1/token"], "stdout": "", "stdout_lines": []}
PLAY RECAP *******************************************************************************************************************************************************************************************************************************
localhost : ok=102 changed=11 unreachable=0 failed=1 skipped=52 rescued=0 ignored=0
J’ai ceci dans /var/log/wazo-auth.log
:
2023-11-09 10:30:53,852 [6050] (INFO) (wazo-auth): request: POST http://localhost:9497/0.1/token {'Host': 'localhost:9497', 'Accept-Encoding': 'identity', 'Connection': 'close', 'User-Agent': 'Wazo Python auth client', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Content-Length': '21'} with data {"expiration": 21600}
2023-11-09 10:30:54,542 [6050] (INFO) (wazo_auth.plugins.http.tokens.http): Failed login: unknown username or password for login from 127.0.0.1 using agent "Wazo Python auth client"
2023-11-09 10:30:54,543 [6050] (INFO) (wazo-auth): response to 127.0.0.1 in 0.69s: POST http://localhost:9497/0.1/token 401
Enfin, après l’exit d’ansible, le port 9497 est en écoute et répond au telnet…
Testé en parallèle : si j’effectue l’installation sur une machine d’un autre infra, qui a un accès direct à Internet, le problème ne se présente pas.
Merci d’avance pour votre aide !