# Connection timed out\\n\\tIs the server running on host \\"awx-postgresql

**URL:** <https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544>\
**Category:** AWX Project\
**Tags:** kubernetes, awx\
**Created:** [March 26, 2020, 6:32pm UTC](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544 "2020-03-26T18:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANCHIT\_KHANDELWAL](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@SANCHIT\_KHANDELWAL](https://forum.ansible.com/u/SANCHIT_KHANDELWAL)\
**Post date:** [March 26, 2020, 6:32pm UTC](https://forum.ansible.com/t/connection-timed-out-n-tis-the-server-running-on-host-awx-postgresql/32544/1 "2020-03-26T18:32:27Z")

</div>

While installing AWX version 9.1.0 on kubernetes, I encountered the below while running the installer

Stucks at task : **Migrate database**

**Error :**

fatal: [localhost]: FAILED! =\>

{“changed”: true, “cmd”: “kubectl -n awx exec ansible-tower-management – bash -c "awx-manage migrate --noinput"\n”,

“delta”: “0:19:08.858769”, “end”: “2020-03-27 02:02:11.711247”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2020-03-27 01:43:02.852478”,

“stderr”: "Traceback (most recent call last):\n File "/var/lib/awx/venv/awx/lib64/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/lib64/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/lib64/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/lib64/python3.6/site-packages/psycopg2/ **init**.py", line 126, in connect\n

conn = \_connect(dsn, connection\_factory=connection\_factory, **kwasync)\npsycopg2.Operational**Error:\*\*

**could not connect to server: Connection timed out\n\tIs the server running on host "awx-postgresql" (10.98.4.144)**

**and accepting\n\tTCP/IP connections on port 5432?** \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 11, in \n load\_entry\_point(‘awx==9.1.0.0’,

‘console\_scripts’, ‘awx-manage’)()\n File "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/awx/ **init**.py", line 165, in manage\n

execute\_from\_command\_line(sys.argv)\n File "/var/lib/awx/venv/awx/lib64/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/lib64/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/lib64/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/lib64/python3.6/site-packages/django/core/management/base.py",

Kindly suggest how to resolve this error.

Thanks,

Sanchit
