Description
I have setup a new Magento store and have been adding products. I have recently noticed that some products are not showing up as out of stock on the front end despite being properly added in the admin panel (i.e. correct inventory, categories etc). Opening and saving these products a few times in the backend fixes this issue. Another way to fix this issue is manually running the reindex command from the SSH. All this time, the crons are properly running and according to the admin panel, the reindex is happening every minute.
Preconditions
- Nginx, PHP-FPM, MariaDB, CentOS 7
- Magento 2.2.4
Steps to reproduce
- Add some products.
- Some of the them will show up as out of stock.
- Reindex manually and they will show up as in stock.
Expected result
- Products should show up in stock without manual reindex.
Actual result
- Products only show up in stock after manual reindex.
I have seem two similar issues on StackExchange as well and none of them have gotten a proper answer:
https://magento.stackexchange.com/questions/150656/new-products-not-showing-until-manually-reindexing-although-cron-is-running
https://magento.stackexchange.com/questions/1177/products-seemingly-randomly-disappearing-until-reindex