# Index got locked

**URL:** <https://discuss.elastic.co/t/index-got-locked/351464>\
**Category:** Kibana\
**Created:** [January 19, 2024, 5:27pm UTC](https://discuss.elastic.co/t/index-got-locked/351464 "2024-01-19T17:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith\_Lin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_lin/32/130566_2.png) [@Keith\_Lin](https://discuss.elastic.co/u/Keith_Lin)\
**Post date:** [January 19, 2024, 5:27pm UTC](https://discuss.elastic.co/t/index-got-locked/351464/1 "2024-01-19T17:27:29Z")

</div>

Jan 19, 2024 @ 12:17 PM

```auto
PUT /*/_settings
{
  "index": {
    "blocks.read_only": false,
    "blocks.read_only_allow_delete": null,
    "blocks.write": true
  }
}

```

The run the above. The `blocks.write: true` block all index and i am unable to send logs to ES. I tried to run the following to no aval

```auto
PUT /*/_settings
{
  "index": {
    "blocks.read_only": false,
    "blocks.read_only_allow_delete": null,
    "blocks.write": null // also tried false
  }
}

```

I got the following error please help.

#! Your license will expire in [5] days. Contact your administrator or update your license for continued use of features  
{

```auto
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "illegal value can't update [index.blocks.write] from [true] to [false]"
}
],
"type": "illegal_argument_exception",
"reason": "illegal value can't update [index.blocks.write] from [true] to [false]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Cannot remove write block from searchable snapshot index"
}
},
"status": 400
}

```

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [January 19, 2024, 9:51pm UTC](https://discuss.elastic.co/t/index-got-locked/351464/2 "2024-01-19T21:51:12Z")

</div>

Hi,

Attempt a similar PUT operation, but refrain from using it on searchable snapshot indices. These indices are designed to be read-only, indicating that any attempts to write to them are prohibited. This restriction is enforced by a write block that cannot be lifted.

Regards

---

<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:** [February 16, 2024, 9:51pm UTC](https://discuss.elastic.co/t/index-got-locked/351464/3 "2024-02-16T21:51:32Z")

</div>

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