Problem With Catalogsearch_fulltext Re-Indexing On Magento 2

If you try to index a document in ElasticSearch or try to re-indexing Magento 2 and you see an error message like this


php bin/magento indexer:reindex catalogsearch_fulltext Catalog Search indexer process unknown error: {"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}

The problem is with ElasticSearch, namely that less than 5% of free space is left on the disk. In order for everything to work, except for releasing the required number of bytes, you still need to run the following command:

curl -XPUT -H "Content-Type: application/json" https://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

Note:
The underlying reason that caused ElasticSearch to lock writes to the index caused by exceeding the disk watermark/quota.

See How to disable ElasticSearch disk quota / watermark for details on how to work around that.

Credits:

StackOverflow solution by Imran273

Share:

More Posts

Share on facebook
Share on twitter
Share on linkedin

Sign up for our newsletters

SEO

Book Now Free SEO Consultation

Commerce

Take your ecommerce site to next the level

Development

Website Development

Announce

New
arrival

2019 collection

Let’s face it, no look is really complete without the right finishes. Not to the best of standards, anyway (just tellin’ it like it is, babe). Upgrading your shoe game. Platforms, stilettos, wedges, mules, boots—stretch those legs next time you head out, then rock sliders, sneakers, and flats when it’s time to chill.