当我尝试从命令行运行 Drush 时,出现以下错误:
Drush command terminated abnormally due to an unrecoverable error
我不确定为什么会发生这种情况,我无法弄清楚它有什么问题。当我运行 drush -d -v status 时,我得到以下输出:

$ drush -d -v status

Bootstrap to phase 0. [0.04 sec, 1.87 MB][bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 1.98 MB] [bootstrap]

Cache HIT cid: 6.2.0-commandfiles-0-db3247e83fac7ae8173ddf4f9e97733a [0.05 sec, 2[MB][debug]

Bootstrap to phase 0. [0.15 sec, 5.25 MB][bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.19 sec, 5.25 MB] [bootstrap]

Initialized Drupal 7.35 root directory at /home/cms/production/website [0.21 sec, 6.14 MB][notice]

Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.21 sec, 6.15 MB][bootstrap]

Initialized Drupal site default at sites/default [0.21 sec, 6.15 MB][notice]

Cache MISS cid: 6.2.0-install_profile-66ecfeb9791a023150773849f1550c5d [0.22 sec, 6.15 MB][debug]

Cache HIT cid: 6.2.0-commandfiles-2-90b5571ff64221f80c3320ec33b2ed28 [0.22 sec, 6.15 MB][debug]

Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.22 sec, 6.44 MB][bootstrap]

Drush command terminated abnormally due to an unrecoverable error. [0.25 sec, 7.61 MB][error]

想知道是否有人遇到过这个问题并找到了解决方案。

最佳答案

  • 检查 Drupal 中看门狗页面的错误。如果站点产生错误 drush 命令将失败。
  • 如果您的站点使用特殊配置(不在站点/默认下),您应该在每个 drush 命令中添加“-l domain.name”。
  • 关于Drupal Drush : Drush command terminated abnormally due to an unrecoverable error,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32380388/

    10-12 15:40