Keywords: Magento - AWS - Technical issue - Permissions
bnsupport ID: 8d98e7bf-7f26-a314-4c99-b9a7b32393a1
- Having the same type of problem as on this case:
The CPU utilization is around 70% that should be around 10% if running normally. I suspected that the problem is to do with the cron tabs and manually ran the tasks below and then truncated the cron_schedule table earlier today. Shortly after that it returned to 10% CPU utilization but about 30 minutes later jumped up to 70% again. The magento-cron.log is being written to correctly but the other two logs remain empty.
- * * * * sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli cron:run -vvv 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-cron.log #magento-cron
- * * * * sudo /opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/update/cron.php 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-update-cron2.log
- sudo /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:cron:run -vvv 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-setup-cron2.log
I have changed the cron logs owner (bitnami to daemon) and permissions (644 to 755) but no change to the empty logs and the CPU utilization remains way too high.
If running the commands above manually without sudo it returns 'Permission denied'.
Looking for help on how to set up the cron jobs cleanly and avoid this overloading of CPU.