Why getting the "ERROR: initdb failed" at TASK [ansible.automation_platform_installer.packages_el : Upgrade to PostgreSQL 12] during Installation?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content