# AWX upgrade

**URL:** <https://forum.ansible.com/t/awx-upgrade/25524>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 19, 2017, 10:26am UTC](https://forum.ansible.com/t/awx-upgrade/25524 "2017-09-19T10:26:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [September 19, 2017, 10:26am UTC](https://forum.ansible.com/t/awx-upgrade/25524/1 "2017-09-19T10:26:43Z")

</div>

Hi

I have a working AWX lab on Centos 7 with local docker.

How do I upgrade AWX or new ansible ex 2.4?  
Do I “git rebase origin” and run the install agin? Will it keep my AWX settings/history?

Tanks  
Christer

---

<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:** [September 19, 2017, 11:30am UTC](https://forum.ansible.com/t/awx-upgrade/25524/2 "2017-09-19T11:30:00Z")

</div>

ansible 2.4 was only just released this morning so it _might_ not have landed in the ansible el7 repository just yet (though the installer will pick it up).

You should just need to re-run the installer and your settings and history will likely be preserved… if you are using a standalone docker install then it sets up a persistent directory for the postgres container.

---

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [September 23, 2017, 5:28pm UTC](https://forum.ansible.com/t/awx-upgrade/25524/3 "2017-09-23T17:28:42Z")

</div>

Hi

It works really well.

Now it filling my disk with docker awx\_\* images. Most old work fine to delete but some get this. Safe to force?

$ sudo docker images  
REPOSITORY TAG IMAGE ID CREATED SIZE  
awx\_task 1.0.0.530 4becec0cbe4a 23 hours ago 997MB  
awx\_web 1.0.0.530 c5b0e9aae1dc 24 hours ago 970MB  
awx\_sdist\_builder 1.0.0.493 749353e46a2f 4 days ago 543MB  
awx\_sdist\_builder 1.0.0.519 749353e46a2f 4 days ago 543MB  
awx\_sdist\_builder 1.0.0.530 749353e46a2f 4 days ago 543MB  
centos 7 196e0ce0c9fb 9 days ago 197MB

$ sudo docker rmi 749353e46a2f  
Error response from daemon: conflict: unable to delete 749353e46a2f (must be forced) - image is referenced in multiple repositories

//  
Christer

---

<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:** [September 23, 2017, 7:42pm UTC](https://forum.ansible.com/t/awx-upgrade/25524/4 "2017-09-23T19:42:54Z")

</div>

you can delete the older sdist builder images but you probably don’t want to delete awx\_task and awx\_web

---

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [October 14, 2017, 7:29am UTC](https://forum.ansible.com/t/awx-upgrade/25524/5 "2017-10-14T07:29:15Z")

</div>

Hi

This have work well for several upgrades but now there is some issue.  
The about say AWX 1.0.0.573 and it have not upgrade after that when i tried.  
Now it clear it should be upgraded.

Last git fetch say 1.0.1 but still rerun the install only end with

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=10 changed=0 unreachable=0 failed=0

$ sudo docker ps  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

64ad0944c61c ansible/awx\_task:latest “/tini – /bin/sh …” 2 weeks ago Up 43 minutes 8052/tcp awx\_task  
adb374db9bd2 ansible/awx\_web:latest “/tini – /bin/sh …” 2 weeks ago Up 43 minutes 0.0.0.0:80-\>8052/tcp awx\_web  
7dbe2d864617 memcached:alpine “docker-entrypoint…” 3 weeks ago Up 43 minutes 11211/tcp memcached  
7d3a3ebbac28 rabbitmq:3 “docker-entrypoint…” 3 weeks ago Up 43 minutes 4369/tcp, 5671-5672/tcp, 25672/tcp rabbitmq  
529f4cd863c0 postgres:9.6 “docker-entrypoint…” 3 weeks ago Up 43 minutes 5432/tcp postgres  
[christer@c7 installer]$

I have try to do a fresh git clone and rerun the installer but still unchanged system.  
Before the upgrade to AWX 1.0.0.573 the ansible/awx\_\* had :version\_id like ansible/awx\_web:1.0.0.573

Regards  
Christer

---

<div class="post-metadata">

**Author:** ![Christer\_Hemgren](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Christer\_Hemgren](https://forum.ansible.com/u/Christer_Hemgren)\
**Post date:** [October 14, 2017, 8:04am UTC](https://forum.ansible.com/t/awx-upgrade/25524/6 "2017-10-14T08:04:03Z")

</div>

Update

Killing the awx containers only result in restart of the existing container.

TASK [local\_docker : Activate AWX Web Container] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

TASK [local\_docker : Activate AWX Task Container] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=10 changed=2 unreachable=0 failed=0

[christer@c7 installer]$ sudo docker ps  
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES  
64ad0944c61c ansible/awx\_task:latest “/tini – /bin/sh …” 2 weeks ago Up 4 seconds 8052/tcp awx\_task  
adb374db9bd2 ansible/awx\_web:latest “/tini – /bin/sh …” 2 weeks ago Up 7 seconds 0.0.0.0:80-\>8052/tcp

---

<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 15, 2017, 2:21am UTC](https://forum.ansible.com/t/awx-upgrade/25524/7 "2017-10-15T02:21:05Z")

</div>

You should remove the containers themselves… you may also need to delete the existing awx\_ images from your docker instance.

---

<div class="post-metadata">

**Author:** ![Mike\_Biancaniello](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Mike\_Biancaniello](https://forum.ansible.com/u/Mike_Biancaniello)\
**Post date:** [October 16, 2017, 3:40pm UTC](https://forum.ansible.com/t/awx-upgrade/25524/8 "2017-10-16T15:40:17Z")

</div>

you need to:  
`  
docker stop awx\_task  
docker rm awx\_task  
docker rmi ansible/awx\_task:latest

docker stop awx\_web  
docker rm awx\_web  
docker rmi ansible/awx\_web:latest

ansible-playbook -i hosts install.yml

`

---

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [November 1, 2017, 9:52pm UTC](https://forum.ansible.com/t/awx-upgrade/25524/9 "2017-11-01T21:52:27Z")

</div>

Is this documented anywhere? I couldn’t find it.

---

<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:** [November 2, 2017, 3:02am UTC](https://forum.ansible.com/t/awx-upgrade/25524/10 "2017-11-02T03:02:32Z")

</div>

Not yet. As of now it’s documented right here!

---

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [November 2, 2017, 8:57pm UTC](https://forum.ansible.com/t/awx-upgrade/25524/11 "2017-11-02T20:57:33Z")

</div>

Is there any issue anywhere about getting it documented? I didn’t find in when searching on Github.

---

<div class="post-metadata">

**Author:** ![alancivita](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@alancivita](https://forum.ansible.com/u/alancivita)\
**Post date:** [November 10, 2017, 9:30am UTC](https://forum.ansible.com/t/awx-upgrade/25524/12 "2017-11-10T09:30:25Z")

</div>

it looks like the new version of the installer wipes the previous version of DB, even if mounted with persistent volume.

---

<div class="post-metadata">

**Author:** ![John\_S](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@John\_S](https://forum.ansible.com/u/John_S)\
**Post date:** [July 19, 2018, 1:26am UTC](https://forum.ansible.com/t/awx-upgrade/25524/13 "2018-07-19T01:26:58Z")

</div>

That is a pretty disappointing and unpleasant not to end on.

Has this issue been resolved?  
Is it safe to re-run the installer now, to upgrade AWX, or is it still going to wipe the DB?
