# Postgres backup stuck in starting problem

**URL:** <https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815>\
**Category:** PostgreSQL\
**Created:** [May 18, 2026, 4:31pm UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815 "2026-05-18T16:31:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad\_taknet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmad_taknet/32/22350_2.png) [@ahmad\_taknet](https://forums.percona.com/u/ahmad_taknet)\
**Post date:** [May 18, 2026, 4:31pm UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815/1 "2026-05-18T16:31:39Z")

</div>

```auto

```

What is the problem and how can I solve it?

89s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 1: postgres operator error: pgBackRest config hash mismatch  
12s Warning StanzaNotCreated postgrescluster/postgresql-c2a Stanza not created for “repo2” as specified for a manual backup  
87s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
84s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
72s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
60s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
48s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
36s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
24s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
12s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…

---

<div class="post-metadata">

**Author:** ![jaimes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jaimes/32/20419_2.png) [@jaimes](https://forums.percona.com/u/jaimes)\
**Post date:** [May 19, 2026, 4:04am UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815/2 "2026-05-19T04:04:33Z")

</div>

Hi @ahmad_taknet,

Can you share the output of:

`kubectl get pg postgresql-c2a -o yaml`

Thanks.

> [@ahmad\_taknet](#):
>
> 89s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 1: postgres operator error: pgBackRest config hash mismatch  
> 12s Warning StanzaNotCreated postgrescluster/postgresql-c2a Stanza not created for “repo2” as specified for a manual backup  
> 87s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 84s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 72s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 60s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 48s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 36s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 24s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…  
> 12s Warning UnableToCreateStanzas postgrescluster/postgresql-c2a command terminated with exit code 39: repo1-path = /pgbackrest/repo1…

---

<div class="post-metadata">

**Author:** ![ahmad\_taknet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmad_taknet/32/22350_2.png) [@ahmad\_taknet](https://forums.percona.com/u/ahmad_taknet)\
**Post date:** [May 19, 2026, 4:22am UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815/3 "2026-05-19T04:22:01Z")

</div>

apiVersion: [pgv2.percona.com/v2](http://pgv2.percona.com/v2)  
kind: PerconaPGCluster  
metadata:  
annotations:  
[pgv2.percona.com/backup-in-progress:](http://pgv2.percona.com/backup-in-progress:) backup-naaaaaaaaaaaaaaame  
[postgres-operator.crunchydata.com/pgbackrest-backup:](http://postgres-operator.crunchydata.com/pgbackrest-backup:) backup-naaaaaaaaaaaaaaame  
creationTimestamp: “2026-05-18T15:50:32Z”  
finalizers:

- [percona.com/delete-pvc](http://percona.com/delete-pvc)
- [percona.com/delete-ssl](http://percona.com/delete-ssl)
- [internal.percona.com/stop-watchers](http://internal.percona.com/stop-watchers)  
generation: 3  
name: postgresql-c2a  
namespace: a------a  
resourceVersion: “234295488”  
uid: f139fd3c-30b0-48f5-88bc-11f4a05a92d9  
spec:  
backups:  
pgbackrest:  
configuration:
  - secret:  
name: postgresql-c2a-pgbackrest-secrets  
global:  
repo1-retention-full: “1”  
repo2-path: /postgresql-c2a/8b145966-9682-498e-ba8d-e813d3397a2e  
repo2-s3-uri-style: path  
image: percona/percona-pgbackrest:2.55.0  
manual:  
options:
    - --type=full
    - --annotation=“[percona.com/backup-name"="backup-naaaaaaaaaaaaaaame](http://percona.com/backup-name%22=%22backup-naaaaaaaaaaaaaaame)”  
repoName: repo2  
repos:

  - name: repo1  
volume:  
volumeClaimSpec:  
accessModes:
    - ReadWriteOnce  
resources:  
requests:  
storage: 3Gi  
storageClassName: rook-ceph-block

  - name: repo2  
s3:  
bucket: aaaaaaaaafor-kxac  
endpoint: [https://s3.virakcloud.com](https://s3.virakcloud.com)  
region: thr  
crVersion: 2.7.0  
extensions:  
builtin: {}  
image: [docker.io/percona/percona-postgresql-operator:2.7.0](http://docker.io/percona/percona-postgresql-operator:2.7.0)  
imagePullPolicy: IfNotPresent  
storage: {}  
image: percona/percona-postgresql-operator:2.7.0-ppg17.5.2-postgres  
imagePullPolicy: IfNotPresent  
instances:

- affinity:  
podAntiAffinity:  
preferredDuringSchedulingIgnoredDuringExecution:
  - podAffinityTerm:  
topologyKey: [kubernetes.io/hostname](http://kubernetes.io/hostname)  
weight: 1  
dataVolumeClaimSpec:  
accessModes:

  - ReadWriteOnce  
resources:  
requests:  
storage: 3Gi  
storageClassName: rook-ceph-block  
name: instance1  
replicas: 1  
resources:  
limits:  
cpu: “1”  
memory: 2G  
patroni:  
dynamicConfiguration:  
postgresql:  
parameters:  
track\_commit\_timestamp: “on”  
leaderLeaseDurationSeconds: 30  
port: 8008  
syncPeriodSeconds: 10  
pause: false  
port: 5432  
postgresVersion: 17  
proxy:  
pgBouncer:  
affinity:  
podAntiAffinity:  
preferredDuringSchedulingIgnoredDuringExecution:
    - podAffinityTerm:  
topologyKey: [kubernetes.io/hostname](http://kubernetes.io/hostname)  
weight: 1  
config: {}  
expose:  
annotations:  
[metallb.io/address-pool:](http://metallb.io/address-pool:) production-pool  
type: LoadBalancer  
exposeSuperusers: true  
image: percona/percona-pgbouncer:1.24.1  
port: 5432  
replicas: 1  
resources:  
limits:  
cpu: “1”  
memory: 30M  
secrets: {}  
users:

- name: postgres  
secretName: everest-secrets-postgresql-c2a  
status:  
conditions:
- lastTransitionTime: “2026-05-18T15:52:29Z”  
message: “”  
reason: AllConditionsAreTrue  
status: “True”  
type: ReadyForBackup  
host: 192.168.85.104  
installedCustomExtensions:   
patroniVersion: 4.0.5  
pgbouncer:  
ready: 1  
size: 1  
postgres:  
imageID: [docker.io/percona/percona-postgresql-operator@sha256:cfb99ebeec00ab6efb4fca4a8da2b8c3b489dd792bd2f907848197ba09bc9553](http://docker.io/percona/percona-postgresql-operator@sha256:cfb99ebeec00ab6efb4fca4a8da2b8c3b489dd792bd2f907848197ba09bc9553)  
instances:
  - name: instance1  
ready: 1  
size: 1  
ready: 1  
size: 1  
version: 17  
state: ready

---

<div class="post-metadata">

**Author:** ![ahmad\_taknet](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ahmad_taknet/32/22350_2.png) [@ahmad\_taknet](https://forums.percona.com/u/ahmad_taknet)\
**Post date:** [May 23, 2026, 5:58am UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815/4 "2026-05-23T05:58:51Z")

</div>

Hello. Thanks for your attention. Did you find any idea for this problem? @jaimes

---

<div class="post-metadata">

**Author:** ![Ninad\_Shah](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ninad_shah/32/6926_2.png) [@Ninad\_Shah](https://forums.percona.com/u/Ninad_Shah)\
**Post date:** [June 1, 2026, 10:53am UTC](https://forums.percona.com/t/postgres-backup-stuck-in-starting-problem/40815/5 "2026-06-01T10:53:11Z")

</div>

Hello Ahmad,

Hope you are doing great. The error(`exit code 39:`) suggests that Pgbackrest is trying to create a stanza on a non-empty directory.

After carefully reviewing the configuration file, I can notice that repo1-path is not set. Is there a reason to omit this? While repo1-path is not supplied, it picks the default path which is a non-empty directory.

Would you please take a look if the directory is empty?

Please revert to us if this doesn’t resolve your issue.

Thanks,

Ninad
