# Ceph s3 as snapshot and backup

**URL:** <https://discuss.elastic.co/t/ceph-s3-as-snapshot-and-backup/282168>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [August 22, 2021, 2:06pm UTC](https://discuss.elastic.co/t/ceph-s3-as-snapshot-and-backup/282168 "2021-08-22T14:06:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasri](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Nasri](https://discuss.elastic.co/u/Nasri)\
**Post date:** [August 22, 2021, 2:06pm UTC](https://discuss.elastic.co/t/ceph-s3-as-snapshot-and-backup/282168/1 "2021-08-22T14:06:52Z")

</div>

Hi,  
I have a s3 bucket created on ceph , when It wants to create repository it shows the following error.

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "repository_verification_exception",
        "reason": "[backup_repository6] cannot delete test data at "
      }
    ],
    "type": "repository_verification_exception",
    "reason": "[backup_repository6] cannot delete test data at ",
    "caused_by": {
      "type": "i_o_exception",
      "reason": "Exception when deleting blob [tests-3YRmh_c0Q1aa3b70xVEwLg]",
      "caused_by": {
        "type": "amazon_s3_exception",
        "reason": "Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: null; S3 Extended Request ID: null)"
      }
    }
  },
  "status": 500
}

```

Any idea @DavidTurner and @dadoonet

---

<div class="post-metadata">

**Author:** ![Nasri](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Nasri](https://discuss.elastic.co/u/Nasri)\
**Post date:** [August 22, 2021, 3:20pm UTC](https://discuss.elastic.co/t/ceph-s3-as-snapshot-and-backup/282168/2 "2021-08-22T15:20:22Z")

</div>

I know the user cannot delete file but I have set admin permission to the bucket user

```auto
[root@cephcon01 ~]# radosgw-admin user info --uid=gitlab-s3-api
{
    "user_id": "gitlab-s3-api",
    "display_name": "Gitlab s3 bucket",
    "email": "",
    "suspended": 0,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "gitlab-s3-api",
            "access_key": "xxxx",
            "secret_key": "xxxxxxx"
        }
    ],
    "swift_keys": [],
    "caps": [
        {
            "type": "buckets",
            "perm": "*"
        },
        {
            "type": "metadata",
            "perm": "*"
        },
        {
            "type": "usage",
            "perm": "*"
        },
        {
            "type": "users",
            "perm": "*"
        },
        {
            "type": "zone",
            "perm": "*"
        }
    ],
    "op_mask": "read, write, delete",
    "default_placement": "",
    "default_storage_class": "",
    "placement_tags": [],
    "bucket_quota": {
        "enabled": true,
        "check_on_raw": false,
        "max_size": 32212254720,
        "max_size_kb": 31457280,
        "max_objects": -1
    },
    "user_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "temp_url_keys": [],
    "type": "rgw",
    "mfa_ids": []
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 19, 2021, 3:20pm UTC](https://discuss.elastic.co/t/ceph-s3-as-snapshot-and-backup/282168/3 "2021-09-19T15:20:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
