# Stumped on how to restore AWX backup to minikube running on mac laptop.

**URL:** <https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 17, 2023, 5:32pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891 "2023-04-17T17:32:09Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![russell.cecala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/russell.cecala/32/1028_2.png) [@russell.cecala](https://forum.ansible.com/u/russell.cecala)\
**Post date:** [April 21, 2023, 4:56pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/21 "2023-04-21T16:56:45Z")

</div>

hmm …

admin@minikube:~$ kubectl get all -A | grep awx-demo-postgres-13 awx pod/awx-demo-postgres-13-0 1/1 Running 0 25h awx service/awx-demo-postgres-13 ClusterIP None 5432/TCP 2d15h awx statefulset.apps/awx-demo-postgres-13 1/1 25h

I wonder if I should try and change the name of one of those resources.

---

<div class="post-metadata">

**Author:** ![mjksohonet](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mjksohonet/32/1217_2.png) [@mjksohonet](https://forum.ansible.com/u/mjksohonet)\
**Post date:** [April 21, 2023, 5:35pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/22 "2023-04-21T17:35:01Z")

</div>

Try this  
_kubectl -n awx exec -it -c awx-task – bash_  
In the container shell  
_psql -h awx-demo-postgres-13.awx.svc.cluster.local -d awx -U \<DB\_USER\> -W_  
Is the connection established

---

<div class="post-metadata">

**Author:** ![russell.cecala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/russell.cecala/32/1028_2.png) [@russell.cecala](https://forum.ansible.com/u/russell.cecala)\
**Post date:** [April 21, 2023, 5:59pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/23 "2023-04-21T17:59:33Z")

</div>

I think it is making a connection … but since I don’t know the password. I just see this …

root@awx-demo-postgres-13-0:/# psql -U awx -h awx-demo-postgres-13.awx.svc.cluster.local -d awx -W Password: psql: error: connection to server at “awx-demo-postgres-13.awx.svc.cluster.local” (10.244.0.9), port 5432 failed: FATAL: password authentication failed for user “awx”

---

<div class="post-metadata">

**Author:** ![mjksohonet](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mjksohonet/32/1217_2.png) [@mjksohonet](https://forum.ansible.com/u/mjksohonet)\
**Post date:** [April 21, 2023, 6:38pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/24 "2023-04-21T18:38:05Z")

</div>

Excellent! This is a password issue.  
_kubectl -n awx get secrets_  
Hopefully the output will include something that refers to postgres.  
If the output includes a secret called awx-demo-postgres-configuration then we can extract the password.  
What you can do is:  
kubectl -n awx get secret/awx-demo-postgres-configuration -o yaml  
The password in the output is just the base64 encoded of the db password.

---

<div class="post-metadata">

**Author:** ![russell.cecala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/russell.cecala/32/1028_2.png) [@russell.cecala](https://forum.ansible.com/u/russell.cecala)\
**Post date:** [April 21, 2023, 6:54pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/25 "2023-04-21T18:54:21Z")

</div>

ok thanks! I got the password updated now.

root@awx-demo-postgres-13-0:/# psql -U awx -h awx-demo-postgres-13.awx.svc.cluster.local -d awx -W Password: psql: error: connection to server at “awx-demo-postgres-13.awx.svc.cluster.local” (10.244.0.9), port 5432 failed: FATAL: password authentication failed for user “awx” root@awx-demo-postgres-13-0:/# psql -U awx psql (13.10 (Debian 13.10-1.pgdg110+1)) Type “help” for help. awx=# \password awx Enter new password for user “awx”: Enter it again: awx=# quit root@awx-demo-postgres-13-0:/# psql -U awx -h awx-demo-postgres-13.awx.svc.cluster.local -d awx -W Password: psql (13.10 (Debian 13.10-1.pgdg110+1)) Type “help” for help. awx=#

---

<div class="post-metadata">

**Author:** ![russell.cecala](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/russell.cecala/32/1028_2.png) [@russell.cecala](https://forum.ansible.com/u/russell.cecala)\
**Post date:** [April 21, 2023, 7:15pm UTC](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891/26 "2023-04-21T19:15:21Z")

</div>

That did it! I have restored by backup from one AWX server and moved it to a minikube cluster running awx-operator.  
Thanks for all the help! now I just need to write up a step by step procedure.

[Previous page](https://forum.ansible.com/t/stumped-on-how-to-restore-awx-backup-to-minikube-running-on-mac-laptop/37891.md?page=1)
