# Dev Database Access

**URL:** <https://forum.ansible.com/t/dev-database-access/25710>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 10, 2017, 1:35am UTC](https://forum.ansible.com/t/dev-database-access/25710 "2017-10-10T01:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry.singer](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@larry.singer](https://forum.ansible.com/u/larry.singer)\
**Post date:** [October 10, 2017, 1:35am UTC](https://forum.ansible.com/t/dev-database-access/25710/1 "2017-10-10T01:35:36Z")

</div>

Hi All,

I have set up a development environment as on [https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md](https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md)

I want to look at the database, but I cannot access it using the value in pg\_username and pg\_password. I am getting the error:

```
 psql: FATAL: role &quot;awx&quot; does not exist

```

What credentials can I use to access the database?

Larry

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [October 10, 2017, 2:15pm UTC](https://forum.ansible.com/t/dev-database-access/25710/2 "2017-10-10T14:15:42Z")

</div>

You didn’t say how you started up the development environment… there are two ways:

- make docker-compose
- make docker-compose-test

It seems like you _may_ have done the latter in which case you may have forgotten to do the second code block here: [https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#start-from-the-container-shell](https://github.com/ansible/awx/blob/devel/CONTRIBUTING.md#start-from-the-container-shell)

As you can see from here: [https://github.com/ansible/awx/blob/devel/tools/docker-compose/bootstrap\_development.sh](https://github.com/ansible/awx/blob/devel/tools/docker-compose/bootstrap_development.sh)

bootstrap development will create the database user awx-dev with a password of AWXsome1

If your entrypoint was docker-compose then it was already done for you as the bootstrap script is called from the startup script: [https://github.com/ansible/awx/blob/devel/tools/docker-compose/start\_development.sh](https://github.com/ansible/awx/blob/devel/tools/docker-compose/start_development.sh).

- IMPORTANT NOTE please notice that the development environment does not use the inventory or startup scripts from the production container. It uses a docker-compose workflow, as a starting point you can see: [https://github.com/ansible/awx/blob/devel/Makefile#L556-L557](https://github.com/ansible/awx/blob/devel/Makefile#L556-L557)

Which you’ll notice references the docker compose metadata file here: [https://github.com/ansible/awx/blob/devel/tools/docker-compose.yml](https://github.com/ansible/awx/blob/devel/tools/docker-compose.yml)

Which in turn uses the Dockerfile and related utilities from this directory: [https://github.com/ansible/awx/tree/devel/tools/docker-compose](https://github.com/ansible/awx/tree/devel/tools/docker-compose)

There is a pinned item at the top of this Google group that is my intro presentation to the AWX development environment that I gave at Fest a month or so ago where I walk through this all step-by-step, though if you follow along with the CONTRIBUTING.md you should get there also.
