Fatal error: Uncaught RuntimeException: Can't create directory /opt/bitnami/apps/magento/htdocs/generated/code/Magento/Directory/Helper/Data/. Class Magento\Directory\Helper\Data\Proxy 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. in /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Code/Generator.php:138 Stack trace: #0 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass('Magento\\Directo...') #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load('Magento\\Directo...') #2 [internal function]: spl_autoload_call('Magento\\Directo...') #3 /opt/bitnami/apps/mag in /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/Code/Generator.php on line 138