Awx: Installing AWX - error “Is the server running on host ”postgres“ and accepting”

Created on 12 Dec 2018  ·  2Comments  ·  Source: ansible/awx

ISSUE TYPE

  • Bug Report
COMPONENT NAME

  • Installer
SUMMARY


problem install AWX - could not connect to progress

ENVIRONMENT
  • AWX version: X.Y.Z
  • AWX install method: docker on linux
  • Ansible version: 2.7.0
  • Operating System: Red Hat Linux 7.6
  • Web Browser:
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

...
File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
self.connection = self.get_new_connection(conn_params)
File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
connection = Database.connect(*conn_params)
File "/var/lib/awx/venv/awx/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, *
kwasync)
OperationalError: could not connect to server: No route to host
Is the server running on host "postgres" (172.17.0.2) and accepting
TCP/IP connections on port 5432?

2018-12-11 07:22:51,674 - INFO - runworker - Using single-threaded worker.
2018-12-11 07:22:51,674 - INFO - runworker - Running worker against channel layer default (asgi_amqp.core.AMQPChannelLayer)
2018-12-11 07:22:51,674 - INFO - worker - Listening on channels websocket.connect, websocket.disconnect, websocket.receive
RESULT 2
OKREADY
...

ADDITIONAL INFORMATION

I follow the instruction in https://github.com/ansible/awx/blob/devel/INSTALL.md
In the inventory file I leave the default, I change only the proxy definition.
when I run 'docker logs -f awx_task' I got the error above.
I don't familiar with docker.

installer bug

Most helpful comment

Is the default configuration of AWX not set to work this way?
I'm beginner with container, what I need to change?

All 2 comments

you need to make sure that you're configured in such a way that AWX containers can connect to the postgres container.

Is the default configuration of AWX not set to work this way?
I'm beginner with container, what I need to change?

Was this page helpful?
0 / 5 - 0 ratings