# Reboot of working docker and awx stops containers and cannot start or re-install

**URL:** <https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102>\
**Category:** AWX Project\
**Tags:** ubuntu, awx\
**Created:** [June 5, 2020, 10:51pm UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102 "2020-06-05T22:51:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [June 5, 2020, 10:51pm UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102/1 "2020-06-05T22:51:49Z")

</div>

Hello All,

This is getting old. the base problem that I was having was the awx\_postgres container would  
go into a restarting loop - I could not fix it.

I attempted to modify the inventory file to give a location out side of /root/.awx/pgdocker (and awxcompose)

I tried to run the install playbook again - I am not connected to the internet. the install errors out saying it is a “read only filesystem”

I then uninstalled the docker packages and then reinstalled following this link: https:[docs dot docker dot com/engine/install/ubuntu](https://docs.docker.com/engine/install/ubuntu/)

I was able to reinstall docker, docker-ce, etc all the apps according to the link above. I was also able to do the docker run hello-world program  
It returned a success message (it must have made it thru the proxy)

I am using Ubuntu 19.10

Then I went to the installed dir for awx and ran the installer - it worked - took a while - awx worked fine - then I shut machine down to take  
a snapshot - rebooted - and the entier install went away - none of the containers were started. I attempted to run the install.yml program again using the

folders outsite /root/.awx (which worked before the reboot) and get a message now "cannot install, etc /AWX/pgdocker a read-only file system.

What does it take to get this application to work?

any suggestions? I have also the the awx\_postgres stuck in the “restarting” loop.

thanks

ewholz

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [June 5, 2020, 11:23pm UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102/2 "2020-06-05T23:23:04Z")

</div>

Eric,

If you are willing to reinstall, have you tried the official ansible  
role from AWX to do the installation?  
[https://github.com/ansible/awx/blob/devel/INSTALL.md](https://github.com/ansible/awx/blob/devel/INSTALL.md)

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [June 9, 2020, 12:50am UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102/3 "2020-06-09T00:50:46Z")

</div>

Well you have to update packages or reboot at some point, and you  
won't know if it's broken until you try. Better now than after a bunch  
of work creating users, templates, credentials, etc. And you would  
have the docker-compose file, and all the credentials from  
credentials.py, environment.sh, SECRET\_KEY, etc. for portability if  
you had to move to a different machine.

I would make sure to disable updates of docker and its dependencies at  
least for the first time around patching/rebooting. It could be a  
newer (or older) version of docker or docker-compose or containerd or  
some other package causing issues like with which Storage Drive docker  
uses. Then if you reboot and all is fine then great. If not, then  
look at what packages were updated and debug from there (roll back,  
etc.).

---

<div class="post-metadata">

**Author:** ![Bill\_Biker](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bill_biker/32/8087_2.png) [@Bill\_Biker](https://forum.ansible.com/u/Bill_Biker)\
**Post date:** [June 10, 2020, 3:12pm UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102/4 "2020-06-10T15:12:07Z")

</div>

Hello Mgztls,  
Thanks for the reply - this is a real problem with docker - I did a rebuild 5 days ago, and all was solid.  
Then today - the containers were no longer running - and of course, trying to run intall.yml failed as the directories for pg\_docker and awxcompose  
were already there. It seems the install file always wants to create new directories for those items. Is there some way to get the intall program

to work without trying to recreate those directories??

Thanks for the info,

ewholz

---

<div class="post-metadata">

**Author:** ![Michael\_M1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_M1](https://forum.ansible.com/u/Michael_M1)\
**Post date:** [June 10, 2020, 7:17pm UTC](https://forum.ansible.com/t/reboot-of-working-docker-and-awx-stops-containers-and-cannot-start-or-re-install/33102/5 "2020-06-10T19:17:00Z")

</div>

Eric,

After deploying the awx stack via the instructions @ [https://github.com/ansible/awx/blob/devel/INSTALL.md](https://github.com/ansible/awx/blob/devel/INSTALL.md) how are you starting/stopping the containers thereafter? It sounds like you are trying to run install.yml every time you just want to _start, stop, or restart_ the awx stack. You know that after it’s been built and running that you would just use ‘docker-compose’ from then on to manage the awx stack, right?
