Skip to main content
Skip table of contents

Error: FORBIDDEN/12/index read-only / allow delete (api)

Problem

When using the Cognitive Toolkit, you may come across this error:


FORBIDDEN/12/index read-only / allow delete (api)

Cause

The two typical causes of this error:

  1. You have hit the "watermark" for disk space remaining (for more information: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/disk-allocator.html)
  2. The node(s) in the cluster have run out of memory (RAM)

Solution

The first step in solving this problem is to address the cause (disk space, or memory). Check the logs in ...\Shinydocs\indexer\logs for indication of an out of memory (heap size) error or watermark hit. If it is out of memory/heap, you will need to increase the memory allocated to the Indexer (Elasticsearch) https://www.elastic.co/guide/en/elasticsearch/reference/6.0/heap-size.html

  1. Once the cause has been addressed, you will need to let the index know it is okay to proceed and take the index out of read only. To do this, run the following command from Visualizer/Kibana > Dev Tools

    JAVA
    PUT /_all/_settings
    {
    "index.blocks.read_only_allow_delete": false
    }
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.