Description:
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 controllerGroup=pgv2.percona.com 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 controllerGroup=pgv2.percona.com 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]:
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:119 +0x1fa
panic({0x1a313a0, 0x2d59990})
/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/percona/percona-postgresql-operator/percona/controller/pgbackup.startBackup({0x1fdff58, 0xc00086e0f0}, {0x1fe8a18, 0xc00012afc0}, 0xc0007e6dc0, 0xc0001b2c00)
/go/src/github.com/percona/percona-postgresql-operator/percona/controller/pgbackup/controller.go:143 +0x176
github.com/percona/percona-postgresql-operator/percona/controller/pgbackup.(*PGBackupReconciler).Reconcile(0xc0007e8080, {0x1fdff58, 0xc00086e0f0}, {{{0xc00079b798, 0x8}, {0xc00079b790, 0x7}}})
/go/src/github.com/percona/percona-postgresql-operator/percona/controller/pgbackup/controller.go:76 +0x651
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0x1fdff58?, {0x1fdff58?, 0xc00086e0f0?}, {{{0xc00079b798?, 0x199a0e0?}, {0xc00079b790?, 0x40f946?}}})
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:122 +0xc8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc00043e820, {0x1fdfeb0, 0xc000476cd0}, {0x1ac82a0?, 0xc000a08180?})
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:323 +0x377
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc00043e820, {0x1fdfeb0, 0xc000476cd0})
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:274 +0x1d9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:231 +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 postgres-operator.crunchydata.com/v1beta1 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.
Version:
perconalab/percona-postgresql-operator:main-ppg15-pgbackrest