Why getting the "ERROR: initdb failed" at TASK [ansible.automation_platform_installer.packages_el : Upgrade to PostgreSQL 12] during Installation?
Issue
-
Installation failed with
ERROR: initdb failed:TASK [ansible.automation_platform_installer.packages_el : Upgrade to PostgreSQL 12] *** fatal: [Database.example.com]: FAILED! => {"changed": true, "cmd": ["/bin/postgresql-setup", "--upgrade", "--upgrade-from=postgresql"], "msg": "non-zero return code", "rc": 1, "stderr": " * Upgrading database.\nERROR: initdb failed\nERROR: Upgrade failed.\n * See /var/lib/pgsql/upgrade_postgresql.log for details.", "stderr_lines": [" * Upgrading database.", "ERROR: initdb failed", "ERROR: Upgrade failed.", " * See /var/lib/pgsql/upgrade_postgresql.log for details."], "stdout": "", "stdout_lines": []}
Environment
- Ansible Automation Platform 2.X and later.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.