command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line
When I was trying to run
php bin/magento indexer:reindex.
And I found I get the exactly same error when I tried to run the
php bin/magento lines, I checked the post Error after magento upgrade, and have already changed the permission of generated folder, and then give bin/magento file to 744 (executable), and I used ls -l, the ownership of the folder is below to my account. I am using Magento 2.2, So there is no
di folder under
So why does this error happen ?
Thanks for any advises.