# Upgrading from previous version as of 9.1.0

**URL:** <https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927>\
**Category:** AWX Project\
**Created:** [January 7, 2020, 8:58pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927 "2020-01-07T20:58:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpowell](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpowell](https://forum.ansible.com/u/dpowell)\
**Post date:** [January 7, 2020, 8:58pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/1 "2020-01-07T20:58:40Z")

</div>

I noticed there was a section added to the install doc as of 9.1.0. Does anyone know if the upgrade process retains existing data? Is it only from 9.1.0 to the next version or can you upgrade from say 7.0.0 to 9.1.0 using the command provided?

Thank you.

---

<div class="post-metadata">

**Author:** ![Garrett\_Kelly](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Garrett\_Kelly](https://forum.ansible.com/u/Garrett_Kelly)\
**Post date:** [January 8, 2020, 5:25am UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/2 "2020-01-08T05:25:33Z")

</div>

Hey Damon,

Yesterday I upgraded from 6.1.0 \> 7.0.0 \> 8.0.0 \> 9.0.0 \> 9.0.1 \> 9.1.0 and it retained the data throughout the process. Not sure if you can go straight to the latest release from 7.0.0 however. If it’s a VM and everything is on it, take a snapshot or backup, and see how it goes!

---

<div class="post-metadata">

**Author:** ![dpowell](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpowell](https://forum.ansible.com/u/dpowell)\
**Post date:** [January 8, 2020, 2:27pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/3 "2020-01-08T14:27:16Z")

</div>

Thanks for the response Garrett.

When you upgrade it simply says to download the latest. I was curious if you cloned/downloaded the next release to the same directory/filesystem as the current AWX install or did you have to clone it to a new location and run the install/upgrade command from there?

Thanks

---

<div class="post-metadata">

**Author:** ![Nuno\_Jordao](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Nuno\_Jordao](https://forum.ansible.com/u/Nuno_Jordao)\
**Post date:** [January 15, 2020, 12:01am UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/4 "2020-01-15T00:01:12Z")

</div>

Hello,

I did 6.1.0 \> 7.0.0 \> 8.0.0 \> 9.1.0 without problems in a docker image setup with an external database.  
Git clone the repository, change to the release you want to install, update the inventory to your values (beware the changes in the inventory variables between versions) and run the installer.

---

<div class="post-metadata">

**Author:** ![r4f](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@r4f](https://forum.ansible.com/u/r4f)\
**Post date:** [January 15, 2020, 12:33pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/5 "2020-01-15T12:33:47Z")

</div>

Hey Garrett,

I have an issue when I’m trying to upgrade from AWX 7.0.0 to the latest version. I have open an issue here : [https://github.com/ansible/awx/issues/5662](https://github.com/ansible/awx/issues/5662)

Please could you explain what is the best way to do an upgrade of AWX ? I’m using docker on CentOS 7.7

---

<div class="post-metadata">

**Author:** ![dpowell](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpowell](https://forum.ansible.com/u/dpowell)\
**Post date:** [January 16, 2020, 5:55pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/6 "2020-01-16T17:55:50Z")

</div>

Did you have any data loss issues. I just completed the upgrade from 7.0.0 to 8.0.0 and I lost all data.

steps

1. cd /awx (currently 7.0.0)

2. get fetch

3. get checkout tags/8.0.0

4. git pull

5. cd /awx/installer

6. create vars.yml

7. update inventory file for previous (docker\_compose\_dir, postgres\_data\_dir) etc

8. run the installer

9. When logging in, I seen the whole upgrading AWX page refreshing

10. Log in

11. No longer have previous data etc. All data is gone. Its like its a new install, but the passwords from the previous install still work etc.

Can you suggest what I might have missed or did wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [February 6, 2020, 10:57am UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/7 "2020-02-06T10:57:07Z")

</div>

I have migrated from 4.0.0 to 9.1.0. It works fine if we have provided the correct paths to pgdata, awxcompose, credentials and awxsecret value. The data will not be lost even if the DB is running on a container.

---

<div class="post-metadata">

**Author:** ![dpowell](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@dpowell](https://forum.ansible.com/u/dpowell)\
**Post date:** [February 11, 2020, 7:48pm UTC](https://forum.ansible.com/t/upgrading-from-previous-version-as-of-9-1-0/31927/8 "2020-02-11T19:48:48Z")

</div>

Do these steps match the process you are following that retains data?

1. cd /awx (currently 7.0.0)

2. get fetch

3. get checkout tags/8.0.0

4. git pull

5. cd /awx/installer

6. create vars.yml

7. update inventory file for previous (docker\_compose\_dir, postgres\_data\_dir) etc

8. run the installer

9. When logging in, I seen the whole upgrading AWX page refreshing

10. Log in

11. No longer have previous data etc. All data is gone. Its like its a new install, but the passwords from the previous install still work etc.

Thanks, following the above has not worked for me.
