cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Reindex

Unable to Reindex

hello,

I am using magento 2.1.5 and trying to reindex via SSH putty, i was tried by the command 'bin/magento indexer:reindex' and also tried with 'php bin/magento indexer:reindex'  but it is not working. The result is here. 


*****@*****.com [~]# bin/magento indexer:reindex
-bash: bin/magento: No such file or directory
*****@*****.com [~]# php bin/magento indexer:reindex
Could not open input file: bin/magento
*****@*****.com [~]#

 

download (1).png

 

 

Nayeem
2 REPLIES

Re: Unable to Reindex

What is the path of your installation? You are in ~ (you home), try php /var/www/html/bin/magento indexer:reindex or php [your magento path]/bin/magento indexer:reindex

Re: Unable to Reindex

Hi,

Go to the root directory of Magento and execute your command. 

  

sudo php bin/magento indexer:reindex -v

this will display the error, trace the error and fix the issue or you can paste error here. If still found the same issue use the following

1. remove var/di, var/generation, var/cache 

2. Recompile the Magento 

3. Clear the cache and then try again.