postgres-operator-examples icon indicating copy to clipboard operation
postgres-operator-examples copied to clipboard

postgres-repo-host pod in CrashLoopBackOff - "environment: /dev/fd/62: Text file busy"

Open getkedar1981 opened this issue 3 years ago • 2 comments

We have a 3 node kubernetes cluster and deployed these examples in a namespace. ( PGO was deployed in namespace and not clusterwide )

This was deployed using steps shared under : https://access.crunchydata.com/documentation/postgres-operator/5.0.0/quickstart/

  • We have tried cluster wide operator and namespace based too ( using kustomize ) . In both cases this issue was seen.

Steps : After installation ,restart only "postgres-repo-host-0" pod and its enters CrashLoopBackOff state.

Observed that the postgres-repo-host-0 pod goes into CrashLoopBackOff with container 'pgbackrest-config' shows logs as "environment: /dev/fd/62: Text file busy"

#kubectl logs postgres-repo-host-0 pgbackrest-config -n postgres-operator environment: /dev/fd/62: Text file busy

The pod postgres-repo-host-0 had to be restarted a few times to come back to running state.

This was observed on k8s v1.19 and PGO v 5.0.0, 5.1.0 and also latest ones.

Its seems the monitor function - pgbackrest-config container - is generating this error at step - exec {fd}<> <(:)

Can you please suggest any solution for this issue?

getkedar1981 avatar Jul 25 '22 02:07 getkedar1981

Can anyone please take a look at this and suggest?

getkedar1981 avatar Jul 25 '22 11:07 getkedar1981

Can anyone please suggest if I can add delay/sleep in or before the monitor function for the pod postgres-repo-host-0 and container pgbackrest-config as the PGO cleans it up after pod restart.

getkedar1981 avatar Aug 10 '22 11:08 getkedar1981

Since you opened up a duplicate issue on the postgres-operator repo (where I think this issue probably belongs), I'm going to close this one and comment over there.

benjaminjb avatar Oct 14 '22 15:10 benjaminjb