- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cron jobs are not working
I cannot get Cron jobs to work.
The cron jobs are:
9,17,34,59 * * * * /opt/cpanel/ea-php70/root/usr/bin/php /home/username/public_html/update/cron.php >> /home/username/public_html/var/log/update.cron.log
0,22,34,52 * * * * /opt/cpanel/ea-php70/root/usr/bin/php /home/username/public_html/bin/magento setup:cron:run >> /home/username/public_html/var/log/setup.cron.log
5,18,41,46 * * * * /opt/cpanel/ea-php70/root/usr/bin/php /home/username/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/username/public_html/var/log/magento.cron.log
The commands are correct and I've tried running them manually with no results.
The logs are not getting updated when I run them either so I have no error message to work with.
In addition to running the commands manually I have run the following and got this output:
1. [user@domain public_html]$ php bin/magento setup:cron:run -v
ea-php-cli Copyright 2017 cPanel, Inc.
2. [user@domain public_html]$ php update/cron.php -v
ea-php-cli Copyright 2017 cPanel, Inc.
The output came back immediately as if the command was not run for these two
3. [user@domain public_html]$ php bin/magento cron:run -v
ea-php-cli Copyright 2017 cPanel, Inc.
Ran jobs by schedule.
This took about 1 - 2 seconds to run
I also tried php -d memory_limit=-1 for the commands in case it was a memory issue
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Cron jobs are not working
Hi @bikermanirl,
Are you sure you PHP CLI is running properly?
You should get at least an error if you execute those files.
What is the result when you execute:
/opt/cpanel/ea-php70/root/usr/bin/php -v