I'm curios on how many people use AWX for their Ansible workloads?
I have a bit of problem with my current test installation as it's postgresql docker keeps restarting and I've been unable to find a solution to it's issue with telling me like below.
[root@awx ~]# docker logs -f fc462c17493f The files belonging to this database system will be owned by user "postgres". This user must also own the server process. initdb: directory "/var/lib/postgresql/data/pgdata" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/postgresql/data/pgdata" or run initdb with an argument other than "/var/lib/postgresql/data/pgdata". The database cluster will be initialized with locale "en_US.utf8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. [root@awx ~]# docker-current container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fc462c17493f postgres:9.6 "docker-entrypoint..." 11 hours ago Restarting (1) 3 hours ago postgres ad092593bc9a ansible/awx_task:latest "/tini -- /bin/sh ..." 4 weeks ago Up 11 hours 8052/tcp awx_task ccc8837b904c ansible/awx_web:latest "/tini -- /bin/sh ..." 4 weeks ago Up 11 hours 0.0.0.0:80->8052/tcp awx_web e8f6b841e872 memcached:alpine "docker-entrypoint..." 4 weeks ago Up 11 hours 11211/tcp memcached cf33241a1e1c ansible/awx_rabbitmq:3.7.4 "docker-entrypoint..." 4 weeks ago Up 11 hours 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp rabbitmq
Haven't found a solution yet via googling so if anyone knows a solution that would fix it without data loss, I'd really be grateful. :smileyhappy:
UPDATE: 2018-10-26
Interesting that I apparently can't do a reply to replies I've received at the moment in the thread but I can edit this original question, so adding to original question:
I had to reinstall awx as that env was on an esx being removed and it had this issue anyway. I think the fix was what jlozadad suggested a bit. By default the docker config in ansible deployment of awx inventory settings places the files badly. Thus I fixed the variables in inventory file to point to:
project_data_dir=/var/lib/awx/projects postgres_data_dir=/var/lib/pgdocker
Thanks for the comments.
I am using AWX.
Quite happy with it.
Few tips:
- most of issue I faced was related to disk space
- check carefully when you want to upgrade.
- tag the version to not get a surprise when ever you stop/start your containers.
Your issue could be related to a permission issue or NFS parameter on your persistent volume mount point for postgreSQL.
@JSP make sure you use an external database since it puts the data location in /tmp.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.