Problem with instalation AWX

Hello I am trying to install AWX on CENTOS 8 but last step install ansible playbook with awx instalation failed

fatal: [localhost]: FAILED! => { “changed”: true, “cmd”: “docker-compose run --rm --service-ports task awx-manage migrate --no-input”, “delta”: “0:00:14.314757”, “end”: “2021-01-28 15:13:31.169899”, “invocation”: { “module_args”: { “_raw_params”: “docker-compose run --rm --service-ports task awx-manage migrate --no-input”, “_uses_shell”: true, “argv”: null, “chdir”: “/home/ragbeata/.awx/awxcompose”, “creates”: null, “executable”: null, “removes”: null, “stdin”: null, “stdin_add_newline”: true, “strip_empty_ends”: true, “warn”: true } }, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-01-28 15:13:16.855142”, “stderr”: "Creating network "awxcompose_default" with the default driver\nCreating awx_redis … \r\nCreating awx_redis … done\r\nCreating awx_web … \r\nCreating awx_web … done\r\nCreating awxcompose_task_run … \r\nCreating awxcompose_task_run … done\r\nTraceback (most recent call last):\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection\n self.connect()\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect\n self.connection = self.get_new_connection(conn_params)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 178, in get_new_connection\n connection = Database.connect(**conn_params)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/psycopg2/init.py", line 126, in connect\n conn = _connect(dsn, connection_factory=connection_factory, **kwasync)\npsycopg2.OperationalError: could not translate host name "postgresql" to address: Name or service not known\n\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File "/usr/bin/awx-manage", line 8, in \n sys.exit(manage())\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/init.py", line 154, in manage\n execute_from_command_line(sys.argv)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py", line 381, in execute_from_command_line\n utility.execute()\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py", line 375, in execute\n self.fetch_command(subcommand).run_from_argv(self.argv)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 323, in run_from_argv\n self.execute(*args, **cmd_options)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 364, in execute\n output = self.handle(*args, **options)\n File "/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py", line 83, in wrapped

I was trying so many instructions YT tutorials always the same.

Is some 100% checked install guide?

I don’t know much about docker compose but I have set up AWX 17.0.0 in Kubernetes cluster without any issues. Can you check if postgresql container is up and running since I see something about that in the error?

Thanks

Hi,

Have you installed Docker & Docker Compose accordingly?

I followed this instructions below and worked for me, it is for Ubuntu, but it does not matter, just replace some specific “flavored” commands:

https://computingforgeeks.com/how-to-install-ansible-awx-on-ubuntu-linux/

Did you run the steps in the readme:
https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes

Just want to make sure I am not missing anything while running down this rabbit hole. :slight_smile:

Thanks!

Can you share how your inventory looks like?

Did you install the docker and docker-compose rpms? can you do a docker pull of the awx and postgresql images from dockerhub or where ever your docker image repository is pointing to from the machine you are installing this on?

Michael