I have encountered an issue with Drush. I am missing a number of commands. When running a command with –debug I am told
(SymfonyComponentConsoleExceptionCommandNotFoundException) Command rq was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --debug to see relevant log messages.
however when I enter
it comes back with all of the correct database information for the site.
returns all the correct information regarding the database.
Drush version? 10.x/9.x/8.x (please be specific, and try latest release)
I have tried this on Drush 9.7.2, as well as with Drush 10.2.2. Both yield the same issue. Both Local installs, as well as trying Global install.
| Drupal version? | 9.x/8.x/7.x
| PHP version | 7.x,5.x
| OS? | Mac/Linux/Windows
To add to the above, the site itself works fine. And again, these commands above show all the correct information, so it is clearly SEEING the database. This is a local (development) build, on my local machine, under MAMP 5.7.
Further, I have attempted to use Drush to install a new instance of Drupal, which yields this result:
drush site install -vvv
(preflight) Config paths: /Users/(machine name)/vendor/drush/drush/drush.yml
(preflight) Alias paths:
(preflight) Commandfile search paths: /Users/(machine name)/vendor/drush/drush/src
(debug) Bootstrap further to find site (0.14 sec, 7.09 MB)
(debug) Trying to bootstrap as far as we can (0.14 sec, 7.16 MB)
(debug) Done with bootstrap max in Application::bootstrapAndFind(): trying to find site again. (0.14 sec, 7.16 MB)
In Application.php line 230:
Command site was not found. Pass --root or a @siteAlias in order to run Dru
at /Users/(machine name)/vendor/drush/drush/src/Application.php:230
DrushApplication->bootstrapAndFind() at /Users/(machine name)/vendor/drush/drush/src/Application.php:192
DrushApplication->find() at /Users/(machine name)/vendor/symfony/console/Application.php:235
SymfonyComponentConsoleApplication->doRun() at /Users/(machine name)/vendor/symfony/console/Application.php:147
SymfonyComponentConsoleApplication->run() at /Users/(machine name)/vendor/drush/drush/src/Runtime/Runtime.php:118
DrushRuntimeRuntime->doRun() at /Users/(machine name)/vendor/drush/drush/src/Runtime/Runtime.php:49
DrushRuntimeRuntime->run() at /Users/(machine name)/vendor/drush/drush/drush.php:72
require() at /Users/(machine name)/vendor/drush/drush/drush:4
Which seems to be saying that it can’t find the site… which is understandable, as I’m instructing it to install a site.
Something is clearly wrong. I’m hoping someone can help me sort this out.