# awx and postgresql external database error

**URL:** <https://forum.ansible.com/t/awx-and-postgresql-external-database-error/30615>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 20, 2019, 3:07pm UTC](https://forum.ansible.com/t/awx-and-postgresql-external-database-error/30615 "2019-06-20T15:07:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrice\_Gagnon](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Patrice\_Gagnon](https://forum.ansible.com/u/Patrice_Gagnon)\
**Post date:** [June 20, 2019, 3:07pm UTC](https://forum.ansible.com/t/awx-and-postgresql-external-database-error/30615/1 "2019-06-20T15:07:31Z")

</div>

Hi all,

I have started to install AWX on Openshift with external database, and the installation failed with error:

this a part of the ansible install log:  
…

File "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/base/base.py", line 189, in connect", " self.connection = self.get\_new\_connection(conn\_params)“, " File "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/django/db/backends/postgresql/base.py", line 176, in get\_new\_connection”, " connection = Database.connect(\*\*conn\_params)“, " File "/var/lib/awx/venv/awx/lib64/python3.6/site-packages/psycopg2/ **init**.py", line 130, in connect”, " conn = \_connect(dsn, connection\_factory=connection\_factory, \*\*kwasync)", “django.db.utils.OperationalError: SCRAM authentication requires libpq version 10 or above”, “”, “command terminated with exit code 1”], “stdout”: “”, “stdout\_lines”: }  
…

we have Postgresql 10 with Openshift 3.10.

Any idea?

thank you!

---

<div class="post-metadata">

**Author:** ![Patrice\_Gagnon](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@Patrice\_Gagnon](https://forum.ansible.com/u/Patrice_Gagnon)\
**Post date:** [June 30, 2019, 11:36am UTC](https://forum.ansible.com/t/awx-and-postgresql-external-database-error/30615/2 "2019-06-30T11:36:09Z")

</div>

The problem was the password encrypted in SCRAM instead of md5.

Recrypt the password to md5 and all is perfect.
