Skip to content

Instantly share code, notes, and snippets.

@mehmetkurt
Forked from hkulekci/solve.md
Last active December 24, 2021 20:41
Show Gist options
  • Save mehmetkurt/5b5c9ae5300e119e9423590c1fffce8b to your computer and use it in GitHub Desktop.
Save mehmetkurt/5b5c9ae5300e119e9423590c1fffce8b to your computer and use it in GitHub Desktop.
Elasticsearch "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)" error

If u are getting below error while indexing:

{
  "error": {
    "root_cause": [
      {
        "type": "cluster_block_exception",
        "reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
      }
    ],
    "type": "cluster_block_exception",
    "reason": "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
  },
  "status": 403
}

This can be caused by disk space:

PUT index-name/_settings
{
  "index": {
    "blocks": {
      "read_only_allow_delete": "false"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment