magento2: Crons dont seem to be running
Steps to reproduce
- Install Magento from
developbranch. 2.My hosts set up crons as per documentation.
Expected result
- crons to run.
Actual result
1.No crons are updating.
File paths are set correct also checked by my hosts
php -c /usr/local/lib/php.ini /home/xxxxxxxx/public_html/bin/magento cron:run | grep -v “Ran jobs by schedule” >> /home/xxxxxxxx/public_html/var/log/magento.cron.log
php -c /usr/local/lib/php.ini /home/xxxxxxxx/public_html/update/cron.php >> /home/xxxxxxxx/public_html/var/log/update.cron.log
php -c /usr/local/lib/php.ini /home/xxxxxxxx/public_html/bin/magento setup:cron:run >> /home/xxxxxxxx/public_html/var/log/setup.cron.log
Any idea why they are not running.
magento cron log bin/magento must be run as a CLI application Content-type: text/html; charset=UTF-8
update cron.log
Content-type: text/html; charset=UTF-8
Fatal error: Class ‘Magento\Update\PermissionInfo’ not found in /home/XXXXXX/public_html/update/app/code/Magento/Update/CronReadinessCheck.php on line 156
setup cron.log bin/magento must be run as a CLI applicationContent-type: text/html; charset=UTF-8
bin/magento must be run as a CLI application
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (5 by maintainers)
Most upvoted comments
- Create a backup of magento database
- Create new database, m2second example.
- Import dump from first step to new database ( m2second )
- unpack Magento-CE-2.1.0.zip to another folder, /home/XXXXXX/public_html/m2test example
- Install Magento from /home/XXXXXX/public_html/m2test folder and use m2second database during installation for this instance
- reproduce this issue in /home/XXXXXX/public_html/m2test instance.