I’m hoping someone can help me. We’ve been working on this problem and it turns out Drush is unable to query my database. Here’s the log.
Drush Launcher Version: 0.10.1 ROOT: /Users/myusername/Sites/ed-git DRUSH VERSION: 10 DRUPAL ROOT: /Users/myusername/Sites/ed-git/web COMPOSER ROOT: /Users/myusername/Sites/ed-git VENDOR ROOT: /Users/myusername/Sites/ed-git/vendor [preflight] Config paths: /Users/myusername/Sites/ed-git/vendor/drush/drush/drush.yml [preflight] Alias paths: /Users/myusername/Sites/ed-git/web/drush/sites,/Users/myusername/Sites/ed-git/drush/sites [preflight] Commandfile search paths: /Users/myusername/Sites/ed-git/vendor/drush/drush/src [debug] Bootstrap further to find cex [0.08 sec, 9.52 MB] [debug] Trying to bootstrap as far as we can [0.08 sec, 9.52 MB] [debug] Drush bootstrap phase: bootstrapDrupalRoot() [0.08 sec, 9.52 MB] [debug] Change working directory to /Users/myusername/Sites/ed-git/web [0.08 sec, 9.52 MB] [debug] Initialized Drupal 9.3.9 root directory at /Users/myusername/Sites/ed-git/web [0.08 sec, 9.52 MB] [debug] Drush bootstrap phase: bootstrapDrupalSite() [0.08 sec, 9.53 MB] [debug] Initialized Drupal site default at sites/default [0.09 sec, 9.69 MB] [debug] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.09 sec, 9.69 MB] [debug] Add service modifier [0.09 sec, 9.94 MB] [debug] Unable to connect to database with message: SQLSTATE[HY000] [2002] No such file or directory. More debug information is available by running drush status
. This may occur when Drush is trying to bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the –uri parameter on the command line. See drush topic docs-aliases
for details. [0.09 sec, 10.16 MB] [debug] Bootstrap phase bootstrapDrupalDatabase() failed to validate; continuing at bootstrapDrupalConfiguration() [0.09 sec, 10.15 MB] [debug] Done with bootstrap max in Application::bootstrapAndFind(): trying to find cex again. [0.09 sec, 10.15 MB]
In Application.php line 244:
[SymfonyComponentConsoleExceptionCommandNotFoundException]
Command cex was not found. Drush was unable to query the database. As a res
ult, many commands are unavailable. Re-run your command with –debug to see
relevant log messages.
Exception trace: at /Users/myusername/Sites/ed-git/vendor/drush/drush/src/Application.php:244 DrushApplication->bootstrapAndFind() at /Users/myusername/Sites/ed-git/vendor/drush/drush/src/Application.php:196 DrushApplication->find() at /Users/myusername/Sites/ed-git/vendor/symfony/console/Application.php:237 SymfonyComponentConsoleApplication->doRun() at /Users/myusername/Sites/ed-git/vendor/symfony/console/Application.php:149 SymfonyComponentConsoleApplication->run() at /Users/myusername/Sites/ed-git/vendor/drush/drush/src/Runtime/Runtime.php:118 DrushRuntimeRuntime->doRun() at /Users/myusername/Sites/ed-git/vendor/drush/drush/src/Runtime/Runtime.php:48 DrushRuntimeRuntime->run() at /Users/myusername/Sites/ed-git/vendor/drush/drush/drush.php:72 require() at /Users/myusername/Sites/ed-git/vendor/drush/drush/includes/preflight.inc:18 drush_main() at phar:///usr/local/bin/drush/bin/drush.php:143 require() at /usr/local/bin/drush:14