I have ran bin/magento cron:install and then show
Crontab has been generated and saved
but I run crontab -l, nothing was written into cron, any ideas?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
I am also facing the same issue cron is working fine in local but not working in server. so I used the below method to test cron is working or not.
var/log/setup.cron.log.You can watch these log files.
select * from cron_schedule.It keeps track of each cron job, when it is run, when it is finished if it is finished.
You can run the following commands on your command line, and see if they are running properly without any error.
/usr/bin/php /var/www/prod/bin/magento cron:run | grep -v "Ran jobs by schedule" /usr/bin/php /var/www/prod/update/cron.php /usr/bin/php /var/www/prod/bin/magento setup:cron:run
For more reference see this doc Magento Devdocs
I hope it helps!