# AWX 6.1.0 : Database relation Error

**URL:** <https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163>\
**Category:** AWX Project\
**Tags:** ubuntu, awx\
**Created:** [August 29, 2019, 8:33am UTC](https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163 "2019-08-29T08:33:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_A](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@Cedric\_A](https://forum.ansible.com/u/Cedric_A)\
**Post date:** [August 29, 2019, 8:33am UTC](https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163/1 "2019-08-29T08:33:55Z")

</div>

Hi all,

I’m trying to install AWX 6.1.0 on my Ubuntu 16.04.5 with an external postgre database 9.6 in SLES 12.  
Before to test this latest version, I had the AWX version 1.0.6.15 and .41 (yes it’s very old 🙂 ) with the same external database.

For this test, I have stop and delete my AWX containers (awx\_task, web, rabbitMQ, memcache) and stop/delete my database.  
So I recreate my DB from scratch with the same account and database name but when AWX 6.1.0 finished booting, I have the logs below on my DB and I don’t understand why…

Is there a cache or something in my Ubuntu server ?

======== From DB server - Logs ============

myAccount@postgres ERROR: must be owner of database awxbddpreprod  
myAccount@postgres STATEMENT: ALTER DATABASE “awxbddpreprod” OWNER TO “myAccount”  
[unknown]@[unknown] LOG: incomplete startup packet  
myAccount@postgres ERROR: must be owner of database awxbddpreprod  
myAccount@postgres STATEMENT: ALTER DATABASE “awxbddpreprod” OWNER TO “myAccount”  
myAccount@awxbddpreprod ERROR: relation “conf\_setting” does not exist at character 158  
…  
…

myAccount@awxbddpreprod ERROR: relation “django\_migrations” does not exist at character 124

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [September 3, 2019, 4:42pm UTC](https://forum.ansible.com/t/awx-6-1-0-database-relation-error/31163/2 "2019-09-03T16:42:46Z")

</div>

I believe those are Django error logs. For some reason or another Django is expecting that your “myAccount” user be the owner of the database it’s attempting to use, “awxbddpreprod”. When you deleted the database you probably deleted permissions attached to it as well.

Just log onto the postgres server and run the command in the logs - ALTER DATABASE “awxbddpreprod” OWNER TO “myAccount”. The next time you delete/create the database set the database owner as well.
