Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Magento indexers stuck: wrong prices and stock, how to fix

OPS-260High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Magento (and Adobe Commerce) does not calculate prices and stock from scratch on every page view. It copies that data into separate index tables. An indexer is the process that rebuilds those tables when you change a product, a price rule or stock.

An indexer is stuck when its status stays on Processing long after it should have finished, or sits on Reindex required and never clears. The index tables then stop matching the real catalogue data.

Common causes: cron jobs not running, a crashed reindex (out of memory or a database timeout), a database lock left behind, a very large catalogue, or an extension that changes prices or stock.

Why it costs you leads or sales

Shoppers decide on what the category page or search result shows. If the listing says one price and the cart says another, trust drops and people leave. If a sold-out item shows as in stock, you get orders you cannot fill. If a product that is in stock shows as out of stock, you lose a sale you could have made.

Ad platforms add to the damage. Ads and feeds that pull price and stock from your site can send paid traffic to pages with the wrong data. Tracking also records the wrong value if the displayed price differs from the cart.

How a stuck indexer reaches the shopper
  1. Admin price changedYou update a price or stock level
  2. IndexerStuck on Processing or Reindex required
  3. Category and searchShow the old price or stock
  4. CartShows a different price, shopper leaves

The price is right in the admin, but the stale index feeds the pages shoppers see.

Sales on a repriced product while the index is staleExample numbers
Sales on a repriced product while the index is stale (example)Index up to date: 20 orders per day; Index stuck: 8 orders per day0815208Index up to dateIndex stuckorders per day

Example: illustrative numbers for one product after a price cut, with and without a stuck price indexer.

How to check if your site has it

Check indexer status
  1. Run the status commandCustom code

    On the server, from the Magento root, run bin/magento indexer:status. Look for rows that say Processing for a long time or Reindex required.

  2. Check the admin

    Go to System > Tools > Index Management. Check the Status and Updated columns. An old Updated time on a busy store is a warning sign.

  3. Compare listing and product page

    Open a product you recently changed. Compare the price and stock on the category page, search results, product page and cart. Any mismatch points to a stale index.

  4. Check cron

    Run bin/magento cron:run and check the cron_schedule table for recent jobs with status success. Missing or old rows mean cron is not running.

Main Magento indexers and what a stale one shows
IndexerWhat goes wrong when stale
Product PriceOld prices on category, search and product pages
StockWrong in-stock or out-of-stock status
Catalog Rule Product / Catalog Product RuleDiscounts missing or still applied after they end
Category ProductsProducts missing from or wrongly shown in categories
Catalog SearchSearch results with old data

How to fix it

The commands below run on the server over SSH, so they apply to self-hosted Magento and Adobe Commerce. On managed cloud hosting, ask your host if you do not have shell access.

Unstick and rebuild the indexers
  1. Make sure no reindex is really running

    Check running processes (for example ps aux | grep indexer). If one is still working, give it time. Only reset when nothing is running.

  2. Reset the stuck indexer

    Run bin/magento indexer:reset catalog_product_price (use the indexer id from indexer:status). This clears the Processing flag.

  3. Reindex it

    Run bin/magento indexer:reindex catalog_product_price, or run bin/magento indexer:reindex for all indexers.

  4. Fix cron

    Check that the system crontab runs Magento cron every minute and that the Magento user owns it. Install it with bin/magento cron:install.

  5. Use Update by Schedule

    Set indexers to Update by Schedule in System > Tools > Index Management, or run bin/magento indexer:set-mode schedule. Cron then keeps them current in small batches.

  6. Clear the cache

    Run bin/magento cache:flush so pages stop serving old HTML.

  7. Look for the root cause

    Check var/log and the PHP and MySQL logs for memory errors, deadlocks or timeouts. Disable recently added price or stock extensions to test them.

Check, reset and rebuildbash
bin/magento indexer:status
bin/magento indexer:reset catalog_product_price
bin/magento indexer:reindex catalog_product_price
bin/magento cron:install
bin/magento indexer:set-mode schedule
bin/magento cache:flush
Indexers before and after the fix

Stuck

  • Status shows Processing for hours
  • Category price differs from cart price
  • Cron jobs missing or failing

Healthy

  • Status shows Ready
  • Prices and stock match everywhere
  • Cron runs every minute

How to confirm it's fixed

Confirm the fix
  • indexer:status shows Ready for every indexer
  • Updated times in Index Management are recent
  • Change a test product price and see it on the category page within a few minutes
  • Price and stock match on category, search, product page and cart
  • Recent cron_schedule rows show success
  • No new memory or deadlock errors in the logs

How to prevent it happening again

Prevention
  • Keep indexers on Update by Schedule
  • Monitor that cron runs every minute
  • Give PHP enough memory and MySQL enough time for large reindexes
  • Test price and stock extensions on staging after each upgrade
  • Run bulk imports and big price changes in quiet hours
  • Check a sample product price on the storefront after every bulk change

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs a price consistency check (price_consistent): the robot visitor follows your real customer journey and checks that the price it sees stays consistent from step to step. A listing price that differs from the cart price is the typical symptom of a stale price index, so FunnelGuard can flag it with a screenshot and a likely cause.

What it does not do: it does not read your Magento indexer status, cron jobs or logs, and it does not confirm that stock is correct across your catalogue. It only sees the products and steps in the journeys you set up.

Stale data can also come from caching problems or extension conflicts. See the related guides on cache serving the wrong store view and extension conflicts after an upgrade.

Questions people ask

Why are my Magento indexers stuck on Processing?

The reindex usually crashed or was killed (out of memory, database timeout or deadlock) and left the Processing flag behind. Cron not running, or a very large catalogue, can also cause it. Check that nothing is truly running, then reset and reindex.

How do I fix Magento indexers stuck on Reindex required?

Run bin/magento indexer:reindex for the affected indexer and make sure cron is running. If it returns to Reindex required, check the logs for errors and recent extension changes.

Why is my Magento price different on the category page and cart?

The category page reads from the price index, while the cart calculates the price live. If the price indexer is stuck or stale, the listing shows the old price. Reset and rebuild the price indexer.

How do I reset a stuck Magento indexer?

Run bin/magento indexer:reset <indexer_id> and then bin/magento indexer:reindex <indexer_id>. Use bin/magento indexer:status to find the id. Only reset when no reindex process is actually running.

Should Magento indexers be Update on Save or Update by Schedule?

Update by Schedule is usually better for stores with many products, as cron processes changes in batches. Update on Save reindexes during each save and can slow the admin or cause locks.

Why is my Magento stock not updating on the storefront?

The stock indexer may be stuck, cron may be stopped, or the cache may be serving old pages. Check indexer:status, confirm cron runs, reindex, then flush the cache.

Can FunnelGuard detect stuck Magento indexers?

Only partly. FunnelGuard checks that prices stay consistent along your monitored journey, which catches the typical symptom. It does not read indexer status or check stock across the catalogue.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: price_consistent.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.