Magento2 – Fix Undefined Index: Jobs in cron:run for Version 2.1.2

cronmagento2

When running:

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

I get:

[Exception]                                                                  
  Notice: Undefined index: jobs in /home/ubuntu/repo/project/vendor/magento/
               module-cron/Model/Config/Converter/Db.php on line 39  

Best Answer

In my case it was caused by some cron jobs migrated from Magento 1, in core_config_data. Magento 2 expects the format to be crontab/{groupname}/jobs/{code}, while the imported ones miss the group name (i.e. default). If that is your case you might want to delete the wrong entries in core_config_data, or update them to map the new cron jobs.

Related Topic