# Operator XtraDB Backup fails

**URL:** <https://forums.percona.com/t/operator-xtradb-backup-fails/26821>\
**Category:** Percona XtraBackup\
**Created:** [November 28, 2023, 9:42am UTC](https://forums.percona.com/t/operator-xtradb-backup-fails/26821 "2023-11-28T09:42:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![batman](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@batman](https://forums.percona.com/u/batman)\
**Post date:** [November 28, 2023, 9:42am UTC](https://forums.percona.com/t/operator-xtradb-backup-fails/26821/1 "2023-11-28T09:42:48Z")

</div>

Hi There,

I’ve deployed a new PXC Cluster to k8s using the operator. Now, I’m trying to create a backup of my cluster, however the backup pod fails with the below error and then exist.

```auto
+ xbcloud delete --curl-retriable-errors=7 --storage=s3 --s3-bucket=test-2023-11-28-09:34:54-full.sst_info
231128 09:35:00 xbcloud: Successfully connected.
231128 09:35:00 xbcloud: error: backup named test-2023-11-28-09:34:54-full.sst_info doesn't exists!

```

The above is confusing, since I’m trying to create the backup, so it makes sense that it does not exist.

This is my manifest file:

```auto
apiVersion: pxc.percona.com/v1
kind: PerconaXtraDBClusterBackup
metadata:
  name: test-backup
spec:
  pxcCluster: cluster-1
  storageName: backup

```

I have also configured PITR backup, however they work fine with no errors. This is not a S3 bucket permission error since I use the same bucket and creds for PITR and this works fine.

In my values.yaml file I this configured for backups:

```auto
backup:
  enabled: true
  image:
    repository: percona/percona-xtradb-cluster-operator
    tag: 1.13.0-pxc8.0-backup-pxb8.0.32
  imagePullSecrets: []
  pitr:
    enabled: true
    storageName: backup
    timeBetweenUploads: 60
    resources:
      requests: {}
      limits: {}
  storages:
    backup:
      type: s3
      verifyTLS: true
      s3:
        bucket: test
        region: eu-west-1
        credentialsSecret: s3-creds

```

Any ideas on what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![batman](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@batman](https://forums.percona.com/u/batman)\
**Post date:** [November 28, 2023, 10:47am UTC](https://forums.percona.com/t/operator-xtradb-backup-fails/26821/2 "2023-11-28T10:47:26Z")

</div>

I’ve managed to resolve the issue. The problem whas that I needed to specify the “endpointUrl” in the backup configuration.

According to the documentation it is not needed when using “original Amazon S3”.

> **[Percona Operator for MySQL based on Percona XtraDB Cluster - Configure...](https://docs.percona.com/percona-operator-for-mysql/pxc/backups-storage.html)**
>
> You can configure storage for backups in the backup.storages subsection of the
> Custom Resource, using the deploy/cr.yaml
> configuration file.

However, after troubleshooting for a while and using mc, I was able to get more detail on the error:

```auto
 "status": "error",
 "error": {
  "message": "Unable to list folder.",
  "cause": {
   "message": "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.",
   "error": {
    "Code": "PermanentRedirect",
    "Message": "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.",

```

After seeing the above, it was a quick fix getting the region S3 endpoint from [Amazon Simple Storage Service endpoints and quotas - AWS General Reference](https://docs.aws.amazon.com/general/latest/gr/s3.html)
