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.OperationalError:**
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