# Problem with instalation AWX

**URL:** <https://forum.ansible.com/t/problem-with-instalation-awx/34526>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [January 28, 2021, 3:18pm UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526 "2021-01-28T15:18:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beata\_Ragus](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Beata\_Ragus](https://forum.ansible.com/u/Beata_Ragus)\
**Post date:** [January 28, 2021, 3:18pm UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/1 "2021-01-28T15:18:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Cnu\_k](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@Cnu\_k](https://forum.ansible.com/u/Cnu_k)\
**Post date:** [January 28, 2021, 6:52pm UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/2 "2021-01-28T18:52:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Oliver\_Schiinke](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Oliver\_Schiinke](https://forum.ansible.com/u/Oliver_Schiinke)\
**Post date:** [January 29, 2021, 11:41am UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/3 "2021-01-29T11:41:05Z")

</div>

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/](https://computingforgeeks.com/how-to-install-ansible-awx-on-ubuntu-linux/)

---

<div class="post-metadata">

**Author:** ![Robert\_Sossomon](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@Robert\_Sossomon](https://forum.ansible.com/u/Robert_Sossomon)\
**Post date:** [January 29, 2021, 2:07pm UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/4 "2021-01-29T14:07:20Z")

</div>

Did you run the steps in the readme:  
[https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes](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. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [February 1, 2021, 8:17am UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/5 "2021-02-01T08:17:51Z")

</div>

Can you share how your inventory looks like?

---

<div class="post-metadata">

**Author:** ![Michael\_Nhan](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Michael\_Nhan](https://forum.ansible.com/u/Michael_Nhan)\
**Post date:** [February 8, 2021, 5:15pm UTC](https://forum.ansible.com/t/problem-with-instalation-awx/34526/6 "2021-02-08T17:15:35Z")

</div>

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
