cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulty setting up Cron on Magento 2

Difficulty setting up Cron on Magento 2

I am trying to install extension in M2...at the Readiness check, I am stuck with the cron error, I have done everything but still the same problem. I am running localhost on Ubuntu 16.04 with php7....

 

cron error am getting

Check Cron Scripts

Cron script readiness check failed. Hide detail

Error from Setup Application Cron Script:
SQLSTATE[HY000] [2002] No such file or directory

For additional assistance, see cron scripts help.

 

below is the cron code i set up...kindly check and help me resolve it. thank you


php -c /etc/php/7.0/cli /opt/lampp/htdocs/magento2/bin/magento cron:run

php -c /etc/php/7.0/cli /opt/lampp/htdocs/magento2/update/cron.php
php -c /etc/php/7.0/cli /opt/lampp/htdocs/magento2/bin/magento setup:cron:run

 

Screenshot from 2016-08-20 21-48-46.png

1 REPLY 1

Re: Difficulty setting up Cron on Magento 2

Hi,

 

You have tried to run the code from shell?

 

cron you for example open the file from the specified directory.

 

like:

 

tail /opt/lampp/htdocs/magento2/update/cron.php

brendan

 

Developer