fballiano / docker-magento2

Cluster ready Magento2 + Varnish 7 + PHP 8.1 + Redis 6.2 + Elasticsearch 7.17 + SSL
355 stars 164 forks source link

Installation directory permissions issue #30

Closed thomas-seres closed 1 year ago

thomas-seres commented 5 years ago

Hi! During the installation I have an issue, do you have an idea ? I trie to connect to the apache container and give full permissions on generated folder, but the issue persist : [2019-07-16 23:54:09] main.CRITICAL: The path "/var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/CollectionFactory.php.31" cannot be renamed into "/var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/CollectionFactory.php" Warning!rename(/var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/CollectionFactory.php.31,/var/www/html/generated/code/Magento/Catalog/Model/ResourceModel/Product/CollectionFactory.php): No such file or directory Class Magento\Catalog\Model\ResourceModel\Product\CollectionFactory generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. [] []

fballiano commented 5 years ago

could you try with the new updated docker-compose file that I just released? it uses different consistency configurations that may have an impact of the directory permissions