magento2: Crons dont seem to be running

Steps to reproduce

  1. Install Magento from develop branch. 2.My hosts set up crons as per documentation.

Expected result

  1. 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

  1. Create a backup of magento database
  2. Create new database, m2second example.
  3. Import dump from first step to new database ( m2second )
  4. unpack Magento-CE-2.1.0.zip to another folder, /home/XXXXXX/public_html/m2test example
  5. Install Magento from /home/XXXXXX/public_html/m2test folder and use m2second database during installation for this instance
  6. reproduce this issue in /home/XXXXXX/public_html/m2test instance.