# awx\_task container won't work with external PostgreSQL

**URL:** <https://forum.ansible.com/t/awx-task-container-wont-work-with-external-postgresql/29434>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [January 14, 2019, 2:39pm UTC](https://forum.ansible.com/t/awx-task-container-wont-work-with-external-postgresql/29434 "2019-01-14T14:39:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkhan](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Darkhan](https://forum.ansible.com/u/Darkhan)\
**Post date:** [January 14, 2019, 2:39pm UTC](https://forum.ansible.com/t/awx-task-container-wont-work-with-external-postgresql/29434/1 "2019-01-14T14:39:05Z")

</div>

I have deployed AWX on docker-compose with an external PostgreSQl DB.  
I have commented postgres\_data\_dir in inventory and filled pg\_hostname, pg\_username, pg\_password,  
pg\_database, pg\_port.  
I have created the AWX db and user on PostgreSQL. I’ve edited the pg\_hba.conf file so postgre can accept connections, verified it and it works.

The web page says “AWX is currently upgrading. This page will refresh when complete.” And the refresh arrows keep spinning but it never finishes. (see awx.png attachment)

awx\_task logs show:

[2019-01-14 14:23:50,451: WARNING/Process-1] Database settings are not available, using defaults, error:

Traceback (most recent call last):

ProgrammingError: relation “conf\_setting” does not exist

LINE 1: …f\_setting".“value”, “conf\_setting”.“user\_id” FROM "conf\_sett…

(see awx\_task.log attachment for full stack trace)

Did anyone successfully deploy AWX on Docker with external PostgreSQL? Am I missing anything?

Regards,

Adrian

> **(attachments)**
>
> ![awx.PNG](https://us1.discourse-cdn.com/ansible/original/2X/e/ea5a726269bc5e13e777d53be3dbb2fafd7a29a5.png)  
> [awx\_task.log](https://forum.ansible.com/uploads/short-url/kzOKuG1V7unV45cOW9X99VW7tH3.log) (5.01 KB)
