Why Ansible Tower Restore Is Failing With 'permission denied' On The 'tower.db' file ?

Solution Verified - Updated -

Issue

When restoring a Ansible Tower backup, the installer fails with permission denied error on the tower.db file.

TASK [Perform a PostgreSQL restore (internal).] *********************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "psql --dbname='template1' < tower.db && psql --dbname='awx' < new_instance_topology.db", "delta": "0:00:00.009533", "end": "2020-07-01 03:59:27.812137", "msg": "non-zero return code", "rc": 1, "start": "2020-07-01 03:59:27.802604", "stderr": "/bin/sh: tower.db: Permission denied", "stderr_lines": ["/bin/sh: tower.db: Permission denied"], "stdout": "", "stdout_lines": []}

Environment

Ansible Tower

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