# awx-postgres-15-0 Init:CreateContainerConfigError

**URL:** <https://forum.ansible.com/t/awx-postgres-15-0-init-createcontainerconfigerror/43185>\
**Category:** Get Help\
**Tags:** awx, kubernetes\
**Created:** [June 5, 2025, 4:12pm UTC](https://forum.ansible.com/t/awx-postgres-15-0-init-createcontainerconfigerror/43185 "2025-06-05T16:12:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniehines](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@daniehines](https://forum.ansible.com/u/daniehines)\
**Post date:** [June 5, 2025, 4:12pm UTC](https://forum.ansible.com/t/awx-postgres-15-0-init-createcontainerconfigerror/43185/1 "2025-06-05T16:12:35Z")

</div>

I am receiving the following error when working with [awx operator 2.19.1, K3s v1.29.6+k3s2, AWX 24.6.1, postgresql 15.](https://github.com/kurokobo/awx-on-k3s/),  
kubectl get po -n awx  
NAME READY STATUS RESTARTS AGE  
awx-operator-controller-manager-58b7c97f4b-nbvd8 2/2 Running 0 40h  
awx-postgres-15-0 0/1 Init:CreateContainerConfigError 0 40h

kubectl -n awx logs -f statefulset/awx-postgres-15 -c init  
Error from server (BadRequest): container “init” in pod “awx-postgres-15-0” is waiting to start: CreateContainerConfigError

kubectl -n awx logs -f statefulset/awx-postgres-15  
Defaulted container “postgres” out of: postgres, init (init)  
Error from server (BadRequest): container “postgres” in pod “awx-postgres-15-0” is waiting to start: PodInitializing

The pv and pvc appear to be bound:

kubectl get pv  
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE  
awx-postgres-15-volume 8Gi RWO Retain Bound awx/postgres-15-awx-postgres-15-0 awx-postgres-volume 41h  
awx-projects-volume 2Gi RWO Retain Bound awx/awx-projects-claim awx-projects-volume

I believe this is related to the directions of:

sudo mkdir -p /data/postgres-15  
sudo mkdir -p /data/projects  
sudo chown 1000:0 /data/projects

Where do these directories need to be created? At / on the server itself, inside /var/lib on the server, inside the directory where the installation is? Or is this done inside a container, or is this inside some other piece of software that is part of the installation?

As I am very new to the whole docker, kubernetes, minikube setup for AWX, I have done the 3 machine install on virtual machines before but not inside all this software, my apologies if this is a very basic question that may have been answered all ready.

TIA!  
Danielle

kubectl describe po/awx-postgres-15-0 -n awx  
Name: awx-postgres-15-0  
Namespace: awx  
Priority: 0  
Service Account: default  
Node: minikube/192.168.49.2  
Start Time: Tue, 03 Jun 2025 16:11:12 -0400  
Labels: [app.kubernetes.io/component=database](http://app.kubernetes.io/component=database)  
[app.kubernetes.io/instance=postgres-15-awx](http://app.kubernetes.io/instance=postgres-15-awx)  
[app.kubernetes.io/managed-by=awx-operator](http://app.kubernetes.io/managed-by=awx-operator)  
[app.kubernetes.io/name=postgres-15](http://app.kubernetes.io/name=postgres-15)  
[app.kubernetes.io/part-of=awx](http://app.kubernetes.io/part-of=awx)  
[apps.kubernetes.io/pod-index=0](http://apps.kubernetes.io/pod-index=0)  
controller-revision-hash=awx-postgres-15-5d69bb47df  
[statefulset.kubernetes.io/pod-name=awx-postgres-15-0](http://statefulset.kubernetes.io/pod-name=awx-postgres-15-0)  
Annotations:   
Status: Pending  
IP: 10.244.0.5  
IPs:  
IP: 10.244.0.5  
Controlled By: StatefulSet/awx-postgres-15  
Init Containers:  
init:  
Container ID:  
Image: [Quay](http://quay.io/sclorg/postgresql-15-c9s:latest)  
Image ID:  
Port:   
Host Port:   
Command:  
/bin/sh  
-c  
chown 26:0 /var/lib/pgsql/data  
chmod 700 /var/lib/pgsql/data

```
State: Waiting
  Reason: CreateContainerConfigError
Ready: False
Restart Count: 0
Environment: <none>
Mounts:
  /var/lib/pgsql/data from postgres-15 (rw,path="data")
  /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xrdp8 (ro)

```

Containers:  
postgres:  
Container ID:  
Image: [Quay](http://quay.io/sclorg/postgresql-15-c9s:latest)  
Image ID:  
Port: 5432/TCP  
Host Port: 0/TCP  
State: Waiting  
Reason: PodInitializing  
Ready: False  
Restart Count: 0  
Environment:  
POSTGRESQL\_DATABASE: \<set to the key ‘database’ in secret ‘awx-postgres-configuration’\> Optional: false  
POSTGRESQL\_USER: \<set to the key ‘username’ in secret ‘awx-postgres-configuration’\> Optional: false  
POSTGRESQL\_PASSWORD: \<set to the key ‘password’ in secret ‘awx-postgres-configuration’\> Optional: false  
POSTGRES\_DB: \<set to the key ‘database’ in secret ‘awx-postgres-configuration’\> Optional: false  
POSTGRES\_USER: \<set to the key ‘username’ in secret ‘awx-postgres-configuration’\> Optional: false  
POSTGRES\_PASSWORD: \<set to the key ‘password’ in secret ‘awx-postgres-configuration’\> Optional: false  
PGDATA: /var/lib/pgsql/data/userdata  
POSTGRES\_INITDB\_ARGS: --auth-host=scram-sha-256  
POSTGRES\_HOST\_AUTH\_METHOD: scram-sha-256  
Mounts:  
/var/lib/pgsql/data from postgres-15 (rw,path=“data”)  
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-xrdp8 (ro)  
Conditions:  
Type Status  
PodReadyToStartContainers True  
Initialized False  
Ready False  
ContainersReady False  
PodScheduled True  
Volumes:  
postgres-15:  
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)  
ClaimName: postgres-15-awx-postgres-15-0  
ReadOnly: false  
kube-api-access-xrdp8:  
Type: Projected (a volume that contains injected data from multiple sources)  
TokenExpirationSeconds: 3607  
ConfigMapName: kube-root-ca.crt  
Optional: false  
DownwardAPI: true  
QoS Class: BestEffort  
Node-Selectors:   
Tolerations: [node.kubernetes.io/not-ready:NoExecute](http://node.kubernetes.io/not-ready:NoExecute) op=Exists for 300s  
[node.kubernetes.io/unreachable:NoExecute](http://node.kubernetes.io/unreachable:NoExecute) op=Exists for 300s  
Events:  
Type Reason Age From Message

* * *

Warning Failed 88s (x11255 over 40h) kubelet Error: stat /data/postgres-15: no such file or directory  
Normal Pulled 88s (x11254 over 40h) kubelet Container image “[Quay](http://quay.io/sclorg/postgresql-15-c9s:latest)” already present on machine

---

<div class="post-metadata">

**Author:** ![daniehines](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@daniehines](https://forum.ansible.com/u/daniehines)\
**Post date:** [June 5, 2025, 9:14pm UTC](https://forum.ansible.com/t/awx-postgres-15-0-init-createcontainerconfigerror/43185/2 "2025-06-05T21:14:01Z")

</div>

Well, I finally figure out the issue, when using minikube (on top of docker), you have to run minikube ssh to be able to run the mkdir -p /data/postgres-15-0 and /data/projects, and then the chown of /data/projects directory.

Now I just have to figure out how to do all the ingresses so I can actually see the web interface.

thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 5, 2025, 9:14pm UTC](https://forum.ansible.com/t/awx-postgres-15-0-init-createcontainerconfigerror/43185/3 "2025-07-05T21:14:38Z")

</div>

Closed on July 5, 2025, 9:14pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
