Ansible

Résolu/Fermé
Azghalar - 8 avril 2021 à 16:52
 Azghalar - 9 avril 2021 à 16:54
Bonjour actuellement en train de mettre en place AWX sur ma Debian Buster je rencontre une erreur quand j'exécute cette commande :

ansible-playbook -v -i inventory install.yml

Il me fait le chargement puis il à la sections "TASK [local_docker : Run migrations in task container] il m'indique cette erreur (bon elle est assez longue) :

fatal: [localhost]: FAILED! => {"changed": true, "cmd": "docker-compose run --rm --service-ports task awx-manage migrate --no-input", "delta": "0:00:03.477060", "end": "2021-04-08 16:42:34.576467", "msg": "non-zero return code", "rc": 1, "start": "2021-04-08 16:42:31.099407", "stderr": "Creating network \"awxcompose_default\" with the default driver\nCreating awx_postgres ... \r\nCreating awx_redis ... \r\nCreating awx_postgres ... done\r\nCreating awx_redis ... done\r\nCreating awx_web ... \r\nHost is already in use by another container\nCreating awx_web ... error\r\n\nERROR: for awx_web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (23a41c6e741f092a78183f7e314ae520764ef80cd6bd6a65c1ac548384562b66): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use\n\nERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (23a41c6e741f092a78183f7e314ae520764ef80cd6bd6a65c1ac548384562b66): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use\nEncountered errors while bringing up the project.", "stderr_lines": ["Creating network \"awxcompose_default\" with the default driver", "Creating awx_postgres ... ", "Creating awx_redis ... ", "Creating awx_postgres ... done", "Creating awx_redis ... done", "Creating awx_web ... ", "Host is already in use by another container", "Creating awx_web ... error", "", "ERROR: for awx_web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (23a41c6e741f092a78183f7e314ae520764ef80cd6bd6a65c1ac548384562b66): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use", "", "ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (23a41c6e741f092a78183f7e314ae520764ef80cd6bd6a65c1ac548384562b66): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use", "Encountered errors while bringing up the project."], "stdout": "", "stdout_lines": []}

Je n'arrive pas corriger cette erreur et surtout je ne sais pas trop d'où elle vient pouvez-vous m'aider? Merci d'avance

2 réponses

avion-f16 Messages postés 19244 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 17 avril 2024 4 496
Modifié le 8 avril 2021 à 18:05
Bonjour,

Le container "awx_web" ne parvient pas à démarrer :
Creating awx_web ...
Host is already in use by another container


Je suppose que le port de l'hôte auquel le container tente de créer un "bind" est déjà occupé par un autre programme. Ton installation de Debian est-elle "clean" ? Tu as peut-être déjà un Apache/Nginx sur le port 80.
1
En effet c'était Apache qui bloquait le port. Merci !
0