All posts

When OpenSearch goes down, Magento stops selling

Since Magento 2.4 a search engine is not optional. OpenSearch or Elasticsearch builds the product lists on search and category pages. When it stops, the store does not show an error page. It shows an empty shop.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 2 min read
A magnifying glass on a white surface

Why Magento depends on it

Magento 2.4 removed MySQL search. Category listings, layered navigation and search results all come from the search engine index, built by the catalogsearch_fulltext indexer. Product pages and the checkout read from MySQL, so they keep working.

PageSourceWhen the engine is down
Search resultsOpenSearchError or no results
Category pagesOpenSearch“We can’t find products matching the selection”
Product pageMySQLWorks
Cart and checkoutMySQLWorks, if shoppers can find a product

How it fails

The usual causes are an OpenSearch process killed for memory, a service that did not start after a reboot, an index that was never rebuilt after an upgrade, and the full disk. When the disk passes the flood-stage watermark, 95% by default, OpenSearch makes the indices read-only. Reindexing then fails and new products never appear.

A full disk blocks writes

With read_only_allow_delete set, searches may still answer from the old index while every update fails. The catalog slowly drifts from the database.

Check it

bash
# Which engine and host does Magento use?
bin/magento config:show catalog/search/engine
bin/magento config:show catalog/search/opensearch_server_hostname

# Is the cluster up? green or yellow is fine on a single node
curl -s "localhost:9200/_cluster/health?pretty"

# Disk per node, and indices blocked by the watermark
curl -s "localhost:9200/_cat/allocation?v"
curl -s "localhost:9200/_all/_settings/index.blocks*?pretty"
Use the host and port from env.php; opensearch_server_hostname becomes elasticsearch7_server_hostname on Elasticsearch.

Fix it

  1. Free disk space first. Logs, old backups and var/report are the usual space hogs.
  2. Remove the read-only block. Recent versions release it on their own once usage drops below the high watermark; older ones need the call below.
  3. Rebuild the search index. Then check a category page as a new visitor.
bash
curl -s -XPUT "localhost:9200/_all/_settings" -H "Content-Type: application/json" \
  -d '{"index.blocks.read_only_allow_delete": null}'

bin/magento indexer:reindex catalogsearch_fulltext
bin/magento cache:flush

What to watch

Watch the cluster health, the disk on the search node and the indexer status, and run a check that opens a category page before it adds a product. A check that starts from a product URL never notices an empty catalog. Related: Magento cron and indexers and checkout breaks after a deploy.

Check your own store now with the free Magento checkout test: it walks the checkout in a real browser and shows the step where it stops.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01Why are Magento category pages empty?

In Magento 2.4 category listings come from OpenSearch or Elasticsearch. If the engine is down, the index is empty or blocked, categories show no products.

02Can Magento 2.4 run without OpenSearch?

No. Magento 2.4 removed MySQL search, so OpenSearch or Elasticsearch is required.

03Why did OpenSearch go read-only?

The disk passed the flood-stage watermark, 95% by default. Free space, remove the read_only_allow_delete block if it stays, and reindex.