# awx inplace upgrade to v15 using local docker ... Data migration not happening

**URL:** <https://forum.ansible.com/t/awx-inplace-upgrade-to-v15-using-local-docker-data-migration-not-happening/34090>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 23, 2020, 3:11pm UTC](https://forum.ansible.com/t/awx-inplace-upgrade-to-v15-using-local-docker-data-migration-not-happening/34090 "2020-10-23T15:11:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajiv\_Kamath](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Rajiv\_Kamath](https://forum.ansible.com/u/Rajiv_Kamath)\
**Post date:** [October 23, 2020, 3:11pm UTC](https://forum.ansible.com/t/awx-inplace-upgrade-to-v15-using-local-docker-data-migration-not-happening/34090/1 "2020-10-23T15:11:57Z")

</div>

SUMMARY

Used the official github instructions to do an inplace upgrade using docker-compose and below is a summary of what was done for the upgrade

- Downloaded the latest awx artifacts from github ( version 15 )

- comment out the dockerhub\_base=ansible in the inventory file.

- created a vars file in the installer dir with the key/value pairs that were used for the awx13.x installation. Content of var file below…  
project\_data\_dir: /opt/awx/projects  
docker\_compose\_dir: “/opt/awx/awxcompose”  
postgres\_data\_dir: “/opt/awx/pgdocker”  
awx\_alternate\_dns\_servers: “xxxxxxx,xxxxxxx”  
ssl\_certificate: /opt/awx/ssl/xxxxxxx.cer  
ssl\_certificate\_key: /opt/awx/ssl/xxxxxxx.key  
ca\_trust\_dir: /opt/awx/ssl/ca  
admin\_password: ‘xxxxxxxxx’  
pg\_password: ‘xxxxxxxxxxx’  
secret\_key: ‘xxxxxx’

- added env variable “PGDATA: /var/lib/postgresql/data/pgdata” to the xxx/installer/roles/local\_docker/templates/docker-compose.yml.j2 file as its missing there.

- executed ‘ansible-playbook -i inventory install.yml -e @vars.yaml’

ENVIRONMENT

AWX version: 13.x  
AWX install method: docker on linux localhost ( dockercompose )  
Ansible version: 2.9.13  
Operating System: RHEL8  
Web Browser: chrome

STEPS TO REPRODUCE

download latest awx artificates from github  
create a vars.yaml file populated with the variables/configs used in the existing instance of awx.  
execute ‘ansible-playbook -i inventory -e @vars.yaml’  
login to awx console after install completes and awx\_task completes postinstall migrations

EXPECTED RESULTS

Configs and objects that prexisted on AWX need to visible from the console and they are wiped out.

ACTUAL RESULTS

All existing data is deleted and its a fresh install rather than an upgrade.

ADDITIONAL INFORMATION

The awx\_task container is supposed to run a task to migrate data from old postgres to new instance but i dont see it in the logs.

partial snippet of the awx\_task logs…

Applying sites.0001\_initial… OK  
Applying sites.0002\_alter\_domain\_unique… OK  
Applying social\_django.0001\_initial… OK  
Applying social\_django.0002\_add\_related\_name… OK  
Applying social\_django.0003\_alter\_email\_max\_length… OK  
Applying social\_django.0004\_auto\_20160423\_0400… OK  
Applying social\_django.0005\_auto\_20160727\_2333… OK  
Applying social\_django.0006\_partial… OK  
Applying social\_django.0007\_code\_timestamp… OK  
Applying social\_django.0008\_partial\_timestamp… OK  
Applying sso.0001\_initial… OK  
Applying sso.0002\_expand\_provider\_options… OK  
Applying taggit.0003\_taggeditem\_add\_unique\_index… OK  
Successfully registered instance awx  
(changed: True)  
Creating instance group tower  
(changed: True)  
Default organization added.  
Demo Credential, Inventory, and Job Template added.  
(changed: True)  
2020-10-20 16:17:11,658 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.  
2020-10-20 16:17:11,658 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.  
2020-10-20 16:17:11,963 INFO RPC interface ‘supervisor’ initialized  
2020-10-20 16:17:11,963 INFO RPC interface ‘supervisor’ initialized  
2020-10-20 16:17:11,963 CRIT Server ‘unix\_http\_server’ running without any HTTP authentication checking  
2020-10-20 16:17:11,963 CRIT Server ‘unix\_http\_server’ running without any HTTP authentication checking  
2020-10-20 16:17:11,963 INFO supervisord started with pid 103  
2020-10-20 16:17:11,963 INFO supervisord started with pid 103  
2020-10-20 16:17:12,965 INFO spawned: ‘awx-config-watcher’ with pid 106  
2020-10-20 16:17:12,965 INFO spawned: ‘awx-config-watcher’ with pid 106  
2020-10-20 16:17:12,968 INFO spawned: ‘dispatcher’ with pid 107  
2020-10-20 16:17:12,968 INFO spawned: ‘dispatcher’ with pid 107  
2020-10-20 16:17:12,970 INFO spawned: ‘callback-receiver’ with pid 108  
2020-10-20 16:17:12,970 INFO spawned: ‘callback-receiver’ with pid 108
