Ansible Automation Platform 2.4 installation is failing with error "return self.cursor.execute(sql)\npsycopg2.errors.UniqueViolation: duplicate key value violates unique constraint \"pg_type_typname_nsp_index\"

Solution Verified - Updated -

Issue

  • The Ansible Automation Platform 2.4 installation is failing with the following error.

    [0;31mfatal: [eda2.example.com]: FAILED! => {"changed": true, "cmd": "export $(cat /etc/ansible-automation-platform/eda/environment| xargs) && aap-eda-manage
    .
    .
    .
    return self.cursor.execute(sql)\npsycopg2.errors.UniqueViolation: duplicate key value violates unique constraint \"pg_type_typname_nsp_index\"\nDETAIL:  Key (typname, typnamespace)=(core_user_id_seq, 2200) already exists.\n\n\nThe above exception was the direct cause of the following exception:\n\nTraceback 
    

Environment

  • Red Hat Ansible Automation Platform 2.4

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