Marlon van Leeuwaarde
Marlon van Leeuwaarde

Reputation: 45

Configure Magento Cron fails

Im trying to set a magento cron by doing the follow:

crontab -u magento2 -e

After that i press i for insert the tekst:

After that i press escape and type :x! to save the file.

Then the following msg appears:

"tmp/crontab.zchprf"3L, 46rC written crontab: installing new crontab "tmp/crontab.zchprf":1: bad day-of-week errors in crontab file, can't install

Thanks for the help

Upvotes: 0

Views: 208

Answers (1)

sahil kataria
sahil kataria

Reputation: 143

cron entry taking 5 values while you have typed * on 4 locations so giving error on saving cron. Use this in your cron

 * * * * * /usr/local/bin/php /home/magento2/public_html/magento2 cron:run | grep -v "Ran jobs by schedule" >> /home/magento2/public_html/magento2/var/log/magento.cron.log

Upvotes: 0

Related Questions