Skip to content

Instantly share code, notes, and snippets.

@twymer
Forked from hkulekci/solve.md
Created November 12, 2019 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twymer/9c91ca514e1d1bb57a1710869ecdfb07 to your computer and use it in GitHub Desktop.
Save twymer/9c91ca514e1d1bb57a1710869ecdfb07 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