Postgres operator is failling when running a manual backup


when i run the on demand backup as mentioned in the docs.

the operator is falling.

time=“2023-08-24T15:19:53Z” level=info msg=“Starting workers” controller=perconapgbackup controllerKind=PerconaPGBackup version= worker count=1

time=“2023-08-24T15:19:53Z” level=info msg=“Observed a panic in reconciler: runtime error: invalid memory address or nil pointer dereference” PerconaPGBackup=postgres/backup1 controller=perconapgbackup controllerKind=PerconaPGBackup name=backup1 namespace=postgres reconcileID=09289eb3-bd7c-47df-aa5e-d1d3f54b25fa version=

panic: runtime error: invalid memory address or nil pointer dereference [recovered]

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1678996]

goroutine 376 [running]:*Controller).Reconcile.func1()

/go/pkg/mod/ +0x1fa

panic({0x1a313a0, 0x2d59990})

/usr/local/go/src/runtime/panic.go:884 +0x213{0x1fdff58, 0xc00086e0f0}, {0x1fe8a18, 0xc00012afc0}, 0xc0007e6dc0, 0xc0001b2c00)

/go/src/ +0x176*PGBackupReconciler).Reconcile(0xc0007e8080, {0x1fdff58, 0xc00086e0f0}, {{{0xc00079b798, 0x8}, {0xc00079b790, 0x7}}})

/go/src/ +0x651*Controller).Reconcile(0x1fdff58?, {0x1fdff58?, 0xc00086e0f0?}, {{{0xc00079b798?, 0x199a0e0?}, {0xc00079b790?, 0x40f946?}}})

/go/pkg/mod/ +0xc8*Controller).reconcileHandler(0xc00043e820, {0x1fdfeb0, 0xc000476cd0}, {0x1ac82a0?, 0xc000a08180?})

/go/pkg/mod/ +0x377*Controller).processNextWorkItem(0xc00043e820, {0x1fdfeb0, 0xc000476cd0})

/go/pkg/mod/ +0x1d9*Controller).Start.func2.2()

/go/pkg/mod/ +0x85

created by*Controller).Start.func2

/go/pkg/mod/ +0x587

i also tried to save it to s3 bucket but also failed, this time the operator didnt fall, but gave me another error:

time=“2023-08-24T14:14:48Z” level=debug msg=“command terminated with exit code 49: ERROR: [049]: unable to get address for ‘X.X.X.svc.cluster.local’: [-2] Name or service not known\n” object=“{PostgresCluster X 740204 }” reason=UnableToCreateStanzas type=Warning version

Steps to Reproduce:

deploy an operator v2.2 and deploy the cluster, after it just ran the manual backup.



Hey @ben_goldenberg .

I was not able to reproduce this. Anything specific about your setup?