I'm installing Ansible Tower on RHEL 8.4 with AutoHub on a separate VM also 8.4.
The install fails at the following - any ideas?
Doesn't seem to be firewall since I ran it with firewalld stopped.
TASK [pulp.pulp_installer.pulp_database_config : Run database migrations] **************************** fatal: [autohub]: FAILED! => {"changed": true, "cmd": ["/usr/bin/pulpcore-manager", "migrate", "--no-input"], "delta": "0:00:02.314739", "end": "2021-07-26 13:46:51.958933", "msg": "non-zero return code", "rc": 1, "start": "2021-07-26 13:46:49.644194", "stderr": "Traceback (most recent call last):\n File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection\n self.connect()\n File \"/usr/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 \"/usr/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 \"/usr/lib64/python3.6/site-packages/psycopg2/__init__.py\", line 127, in connect\n conn = _connect(dsn, connection_factory=connection_factory, **kwasync)\npsycopg2.OperationalError: could not connect to server: No such file or directory\n\tIs the server running locally and accepting\n\tconnections on Unix domain socket \"/var/run/postgresql/.s.PGSQL.5432\"?\n\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/usr/bin/pulpcore-manager\", line 11, in <module>\n load_entry_point('pulpcore==3.7.5', 'console_scripts', 'pulpcore-manager')()\n File \"/usr/lib/python3.6/site-packages/pulpcore/app/manage.py\", line 11, in manage\n execute_from_command_line(sys.argv)\n File \"/usr/lib/python3.6/site-packages/django/core/management/__init__.py\", line 381, in execute_from_command_line\n utility.execute()\n File \"/usr/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 \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 323, in run_from_argv\n self.execute(*args, **cmd_options)\n File \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 364, in execute\n output = self.handle(*args, **options)\n File \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 83, in wrapped\n res = handle_func(*args, **kwargs)\n File \"/usr/lib/python3.6/site-packages/django/core/management/commands/migrate.py\", line 87, in handle\n executor = MigrationExecutor(connection, self.migration_progress_callback)\n File \"/usr/lib/python3.6/site-packages/django/db/migrations/executor.py\", line 18, in __init__\n self.loader = MigrationLoader(self.connection)\n File \"/usr/lib/python3.6/site-packages/django/db/migrations/loader.py\", line 49, in __init__\n self.build_graph()\n File \"/usr/lib/python3.6/site-packages/django/db/migrations/loader.py\", line 212, in build_graph\n self.applied_migrations = recorder.applied_migrations()\n File \"/usr/lib/python3.6/site-packages/django/db/migrations/recorder.py\", line 73, in applied_migrations\n if self.has_table():\n File \"/usr/lib/python3.6/site-packages/django/db/migrations/recorder.py\", line 56, in has_table\n return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())\n File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 256, in cursor\n return self._cursor()\n File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 233, in _cursor\n self.ensure_connection()\n File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection\n self.connect()\n File \"/usr/lib/python3.6/site-packages/django/db/utils.py\", line 89, in __exit__\n raise dj_exc_value.with_traceback(traceback) from exc_value\n File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection\n self.connect()\n File \"/usr/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 \"/usr/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 \"/usr/lib64/python3.6/site-packages/psycopg2/__init__.py\", line 127, in connect\n conn = _connect(dsn, connection_factory=connection_factory, **kwasync)\ndjango.db.utils.OperationalError: could not connect to server: No such file or directory\n\tIs the server running locally and accepting\n\tconnections on Unix domain socket \"/var/run/postgresql/.s.PGSQL.5432\"?", "stderr_lines": ["Traceback (most recent call last):", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection", " self.connect()", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 195, in connect", " self.connection = self.get_new_connection(conn_params)", " File \"/usr/lib/python3.6/site-packages/django/db/backends/postgresql/base.py\", line 178, in get_new_connection", " connection = Database.connect(**conn_params)", " File \"/usr/lib64/python3.6/site-packages/psycopg2/__init__.py\", line 127, in connect", " conn = _connect(dsn, connection_factory=connection_factory, **kwasync)", "psycopg2.OperationalError: could not connect to server: No such file or directory", "\tIs the server running locally and accepting", "\tconnections on Unix domain socket \"/var/run/postgresql/.s.PGSQL.5432\"?", "", "", "The above exception was the direct cause of the following exception:", "", "Traceback (most recent call last):", " File \"/usr/bin/pulpcore-manager\", line 11, in <module>", " load_entry_point('pulpcore==3.7.5', 'console_scripts', 'pulpcore-manager')()", " File \"/usr/lib/python3.6/site-packages/pulpcore/app/manage.py\", line 11, in manage", " execute_from_command_line(sys.argv)", " File \"/usr/lib/python3.6/site-packages/django/core/management/__init__.py\", line 381, in execute_from_command_line", " utility.execute()", " File \"/usr/lib/python3.6/site-packages/django/core/management/__init__.py\", line 375, in execute", " self.fetch_command(subcommand).run_from_argv(self.argv)", " File \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 323, in run_from_argv", " self.execute(*args, **cmd_options)", " File \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 364, in execute", " output = self.handle(*args, **options)", " File \"/usr/lib/python3.6/site-packages/django/core/management/base.py\", line 83, in wrapped", " res = handle_func(*args, **kwargs)", " File \"/usr/lib/python3.6/site-packages/django/core/management/commands/migrate.py\", line 87, in handle", " executor = MigrationExecutor(connection, self.migration_progress_callback)", " File \"/usr/lib/python3.6/site-packages/django/db/migrations/executor.py\", line 18, in __init__", " self.loader = MigrationLoader(self.connection)", " File \"/usr/lib/python3.6/site-packages/django/db/migrations/loader.py\", line 49, in __init__", " self.build_graph()", " File \"/usr/lib/python3.6/site-packages/django/db/migrations/loader.py\", line 212, in build_graph", " self.applied_migrations = recorder.applied_migrations()", " File \"/usr/lib/python3.6/site-packages/django/db/migrations/recorder.py\", line 73, in applied_migrations", " if self.has_table():", " File \"/usr/lib/python3.6/site-packages/django/db/migrations/recorder.py\", line 56, in has_table", " return self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor())", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 256, in cursor", " return self._cursor()", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 233, in _cursor", " self.ensure_connection()", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection", " self.connect()", " File \"/usr/lib/python3.6/site-packages/django/db/utils.py\", line 89, in __exit__", " raise dj_exc_value.with_traceback(traceback) from exc_value", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 217, in ensure_connection", " self.connect()", " File \"/usr/lib/python3.6/site-packages/django/db/backends/base/base.py\", line 195, in connect", " self.connection = self.get_new_connection(conn_params)", " File \"/usr/lib/python3.6/site-packages/django/db/backends/postgresql/base.py\", line 178, in get_new_connection", " connection = Database.connect(**conn_params)", " File \"/usr/lib64/python3.6/site-packages/psycopg2/__init__.py\", line 127, in connect", " conn = _connect(dsn, connection_factory=connection_factory, **kwasync)", "django.db.utils.OperationalError: could not connect to server: No such file or directory", "\tIs the server running locally and accepting", "\tconnections on Unix domain socket \"/var/run/postgresql/.s.PGSQL.5432\"?"], "stdout": "", "stdout_lines": []}
Clean up any poorly-permissioned (ansible-tower-setup-3.8.6.2 [rhel8.7])
Hi everyone, can help me to fix this thanks.
i forgot to take note this, I'm done to solve this issue last week. thank you!!
How will you fixed this issue?
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.