# Awx Kubernetes Database Migration failure

**URL:** <https://forum.ansible.com/t/awx-kubernetes-database-migration-failure/31437>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [October 8, 2019, 4:48pm UTC](https://forum.ansible.com/t/awx-kubernetes-database-migration-failure/31437 "2019-10-08T16:48:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_Kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Praveen\_Kumar](https://forum.ansible.com/u/Praveen_Kumar)\
**Post date:** [October 8, 2019, 4:48pm UTC](https://forum.ansible.com/t/awx-kubernetes-database-migration-failure/31437/1 "2019-10-08T16:48:20Z")

</div>

Hi,

I am installing Awx with Kubernetes for the first time . The Awx Management pod is running and Postgres deployment is successful.  
But it tries to run the Migrate database step and after some times times out with the error . Can any one please let me know  
if you have come across this issue and please provide any steps that would be useful so we can debug further ?

$ kubectl get svc -n my-name-space  
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE  
awx-postgresql ClusterIP 192.168.205.66 5432/TCP 13d  
awx-postgresql-headless ClusterIP None 5432/TCP 13d  
awx-rmq-mgmt ClusterIP 192.168.38.115 15672/TCP 13d  
awx-web-svc NodePort 192.168.17.147 80:30494/TCP 13d  
rabbitmq NodePort 192.168.244.25 15672:32044/TCP,5672:31652/TCP 13d  
tiller-deploy ClusterIP 192.168.185.213 44134/TCP 26d

$ kubectl get pods  
NAME READY STATUS RESTARTS AGE  
ansible-tower-management 1/1 Running 0 22m  
awx-postgresql-postgresql-0 0/1 Init:ImagePullBackOff 0 24m

TASK [kubernetes : Migrate database] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

---

<div class="post-metadata">

**Author:** ![Praveen\_Kumar](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Praveen\_Kumar](https://forum.ansible.com/u/Praveen_Kumar)\
**Post date:** [October 8, 2019, 5:07pm UTC](https://forum.ansible.com/t/awx-kubernetes-database-migration-failure/31437/2 "2019-10-08T17:07:43Z")

</div>

> Hi,
> 
> I am installing Awx with Kubernetes for the first time . The Awx Management pod is running and Postgres deployment is successful.  
> But it tries to run the Migrate database step and after some times times out with the error . Can any one please let me know  
> if you have come across this issue and please provide any steps that would be useful so we can debug further ?

Upon checking the describe pod on the postgresql pod , Here are the failure events that I have found. I have access to my internal docker registry and postgres docker image is already pushed to the repository…

Failed to pull image “[docker.io/bitnami/minideb:stretch](http://docker.io/bitnami/minideb:stretch)”: rpc error: code = Unknown desc = pinging docker registry returned: Get [https://registry-1.docker.io/v2/:](https://registry-1.docker.io/v2/:) dial tcp 3.221.133.86:443: i/o timeout

Warning Failed
