Regarding shutting down of awx for unknown reason

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 !!

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

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.

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 !! :smile:

Fyi, this is covered in the install guide:

https://github.com/ansible/awx/blob/devel/installer/inventory#L54

Thanks, I’ll check it out.

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.