AWX installation using docker-compose with python3

,

Hi,

After installation AWX on centos 8 on VM created on Hyper-v getting below error. But when I used same command on VM created on AWS it’s working fine.

Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/libexec/platform-python”
},
“changed”: false,
“elapsed”: 301,
“msg”: “Timeout when waiting for postgres:5432”
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/libexec/platform-python”
},
“changed”: false,
“elapsed”: 301,
“msg”: “Timeout when waiting for memcached:11211”
}
Using /etc/ansible/ansible.cfg as config file
127.0.0.1 | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/libexec/platform-python”
},
“changed”: false,
“elapsed”: 301,
“msg”: “Timeout when waiting for rabbitmq:5672”
}
Using /etc/ansible/ansible.cfg as config file
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TCP/IP connections on port 5432?
127.0.0.1 | FAILED! => {
“ansible_facts”: {
“discovered_interpreter_python”: “/usr/libexec/platform-python”
},
“changed”: false,
“msg”: “unable to connect to database: could not connect to server: No route to host\n\tIs the server running on host "postgres" (172.18.0.4) and accepting\n\tTCP/IP connections on port 5432?\n”

regards,
Rahul

Look at the last error msg: No route to host
You’re routing to 172.18.0.4 isn’t working/setup and also check whether your DNS config resolves any hostnames you’re using in the inventory file.