<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: ElasticsearchException index read-only if updating/storing BusinessData</title><link>https://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdata</link><description>&lt;p&gt;I can not update and store my Business data and get the following exception if I do it e.g. &lt;code&gt;ivy.repo.save(in.myDossier)&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ElasticsearchException: Elasticsearch update index of document failed because of:
{
   "root_cause":[
      {
         "type":"cluster_block_exception",
         "reason":"index [ivy.businessdata-abc] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
      }
   ],
   "type":"cluster_block_exception",
   "reason":"index [ivy.businessdata-abc] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seems that it is now forbidden to write to the Elasiticsearch index because it is read-only. Why is my index read-only? I did not do anything. It suddenly stopped working.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdata" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 01 Oct 2019 04:10:38 -0400</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdata/4039</link><description>&lt;p&gt;This can happen if you are nearly out of disk space. If you have used 95% or more of your disk, Elasticsearch enforces a read-only index. This means no update and adding to the index is allowed only deletion will work.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You just have to clean up your disk to have more than 5% free disk space (anyway a good idea:) and restart Axon.ivy. Then it should work again.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;See detailed information in the &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html"&gt;Elasticsearch reference&lt;/a&gt; about the configuration properties and what happens when.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Tue, 01 Oct 2019 04:10:38 -0400</pubDate><guid>https://answers.axonivy.com/questions/4038/elasticsearchexception-index-read-only-if-updating-storing-businessdata/4039</guid></item></channel></rss>