Problem with instalation AWX

737 views
Skip to first unread message

Beata Ragus

unread,
Jan 28, 2021, 10:18:16 AM1/28/21
to AWX Project
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 <module>\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?


Cnu k

unread,
Jan 28, 2021, 1:52:55 PM1/28/21
to AWX Project
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

Oliver Schiinke

unread,
Jan 29, 2021, 6:41:05 AM1/29/21
to AWX Project
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:

The Sossomons

unread,
Jan 29, 2021, 9:07:34 AM1/29/21
to Cnu k, AWX Project
Did you run the steps in the readme:

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

Thanks!

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/72caa7b7-b25e-4142-b877-a8b3f141dd2an%40googlegroups.com.

Ankit Vashistha

unread,
Feb 1, 2021, 3:18:04 AM2/1/21
to Beata Ragus, AWX Project
Can you share how your inventory looks like?

Regards,
Ankit


--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.

michae...@gmail.com

unread,
Feb 8, 2021, 12:15:35 PM2/8/21
to AWX Project
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
Reply all
Reply to author
Forward
0 new messages