# Error when clone index

**URL:** <https://discuss.elastic.co/t/error-when-clone-index/299504>\
**Category:** Kibana\
**Created:** [March 11, 2022, 11:09pm UTC](https://discuss.elastic.co/t/error-when-clone-index/299504 "2022-03-11T23:09:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Fhadli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_fhadli/32/102950_2.png) [@Muhammad\_Fhadli](https://discuss.elastic.co/u/Muhammad_Fhadli)\
**Post date:** [March 11, 2022, 11:09pm UTC](https://discuss.elastic.co/t/error-when-clone-index/299504/1 "2022-03-11T23:09:10Z")

</div>

I want to clone my index, i have done what shown in this [page](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html) to clone the index using this command.

```auto
POST /my_index/_clone/my_index_clone

```

I also tried to make the index read-only first with this command

```auto
PUT /my_index/_settings
{ "settings": {
  "index.blocks.write": false
  }
}

```

But i always get this error

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "parse_exception",
        "reason": "request body is required"
      }
    ],
    "type": "parse_exception",
    "reason": "request body is required"
  },
  "status": 400
}

```

Can someone help me on this? Thank you

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [March 14, 2022, 1:31pm UTC](https://discuss.elastic.co/t/error-when-clone-index/299504/2 "2022-03-14T13:31:08Z")

</div>

Hi @Muhammad_Fhadli. You posted this in the Kibana forum, but this is more of an Elasticsearch question. But I will do my best to help. I think you want to [Add an Index Block](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/index-modules-blocks.html#add-index-block).

So I believe your command should be `PUT /my-index/_block/read_only`.

---

<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:** [April 11, 2022, 1:31pm UTC](https://discuss.elastic.co/t/error-when-clone-index/299504/3 "2022-04-11T13:31:36Z")

</div>

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