Skip to content

An 'unable to create stanza' error occurred when using S3 for backup storage #4453

@wht1998

Description

@wht1998

Overview
An 'unable to create stanza' error occurred when using S3 for backup storage.

Environment
Please provide the following details:

Platform: Kubernetes
Platform Version: v1.26.4
PGO Image Tag: ubi9-5.8.6-0
Postgres Version: ubi9-18.1-2550
Storage: no external volume mapped, using Kubernetes on DigitalOcean
Steps to Reproduce
REPRO
Provide steps to get to the error condition:

Install the default PGO on the cluster using the example repo.
Applied the following manifest:

apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
  name: hippo
  namespace: postgres-operator

spec:
  postgresVersion: 18

  instances:
    - name: instance1
      replicas: 3
      dataVolumeClaimSpec:
        storageClassName: nfs
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 1Gi

  backups:
    pgbackrest:
      global:
        repo1-path: /repo1
        repo1-s3-uri-style: path

      configuration:
        - secret:
            name: pgo-s3-creds

      repos:
        - name: repo1
          s3:
            bucket: backup
            endpoint: minio.postgres-operator.svc.cluster.local
            region: us-east-1

      manual:
        repoName: repo1
        options:
          - --type=full

PGO erro message:

reconcileStanzaCreate" name=hippo namespace=postgres-operator reconcileID=71e9a2ea-4e32-4b7e-bccf-d23506fae3c4 reconciler=pgBackRest version=5.8.6-0
time="2026-03-04T02:53:05Z" level=debug msg="command terminated with exit code 50: " object="{PostgresCluster postgres-operator hippo c3bcb643-5feb-4dc2-964a-7975caf8d2f6 postgres-operator.crunchydata.com/v1beta1 27657894 }" reason=UnableToCreateStanzas type=Warning version=5.8.6-0
time="2026-03-04T02:53:05Z" level=debug msg="reconciled cluster" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster name=hippo namespace=postgres-operator reconcileID=71e9a2ea-4e32-4b7e-bccf-d23506fae3c4 version=5.8.6-0
time="2026-03-04T02:53:17Z" level=debug msg="replaced configuration" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d stderr= stdout="Not changed\n" version=5.8.6-0
time="2026-03-04T02:53:17Z" level=debug msg="reconciled instance" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster instance=hippo-instance1-tck5 name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d version=5.8.6-0
time="2026-03-04T02:53:17Z" level=debug msg="reconciled instance" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster instance=hippo-instance1-sghj name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d version=5.8.6-0
time="2026-03-04T02:53:17Z" level=debug msg="reconciled instance" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster instance=hippo-instance1-ghz9 name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d version=5.8.6-0
time="2026-03-04T02:53:17Z" level=debug msg="reconciled instance set" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster instance-set=instance1 name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d version=5.8.6-0
time="2026-03-04T02:53:18Z" level=error msg="unable to create stanza" PostgresCluster=postgres-operator/hippo controller=postgrescluster controllerGroup=postgres-operator.crunchydata.com controllerKind=PostgresCluster error="command terminated with exit code 50: " file="internal/controller/postgrescluster/pgbackrest.go:2846" func="postgrescluster.(*Reconciler).reconcileStanzaCreate" name=hippo namespace=postgres-operator reconcileID=5675da99-6690-4b9a-aa15-683641d5391d reconciler=pgBackRest version=5.8.6-0
time="2026-03-04T02:53:18Z" level=debug msg="command terminated with exit code 50: " object="{PostgresCluster postgres-operator hippo c3bcb643-5feb-4dc2-964a-7975caf8d2f6 postgres-operator.crunchydata.com/v1beta1 27657894 }" reason=UnableToCreateStanzas type=Warning version=5.8.6-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions