PHP Version 7.4.28
I have been trying to set up my cron jobs and can’t manage to do so. I also can not figure how to trigger commands manually just to make sure my cron path would be correct.
By looking around, I found that this line should be triggering the sending of emails correctly:
php home/bitnami/stack/mautic/bin/console mautic:emails:send
However, I am getting hit with some errors that I can not solve alone.
PHP Warning: fopen(/opt/bitnami/mautic/var/cache/prod/../run/sf.mautic-emails-send.f8887da39a17dfb1ee96a61884260c394951b7a56925ffc98f03399e9f5028fa.lock): failed to open stream: Permission denied in /opt/bitnami/mautic/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 151 PHP Warning: flock() expects parameter 1 to be resource, bool given in /opt/bitnami/mautic/app/bundles/CoreBundle/Command/ModeratedCommand.php on line 152 Failed to lock /opt/bitnami/mautic/var/cache/prod/../run/sf.mautic-emails-send.f8887da39a17dfb1ee96a61884260c394951b7a56925ffc98f03399e9f5028fa.lock. Script in progress. Can force execution by using --bypass-locking.
No logs are being registered in Mautic itself
These are the commands variations that I have tried as it looked like maybe a permission issue:
sudo php home/bitnami/stack/mautic/bin/console mautic:emails:send sudo php home/bitnami/stack/mautic/bin/console mautic:emails:send --bypass-locking
However, while they don’t create errors, no pending emails from my Mautic instance is getting sent.
Does anyone have any idea how I can make this one work?
I’m also curious if this cron job would be correct if the command above was working or if there’s anything I should add:
- 5 php home/bitnami/stack/mautic/bin/console mautic:emails:send
Thank you for your time