Hello i'm trying to do a reindex via CLI but I got this error: http://prntscr.com/kon1op

  • I think reindex has done but updated data not adding in cache because of file read and write issue
    – kunj
    Commented Aug 30, 2018 at 12:09

2 Answers 2


According to the screenshot its a permission issue:

run the below command under your magento root(/var/www/html/) to fix it:

cd /var/www/html
sudo chmod 777 -R var/cache

Then run indexer:reindex.

  • Welcome. Happy Coding! Commented Aug 30, 2018 at 12:26

It's permission issue. First set permission using chmod -R 777 /var/www/html/yourproject/var/cache.Hope it works.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.