# Cluster block exception: Forbidden

**URL:** https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384
**Category:** Logstash
**Created:** [July 8, 2019, 4:40pm UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384 "2019-07-08T16:40:51Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)
#### Post date: [July 8, 2019, 4:40pm UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/1 "2019-07-08T16:40:51Z")

</div>

I keep getting messages like the following and the drop in indexing rate correlates with these messages but the watermark is far from being breached.

`[2019-07-08T08:50:29,228][INFO][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "reason"=>"blocked by: [FORBIDDEN/8/index write (api)];"})`

What else is causing the block?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 8, 2019, 4:47pm UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/2 "2019-07-08T16:47:57Z")

</div>

This typically means you are running out of disk space in Elasticsearch.

---

<div class="post-metadata">

### Author: ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)
#### Post date: [July 8, 2019, 6:35pm UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/3 "2019-07-08T18:35:38Z")

</div>

@Christian_Dahlqvist you probably mistook `FORBIDDEN/8` for `FORBIDDEN/12`. The latter is the case of running out of disk space.

Also, the case is happening when I have 40% disk utilized so it is not related to that.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 8, 2019, 8:39pm UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/4 "2019-07-08T20:39:16Z")

</div>

That may very well be the case. What is the specification and size of your cluster? Which version are you using? Is there anything in the logs around those messages?

Are you using ILM so it could be [something like this](https://discuss.elastic.co/t/forbidden-8-index-write-api-during-date-change-on-indexes/179319)?

---

<div class="post-metadata">

### Author: ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)
#### Post date: [July 9, 2019, 4:58am UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/5 "2019-07-09T04:58:24Z")

</div>

I am using 6.6.1 stack. I could not find any other logs around it.

There is ILM which moves data from hot to warm nodes after 2 days.

```
"hot_warm_purge_policy" : {
    "version" : 1,
    "modified_date" : "2019-07-04T15:50:26.847Z",
    "policy" : {
      "phases" : {
        "hot" : {
          "min_age" : "0ms",
          "actions" : { }
        },
        "delete" : {
          "min_age" : "4d",
          "actions" : {
            "delete" : { }
          }
        },
        "warm" : {
          "min_age" : "2d",
          "actions" : {
            "allocate" : {
              "include" : { },
              "exclude" : { },
              "require" : {
                "box_type" : "warm"
              }
            },
            "forcemerge" : {
              "max_num_segments" : 1
            }
          }
        }
      }
    }
 }

```

There is no setting for making the index read-only yet if I understand correctly.

---

<div class="post-metadata">

### Author: ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)
#### Post date: [July 9, 2019, 5:00am UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/6 "2019-07-09T05:00:34Z")

</div>

Also the messages are not coming up only at day boundary to indicate that ILM is the problem.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [July 9, 2019, 5:30am UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/7 "2019-07-09T05:30:16Z")

</div>

Have a look at the settings of your indices. I suspect you will find that only indices located on the warm nodes that have been forcemerged are blocked. If that is the case it may be that you have some events coming in 2 days late and you see the error when Logstash tries to index thee into the warm indices, which could happen at any point during the day.

---

<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: [August 6, 2019, 5:30am UTC](https://discuss.elastic.co/t/cluster-block-exception-forbidden/189384/8 "2019-08-06T05:30:22Z")

</div>

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