# ELK stuck in Read Only mode

**URL:** https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478
**Category:** Elasticsearch
**Created:** [October 22, 2018, 8:52pm UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478 "2018-10-22T20:52:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hueyg](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@hueyg](https://discuss.elastic.co/u/hueyg)
#### Post date: [October 22, 2018, 8:52pm UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478/1 "2018-10-22T20:52:51Z")

</div>

I am posting this in Kibana, but honestly not sure where the problem lies. Every piece is version 6.4.2.

Stack was working fine. My stack is configured as Beats\>Logstash\>Kibana? Honestly new so I am not sure what role Elasticsearch plays in the stack yet. I attempted to pull some logs from our main ASA just to test performance of the software. I let several days of indices build up to get some sort of baseline. I would consider these big indices ranging in size of 5 GB to 10 GB per day and millions of "documents" in each.

I left the system alone for a few days, then needed to scrape some web logs. Logging into Kibana was very sluggish and TOP on the system showed very high CPU load primarily from the Logstash process mainly. This may have been a mistake but I deleted every indice since I no longer cared about the information.

I tried to create new index for new Beat from web server and it just sites there "Creating Index..." and never progresses. I then attempted to delete the old ASA syslog Index Patter and received:

`blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]`

Checked logs and there were mention of disk watermark threshold and Error 403's.:

`[2018-10-22T08:43:41,407][INFO][o.e.c.r.a.DiskThresholdMonitor] [inBmC6I] low disk watermark [85%] exceeded on [inBmC6IOSFaFJC7T-TOadA][inBmC6I][/var/lib/elasticsearch/nodes/0] free: 7.4gb[11.4%], replicas will not be assigned to this node`

I believe I have deleted those indices and the disk is not full:

```auto
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 66G 8.9G 57G 14% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 9.5M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 1014M 222M 793M 22% /boot
tmpfs 783M 12K 783M 1% /run/user/42
tmpfs 783M 0 783M 0% /run/user/1001

```

At this point I do not know what to check next. Thank you for anyone's time.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [October 23, 2018, 8:03am UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478/2 "2018-10-23T08:03:11Z")

</div>

There is a built in protection, that Elasticsearch stops accepting writes once your disk exceeds 95% usage at some point.

See [https://www.elastic.co/guide/en/elasticsearch/reference/6.4/disk-allocator.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/disk-allocator.html) - this also includes a call how to set your index to be writable again.

---

<div class="post-metadata">

### Author: ![hueyg](https://avatars.discourse-cdn.com/v4/letter/h/8c91f0/32.png) [@hueyg](https://discuss.elastic.co/u/hueyg)
#### Post date: [October 23, 2018, 3:53pm UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478/3 "2018-10-23T15:53:30Z")

</div>

Thanks Alexander. I know it is hard to believe but I did actually read that documentation prior to posting and here was my issue with it. I understand to remove the block I run this bit of script against my index:

```
PUT /my_index/_settings
{
  "index.blocks.read_only_allow_delete": null
}

```

My problem was that I deleted the previously huge indices which I suspected caused the problem in the first place so I was not sure how to then change that flag. Is there a script that will go through the stack and find where the block exists without having to know the indice name explicitly? Obviously my ignorance of the Elk structure is causing me issues here.

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [October 24, 2018, 7:34am UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478/4 "2018-10-24T07:34:39Z")

</div>

calling `GET _all/_settings` will return all the index settings, allowing you to check where this setting is configured.

---

<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: [November 21, 2018, 7:34am UTC](https://discuss.elastic.co/t/elk-stuck-in-read-only-mode/153478/5 "2018-11-21T07:34:39Z")

</div>

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