# Regarding shutting down of awx for unknown reason

**URL:** <https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 3, 2019, 1:57pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478 "2019-06-03T13:57:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Pranjal\_Gupta](https://forum.ansible.com/u/Pranjal_Gupta)\
**Post date:** [June 3, 2019, 1:57pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/1 "2019-06-03T13:57:28Z")

</div>

After working for 2-3 days, when I try to login in AWX, it starts saying Invalid username/password.  
And after that when I try to restart docker or restart those five containers, it does not successfully restart.  
It says something like you are trying to mount a directory over file or vice versa.

I thought it would be error from my side, so I reinstalled awx. It started to work fine but after 2-3 days, the problem of not logging in came again.

Please help me out. Kind of urgent !!

---

<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:** [June 3, 2019, 3:53pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/2 "2019-06-03T15:53:15Z")

</div>

You kinda need to give us more information like log output, container status information… that sort of thing.

---

<div class="post-metadata">

**Author:** ![Toby](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@Toby](https://forum.ansible.com/u/Toby)\
**Post date:** [June 3, 2019, 4:30pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/3 "2019-06-03T16:30:42Z")

</div>

It’s not a default install that puts the database data directories in /tmp is it? If so, they’re probably getting deleted by the OS.

---

<div class="post-metadata">

**Author:** ![Pranjal\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Pranjal\_Gupta](https://forum.ansible.com/u/Pranjal_Gupta)\
**Post date:** [June 3, 2019, 4:50pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/4 "2019-06-03T16:50:35Z")

</div>

After running install.yml, the awx-compose directory is made in tmp folder.  
I guess you are right !! The os might be deleting it.

Can you tell me how to modify the directory ??

I will try to look into the install.yml file but if you already know, please let me know.

Btw thank you !! 😄

---

<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:** [June 3, 2019, 6:22pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/5 "2019-06-03T18:22:33Z")

</div>

Fyi, this _is_ covered in the install guide:

[https://github.com/ansible/awx/blob/devel/installer/inventory#L54](https://github.com/ansible/awx/blob/devel/installer/inventory#L54)

---

<div class="post-metadata">

**Author:** ![Pranjal\_Gupta](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@Pranjal\_Gupta](https://forum.ansible.com/u/Pranjal_Gupta)\
**Post date:** [June 3, 2019, 6:33pm UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/6 "2019-06-03T18:33:28Z")

</div>

Thanks, I’ll check it out.

---

<div class="post-metadata">

**Author:** ![RC1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@RC1](https://forum.ansible.com/u/RC1)\
**Post date:** [June 12, 2019, 6:56am UTC](https://forum.ansible.com/t/regarding-shutting-down-of-awx-for-unknown-reason/30478/7 "2019-06-12T06:56:54Z")

</div>

Please try the following and let us know if the issue is not resolved yet.

Change the default location of database to any other folder in the below file:

# Vim awx/installer/inventory

Default database path : postgres\_data\_dir=/tmp/pgdocker

Change it to : postgres\_data\_dir=/opt/pgdocker

OR:

Clear database at regular interval

#cd /tmp/pgdocker/pgdata

#rm –rf \*

Best regards.
