Scheduled index not working / Products show after running manual index
-
02-10-2020 - |
Question
I have a Magento CE 2.1 site. Products are not showing up until after a manual index is run.
Index is set to run on schedule. Cron is running
*/1 * * * * php -f /path/to/Magento2.1CE/bin/magento cron:run &> /dev/null
*/1 * * * * php -f /path/to/Magento2.1CE/update/cron.php &> /dev/null
*/1 * * * * php -f /path/to//Magento2.1CE/bin/magento setup:cron:run &> /dev/null
Tested it this way
php -f /path/to/Magento2.1CE/bin/magento cron:run
Ran jobs by schedule.
Solution
Khoa started me on this answer:
This is a shared server from Nexcess and I am under the impression there is multiple versions of PHP running.
The indexing started to work when I switched to
/opt/nexcess/php56u/root/usr/bin/php
Which I easily found like this
$ which php
/opt/nexcess/php56u/root/usr/bin/php
Indexing is working fine now.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange