Why is Tower Setup Failing with FATAL: database <databasename> does not exist errors ?

Solution Verified - Updated -

Issue

Tower setup is failing with database does not exist errors.

......
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)", "django.db.utils.OperationalError: FATAL:  database \"<databasename>\" does not exist"], "stdout": "", "stdout_lines": []}

Environment

Ansible Tower and AAP 2.X

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