cancel
Showing results for 
Search instead for 
Did you mean: 

Cron job not running

Cron job not running

I am running Magento 2.4.2 and Centos 7.

 

My Magento cron job is not running which I installed as the Magento file system owner via the command bin/magento cron:install

 

I also have a cron job run by root which executes system routines and it runs successfully.

 

I added the following command to the root cron job and the commands executed correctly but I ten started to get permissions issues on the log files in /var/logs

 

* * * * * [path]php -f [store root]/bin/magento cron:run >> [store root]/var/log/magento.cron.log 2>&1;

Any ideas? What should I be doing to get my cron jobs to run correctly?

1 REPLY 1

Re: Cron job not running

Hi @skinnybloke,

 

You can grant permissions to your entire project. If you only give permission to each folder it will ask permission whenever a new folder is created.

 

Hope this can help you! Let me know if you need further assistance.

________

If issue solved, Click Kudos & Accept as Solution.

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/