Skip to content

rpc error: code = Unknown desc = unexpected failure invoking barman-cloud-wal-archive: exit status 2 #535

@alexeyshishkin-edb

Description

@alexeyshishkin-edb

Hi, Team !

I have two setups:

  1. native barman
  2. plugin barman 0.6.0

Both of them use the same CNPG 1.27.0 and the same Minio configuration:

tee minio.yaml << EOF
apiVersion: v1
kind: Secret
metadata:
  name: minio-creds
data:
  ACCESS_KEY_ID: $ACCESS_KEY_ID
  ACCESS_SECRET_KEY: $ACCESS_SECRET_KEY

---
apiVersion: v1
kind: Service
metadata:
  name: minio-service
spec:
  ports:
    - port: 9000
      targetPort: 9000
      protocol: TCP
  selector:
    app: minio

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: minio
spec:
  selector:
    matchLabels:
      app: minio
  template:
    metadata:
      labels:
        app: minio
    spec:
      containers:
      - name: minio
        image: minio/minio:latest
        args:
        - server
        - /data
        env:
        - name: MINIO_ACCESS_KEY
          valueFrom:
            secretKeyRef:
              name: minio-creds
              key: ACCESS_KEY_ID
        - name: MINIO_SECRET_KEY
          valueFrom:
            secretKeyRef:
              name: minio-creds
              key: ACCESS_SECRET_KEY
        ports:
        - containerPort: 9000
        readinessProbe:
          httpGet:
            path: /minio/health/ready
            port: 9000
          initialDelaySeconds: 30
        livenessProbe:
          httpGet:
            path: /minio/health/live
            port: 9000
          initialDelaySeconds: 30
EOF

Setup 1) works fine, while setup 2) not - the following error is observed in the 'kubectl describe cluster $cluster_name' output:

'rpc error: code = Unknown desc = unexpected failure invoking barman-cloud-wal-archive: exit status 2'

ObjectStore configuration is:

tee minio-store.yaml << EOF
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
  name: minio-store
spec:
  configuration:
    destinationPath: s3://cluster-backups/
    endpointURL: http://minio:9000
    s3Credentials:
      accessKeyId:
        name: minio-creds
        key: ACCESS_KEY_ID
      secretAccessKey:
        name: minio-creds
        key: ACCESS_SECRET_KEY
    wal:
      compression: gzip
  retentionPolicy: "1d"
EOF

Cluster configuration is:

tee $cluster_name.yaml << EOF
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: $cluster_name
spec:
  instances: 3
  imageName: $cnpg_image_name
  storage:
    size: 1Gi
  plugins:
  - name: barman-cloud.cloudnative-pg.io
    isWALArchiver: true
    parameters:
      barmanObjectName: minio-store
EOF

Report files of the 'kubectl cnpg report operator -n $oname-system --logs' and 'kubectl cnpg report cluster $cluster_name --logs' are attached.

report_cluster_cluster-barman-cloud-cnpg_2025-09-18T095613Z.zip
report_operator_2025-09-18T095559Z.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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