0

I am trying to setup cron for a magento 2 installation made through composer.

I have tried to manually add the following to my crontab:

* * * * * www-data php /path/to/m2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /path/to/m2/var/log/magento.cron.log
* * * * * www-data php /path/to/m2/update/cron.php >> /path/to/m2/var/log/update.cron.log
* * * * * www-data php /path/to/m2/bin/magento setup:cron:run >> /path/to/m2/var/log/setup.cron.log

If I then check the /path/to/m2/var/log/update.cron.log I can see the following message:

Could not open input file: /path/to/m2/update/cron.php

Obviously, because the folder /path/to/m2/update does not exist.

I am not sure why the folder and cron.php file is missing. Is there some bin/magento command that I have missed?

  • can check a file and folder permission of /update directory – Camit1dk Nov 3 '18 at 6:31
  • @Camit1dk there is no update directory like I explained in my question? – Cyclonecode Nov 3 '18 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.