Repository navigation
Replies: 2 comments 1 reply
|
Hi @rizlas! I'm Dosu and I’m helping the cloudnative-pg team. Your cluster is stuck because all three PVCs are marked as "unusable," which means the operator sees incomplete or broken storage for each instance and cannot proceed with reconciliation or pod creation. This often happens after WAL disk exhaustion, S3 outages, or failed restarts, and simply expanding the disk is not always enough to recover the cluster [PVC status logic, troubleshooting docs]. What you can do:
Where to look for errors:
References:
Let me know if you need more specific commands or help interpreting your pod/PVC status! To reply, just mention @dosu. Docs are dead. Just use Dosu. |
|
Just and addition for you (and the AI). We have another cluster that encounter the same problem. It should be replica 3 but currently only two pod are running. Same as before, every command issued is useless. Current status: status:
availableArchitectures:
- goArch: amd64
hash: 433bae32a2e3e459a2a181d67ed2b0dfcf67f359480b9646bbdc8ad8e2dd4ef1
- goArch: arm64
hash: 981f8452ecf423a37802c14018b7a73bfd25c1c2e82ec19de9c85cd54912adb7
certificates:
clientCASecret: cnpg-keycloak-prod-ca
expirations:
cnpg-keycloak-prod-ca: 2026-03-16 00:04:11 +0000 UTC
cnpg-keycloak-prod-replication: 2026-03-16 00:04:11 +0000 UTC
cnpg-keycloak-prod-server: 2026-03-16 00:04:11 +0000 UTC
replicationTLSSecret: cnpg-keycloak-prod-replication
serverAltDNSNames:
- cnpg-keycloak-prod-rw
- cnpg-keycloak-prod-rw.satosa
- cnpg-keycloak-prod-rw.satosa.svc
- cnpg-keycloak-prod-rw.satosa.svc.cluster.local
- cnpg-keycloak-prod-r
- cnpg-keycloak-prod-r.satosa
- cnpg-keycloak-prod-r.satosa.svc
- cnpg-keycloak-prod-r.satosa.svc.cluster.local
- cnpg-keycloak-prod-ro
- cnpg-keycloak-prod-ro.satosa
- cnpg-keycloak-prod-ro.satosa.svc
- cnpg-keycloak-prod-ro.satosa.svc.cluster.local
serverCASecret: cnpg-keycloak-prod-ca
serverTLSSecret: cnpg-keycloak-prod-server
cloudNativePGCommitHash: 8b442dcc3
cloudNativePGOperatorHash: 433bae32a2e3e459a2a181d67ed2b0dfcf67f359480b9646bbdc8ad8e2dd4ef1
conditions:
- lastTransitionTime: "2025-09-23T14:36:48Z"
message: A single, unique system ID was found across reporting instances.
reason: Unique
status: "True"
type: ConsistentSystemID
- lastTransitionTime: "2026-01-13T09:51:56Z"
message: Cluster Is Not Ready
reason: ClusterIsNotReady
status: "False"
type: Ready
- lastTransitionTime: "2026-01-13T11:15:02Z"
message: Continuous archiving is working
reason: ContinuousArchivingSuccess
status: "True"
type: ContinuousArchiving
- lastTransitionTime: "2026-01-14T00:00:00Z"
message: cannot proceed with the backup as the cluster has no plugin configured
reason: LastBackupFailed
status: "False"
type: LastBackupSucceeded
configMapResourceVersion:
metrics:
cnpg-default-monitoring: "506191379"
currentPrimary: cnpg-keycloak-prod-1
currentPrimaryTimestamp: "2025-10-15T14:14:28.992066Z"
firstRecoverabilityPoint: "2026-01-13T11:15:33Z"
firstRecoverabilityPointByMethod:
barmanObjectStore: "2026-01-13T11:15:33Z"
image: ghcr.io/cloudnative-pg/postgresql:17
instancesReportedState:
cnpg-keycloak-prod-1:
ip: 10.42.13.133
isPrimary: true
timeLineID: 3
cnpg-keycloak-prod-3:
ip: 10.42.7.73
isPrimary: false
timeLineID: 3
instancesStatus:
healthy:
- cnpg-keycloak-prod-1
- cnpg-keycloak-prod-3
lastFailedBackup: "2026-01-14T00:00:00Z"
lastSuccessfulBackup: "2026-01-13T11:15:33Z"
lastSuccessfulBackupByMethod:
barmanObjectStore: "2026-01-13T11:15:33Z"
latestGeneratedNode: 3
managedRolesStatus: {}
pgDataImageInfo:
image: ghcr.io/cloudnative-pg/postgresql:17
majorVersion: 17
phase: Waiting for the instances to become active
phaseReason: Some instances are not yet active. Please wait.
poolerIntegrations:
pgBouncerIntegration: {}
readService: cnpg-keycloak-prod-r
readyInstances: 2
secretsResourceVersion:
applicationSecretVersion: "494044426"
clientCaSecretVersion: "594320769"
replicationSecretVersion: "594320771"
serverCaSecretVersion: "594320769"
serverSecretVersion: "594320770"
superuserSecretVersion: "494044463"
switchReplicaClusterStatus: {}
systemID: "7553293546182463515"
targetPrimary: cnpg-keycloak-prod-1
targetPrimaryTimestamp: "2025-10-15T14:14:25.347627Z"
timelineID: 3
topology:
instances:
cnpg-keycloak-prod-1: {}
cnpg-keycloak-prod-3: {}
nodesUsed: 2
successfullyExtracted: true
writeService: cnpg-keycloak-prod-rw
|
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
we’re running into a pretty frustrating situation with a CloudNativePG cluster and we’re hoping someone can point us in the right direction.
Here’s what happened.
Backups and WAL archiving were configured to S3. At some point, S3 became unreachable and the WAL disk filled up completely. As a result, the CNPG cluster entered an error state.
Following the documentation, we extended the disk. After that, the cluster came back up, WAL archiving started working again, and backups were running successfully. However, the cluster never returned to a healthy state.
At that point, we decided to try upgrading the cluster by enabling the
barman-cloud.cloudnative-pg.ioplugin. We deployed it and immediately started seeing communication errors toward Barman. Those errors were expected, since the cluster never created the dedicated container needed to run the plugin.We then tried the usual reload and restart commands as described in the documentation, mainly to “poke” the operator and force a reconciliation, hoping it would restart the cluster and create the containers required by the plugin but nothing happened.
It almost feels like once the cluster enters an unhealthy state, any action taken on it is simply ignored. Even looking at the operator logs (with log level set to
trace), we couldn’t find any meaningful or specific error that could help us understand what’s wrong or how to fix it.Out of desperation, we tried restarting a single instance. The result was even worse: the instance disappeared and never came back.
So at this point we’re basically stuck.
Our questions are pretty straightforward:
An options is of course to recreate the entire cluster from a backup, but we want to learn how to fix this issue because this is something we are not encountering for the first time. Any help, guidance, or pointers would be very much appreciated.
Thanks!
We’re left with a cluster that looks like this:
kubectl cnpg -n acme-proxy status acme-proxy Cluster Summary Name acme-proxy/acme-proxy System ID: 7514076314268319775 PostgreSQL Image: ghcr.io/cloudnative-pg/postgresql:16.4 Primary instance: acme-proxy-2 Primary start time: 2025-10-15 14:13:32 +0000 UTC (uptime 2157h41m28s) Status: Waiting for the instances to become active Some instances are not yet active. Please wait. Instances: 3 Ready instances: 2 Size: 648M Current Write LSN: 28/A400C040 (Timeline: 4 - WAL File: 0000000400000028000000A4) Continuous Backup status First Point of Recoverability: 2026-01-13T11:48:25Z Working WAL archiving: OK WALs waiting to be archived: 0 Last Archived WAL: 0000000400000028000000A3 @ 2026-01-13T11:47:44.212205Z Last Failed WAL: 000000040000002800000099 @ 2026-01-13T11:46:36.149775Z Streaming Replication status Replication Slots Enabled Name Sent LSN Write LSN Flush LSN Replay LSN Write Lag Flush Lag Replay Lag State Sync State Sync Priority Replication Slot ---- -------- --------- --------- ---------- --------- --------- ---------- ----- ---------- ------------- ---------------- acme-proxy-3 28/A400C040 28/A400C040 28/A400C040 28/A400C040 00:00:00 00:00:00 00:00:00 streaming async 0 active Instances status Name Current LSN Replication role Status QoS Manager Version Node ---- ----------- ---------------- ------ --- --------------- ---- acme-proxy-2 28/A400C040 Primary OK BestEffort 1.27.0 k8s-ms-13 acme-proxy-3 28/A400C040 Standby (async) OK BestEffort 1.27.0 k8s-ms-04All reactions