The Magento admin often shows this message at the top of every page: “One or more indexers are invalid. Make sure your Magento cron job is running.” It means some of the data the storefront reads from is out of date.
What it means for customers
Until the invalid indexes are rebuilt, the storefront serves whatever they last contained. Customers can see old prices, products that were removed from a category, items shown in stock that are not, and search results missing new products.
Why indexers go invalid
- A configuration change that affects the catalog, such as changing attribute settings, websites or price scope, marks indexes as needing a full rebuild.
- A previous reindex failed partway through.
- Cron is not running. Magento’s cron job
indexer_reindex_all_invalidrebuilds invalid indexes automatically. If cron is down, they stay invalid.
Check which ones are invalid
bin/magento indexer:status
How to fix it
Rebuild the invalid ones. You can rebuild everything, or name specific indexers:
bin/magento indexer:reindex
bin/magento indexer:reindex catalogsearch_fulltext catalog_product_price
The storefront shows correct data as soon as the rebuild finishes.
If they keep going invalid
- Check that cron runs every minute (see Magento 2 cron not running).
- Set indexers to Update by Schedule so changes are processed in small batches by cron instead of all at once:
bin/magento indexer:set-mode schedule - Look for an extension or import that saves configuration repeatedly. Each save can invalidate indexes again.
Catch it automatically
MageMonitor checks for this every few minutes as part of its Magento health checks, and alerts you by email, Slack or webhook the moment it appears, with the exact commands to fix it. See MageMonitor for Magento 2.
