Steps to reproduce
- Install Magento
2.0.2
. (apache 2.4.18, php 7.0.4, mariadb 10.0.24) - Import products from Magento 1.7.x store.
- In Magento backend, set indexes to update on schedule.
- Run
php bin/magento indexer:reindex
.
Expected result
- All indexes reindexed.
Actual result
[~/www/dev]# bin/magento indexer:reindex -vv
[InvalidArgumentException]
There are no commands defined in the "indexer" namespace.
Exception trace:
() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:501
Symfony\Component\Console\Application->findNamespace() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:535
Symfony\Component\Console\Application->find() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:192
Symfony\Component\Console\Application->doRun() at /home/dev/public_html/dev/vendor/magento/framework/Console/Cli.php:49
Magento\Framework\Console\Cli->doRun() at /home/dev/public_html/dev/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /home/dev/public_html/dev/bin/magento:25
Workaround
- if i run
/opt/bin/php56/bin/php bin/magento indexer:reindex
indexing succeeds.
which php
print?/usr/local/bin/php