- Issue created by @drupaldevGirl
- Status changed to Postponed: needs info
4 months ago 12:54pm 10 September 2024 Drush is a separate project, which is supported at https://github.com/drush-ops/drush/issues. If you have determined this is a Drush problem then that is the place to report a bug.
- 🇮🇳India sourav_paul Kolkata
@cilefen I also faced the same issue on D10.1.8 with Drush 12.5.3, even no other custom Drush command is working.
Here I'm sharing the output along with the drush command:
1.
I've created this command to update the node of account content typelando drush -v account:update-roles-based-subscription [info] Drush bootstrap phase: bootstrapDrupalRoot() [info] Change working directory to /app/docroot [info] Initialized Drupal 10.1.8 root directory at /app/docroot [info] Drush bootstrap phase: bootstrapDrupalSite() [info] Initialized Drupal site default at sites/default [info] Drush bootstrap phase: bootstrapDrupalConfiguration() [info] Drush bootstrap phase: bootstrapDrupalDatabase() [info] Successfully connected to the Drupal database. [info] Drush bootstrap phase: bootstrapDrupalFull() In Application.php line 657: [Symfony\Component\Console\Exception\NamespaceNotFoundException] There are no commands defined in the "account" namespace. Exception trace: at /app/vendor/symfony/console/Application.php:657 Symfony\Component\Console\Application->findNamespace() at /app/vendor/symfony/console/Application.php:708 Symfony\Component\Console\Application->find() at /app/vendor/drush/drush/src/Application.php:235 Drush\Application->bootstrapAndFind() at /app/vendor/drush/drush/src/Application.php:191 Drush\Application->find() at /app/vendor/symfony/console/Application.php:262 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:174 Symfony\Component\Console\Application->run() at /app/vendor/drush/drush/src/Runtime/Runtime.php:110 Drush\Runtime\Runtime->doRun() at /app/vendor/drush/drush/src/Runtime/Runtime.php:40 Drush\Runtime\Runtime->run() at /app/vendor/drush/drush/drush.php:139 require() at /app/vendor/drush/drush/drush:4 include() at /app/vendor/bin/drush:119
2.
I've created this drush command to remove a role from userlando drush -v user:paid-money-role-removal [info] Drush bootstrap phase: bootstrapDrupalRoot() [info] Change working directory to /app/docroot [info] Initialized Drupal 10.1.8 root directory at /app/docroot [info] Drush bootstrap phase: bootstrapDrupalSite() [info] Initialized Drupal site default at sites/default [info] Drush bootstrap phase: bootstrapDrupalConfiguration() [info] Drush bootstrap phase: bootstrapDrupalDatabase() [info] Successfully connected to the Drupal database. [info] Drush bootstrap phase: bootstrapDrupalFull() In Application.php line 725: [Symfony\Component\Console\Exception\CommandNotFoundException] Command "user:paid-money-role-removal" is not defined. Did you mean one of these? use user-add-role user-block user-cancel user-create user-information user-login user-password user-remove-role user-unblock user:block user:cancel user:create user:information user:login user:password user:role:add user:role:remove user:unblock Exception trace: at /app/vendor/symfony/console/Application.php:725 Symfony\Component\Console\Application->find() at /app/vendor/drush/drush/src/Application.php:235 Drush\Application->bootstrapAndFind() at /app/vendor/drush/drush/src/Application.php:191 Drush\Application->find() at /app/vendor/symfony/console/Application.php:262 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:174 Symfony\Component\Console\Application->run() at /app/vendor/drush/drush/src/Runtime/Runtime.php:110 Drush\Runtime\Runtime->doRun() at /app/vendor/drush/drush/src/Runtime/Runtime.php:40 Drush\Runtime\Runtime->run() at /app/vendor/drush/drush/drush.php:139 require() at /app/vendor/drush/drush/drush:4 include() at /app/vendor/bin/drush:119
- 🇮🇳India sourav_paul Kolkata
This issue was due to missing drush.services.yml file
https://github.com/drush-ops/drush/issues/6116 Commands loaded with
drush.services.yml
will break in Drush 13. It is important to read the release notes and upgrade guides. As Drush is a separate project, I am closing this.