cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 cron - third party extenion cron not running

Magento 2 cron - third party extenion cron not running

Quite a long post so I hope you'll stick with me -

I hope someone here can help - this issue has been driving me crazy fro the past couple of days.

The issue is that some of the third party extension crons aren't running.

I have the swissup easy banner extension which includes a stats section. Over time the stats database table has bloated and was causing a major slowdown in the website.
The cron is suppose to optimize the table daily but it's not running.

Speaking with the developer, they said the cron should run in the default cron group.

I have several other third party crons also not running.

I'm completely confused by it all.

Please help if you can.

Thank you

 

If I explain how I have the cron configuration setup on my server first.

In magento 2 admin I have the cron set up as below:

Cron configuration options for group:index
generate shcedules every 15
scheduels ahead for 1
missed if not run within 15
history cleanup every 15
sucess history lifetime 60
failure history lifetime 4320
use separate process: yes

Cron configuration options for group:default
generate shcedules every 15
scheduels ahead for 20
missed if not run within 15
history cleanup every 10
sucess history lifetime 60
failure history lifetime 4320
use separate process: no

Cron configuration options for group:scconnector
generate shcedules every 1
scheduels ahead for 4
missed if not run within 2
history cleanup every 10
sucess history lifetime 60
failure history lifetime 600
use separate process: yes


Cron configuration options for group:consumers
generate shcedules every 15
scheduels ahead for 20
missed if not run within 15
history cleanup every 10
sucess history lifetime 60
failure history lifetime 600
use separate process: yes

Cron configuration options for group:ddg_automtion
generate shcedules every 1
scheduels ahead for 4
missed if not run within 2
history cleanup every 10
sucess history lifetime 120
failure history lifetime 600
use separate process: yes

Cron configuration options for groupSmiley Tonguerolabels_reindex
generate shcedules every 1
scheduels ahead for 4
missed if not run within 2
history cleanup every 10
sucess history lifetime 60
failure history lifetime 600
use separate process: no

Cron configuration options for group:yotpo_yotpo
generate shcedules every 1
scheduels ahead for 4
missed if not run within 2
history cleanup every 10
sucess history lifetime 60
failure history lifetime 600
use separate process: yes

- - - On the server (shared) I have the cron set up as:

/usr/local/php71/bin/php-cli /home/u2-pszrz5ba8428/www/website.co.uk/public_html/bin/magento cron:run | grep -v 'Ran jobs by schedule' >> '/home/u2-pszrz5ba8428/www/website.co.uk/public_html/var/log/magento.cron.log', '/usr/local/php71/bin/php-cli /home/u2-pszrz5ba8428/www/website.co.uk/public_html/update/cron.php >> /home/u2-pszrz5ba8428/www/website.co.uk/public_html/var/log/update.cron.log', '/usr/local/php71/bin/php-cli /home/u2-pszrz5ba8428/www/website.co.uk/public_html/bin/magento setup:cron:run >> /home/u2-pszrz5ba8428/www/website.co.uk/public_html/var/log/setup.cron'

Server cron interval:
42 10 * * *

 

Cron email received is:

grep: /usr/local/php71/bin/php-cli /home/u134-xk6jpykhywev/www/website.co.uk/public_html/update/cron.php >> /home/u134-xk6jpykhywev/www/website.co.uk/public_html/var/log/update.cron.log,: No such file or directory
grep: /usr/local/php71/bin/php-cli /home/u134-xk6jpykhywev/www/website.co.uk/public_html/bin/magento setup:cron:run >> /home/u134-xk6jpykhywev/www/website.co.uk/public_html/var/log/setup.cron: No such file or directory

 

 

1 REPLY 1

Re: Magento 2 cron - third party extenion cron not running

You will need to register the `bin/magento cron:run` in your system cron job. Magento will not automatically run this command nor the job registered in the cron_scheduled table. I have the same issue the I can see there are contents in job_scheduled table but not get executed, the status remains pending.