Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoload error: We can't read some files #192

Closed
shystruk opened this issue Jun 14, 2018 · 1 comment
Closed

Autoload error: We can't read some files #192

shystruk opened this issue Jun 14, 2018 · 1 comment

Comments

@shystruk
Copy link

shystruk commented Jun 14, 2018

Hi,

I tried to run - bash m-bin-magento setup:di:compile and got this error.

Autoload error: We can't read some files that are required to run the Magento application. This usually means file permissions are set incorrectly.

I found some solution here https://magento.stackexchange.com/questions/164422/magento-2-getting-autoload-error/164434.

find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;
find ./var -type d -exec chmod 777 {} ;
find ./pub/media -type d -exec chmod 777 {} ;
find ./pub/static -type d -exec chmod 777 {} ;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

and it causes me another error:

bash: /../vagrant-magento/magento2ce/bin/magento: Permission denied

I do this chmod +x bin/magento and previous error returns back :)

Any ideas?
Thanks

@shystruk
Copy link
Author

The problem was in shh access. I cloned the repository with HTTPS and had this issue. When I cloned with SSH the issue has passed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant