I recently installed a new Magento 2.2.6 website on a VPS server. Everything seemed to install correctly. The issue I have now is the logs in the var folder are not being populated (update.cron.log, setup.cron.log, magento.cron.log) and the MySQL Database cron_schedule has almost all of the scheduled tasks marked as missed. These are the settings in Magento admin under store>configuration>advanced>system>cron:
Schedule:15
Schedule ahead:20
missed: 45
history 10
success lifetime: 60
failure Lifetime: 600
Use separate process: No
I had an old Magento 2.1 site on a shared host which I had to cancel due to lack of SSL Renewal. The Cron Jobs all worked properly the cron_schedule table populated with all success and the log files are populated. I can not figure out what is wrong. The file and folder permissions are correct as far as I know (var folder 777, var/log 777, all cron.log files 644) Please help this is driving me crazy.
Best Answer
As you mentioned you have setup Magento in new VPS server.
so maybe you missed to set up cron in
crontab
please checkcrontab -l
from root directory via ssh.Did you see cron setup there? if not then please use
crontab -e
to setup cron incrontab
and paste below code there.for more details follow below link
https://devdocs.magento.com/guides/v2.2/config-guide/cli/config-cli-subcommands-cron.html
I think you should install free magento2 extension to check your cron status if not installed where you can track your cron
https://www.wyomind.com/cron-scheduler-magento.html