0

After moving a site to a new server, drush cron stopped working and now I am getting the following error:

[Symfony\Component\Console\Exception\CommandNotFound]
Command "cron" is not defined.

What am I missing?

3
  • I suppose, you already checked the version of Drush, that the root exists and a site is defined for the URI? Commented Mar 10, 2018 at 0:37
  • yes, I am running drush 9.2, I check the root path and the URI
    – Emil Orol
    Commented Mar 10, 2018 at 1:21
  • To make things work, locally on my computer it works
    – Emil Orol
    Commented Mar 10, 2018 at 1:21

1 Answer 1

0

The issue was fairly simple to solve.

I had forgotten to create a settings.php for each site. I was able to find out by running the following command:

drush --local -d -r /var/www/testproject/build/html status

And from the output I was able to see:

[debug] Could not find a Drupal settings.php file at sites/default/settings.php. [0.14 sec, 10.8 MB]

That was it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.