Keywords: Magento - Microsoft Azure - Technical issue - Permissions
bnsupport ID: 6c7b9e6d-7c02-4efb-47af-f601e44cbe97
after changing to production mode and enabling a custom SSL Certificate I encountered the following error.
When restarting the Server (e.g. for rolling back to a previous backup) the website always greets me with the error in the title.
I did some research and the following command resolves the problem, however only for the active instance. After restarting the Server the error persists and can be resolved with the same commands again.
The commands are:
sudo chown daemon:daemon -R /opt/bitnami/apps/magento/htdocs
sudo chmod g+w -R /opt/bitnami/apps/magento/htdocs
sudo bin/magento-cli cache:clean
sudo rm -rf var/cache/*
sudo /opt/bitnami/ctlscript.sh restart
As written before, this only resolves the problem as long as the server is not being restarted.
I also tried the troubleshooting as mentioned in the following community thread:
This, however, did not resolve the error.
Any support would be greatly appreciated.