Hi.

I have several sites, and recently got on one of them this error:
"Drush command terminated abnormally due to an unrecoverable error."

Another site (an exact copy of this one) is working fine.

I tried looking for exit() as described here on similar issues, but could not find anything unusual.

Any idea how to sort this out?

Thanks!

Comments

greg.1.anderson’s picture

Category: bug » support
Status: Active » Fixed

Please read the section Please do the following when submitting an issue to drush for guidance.

greg.1.anderson’s picture

Priority: Critical » Normal
PvO’s picture

Is this "Master" also the for windows users like the one on http://drush.ws/drush_windows_installer ?

greg.1.anderson’s picture

Yes. The Windows installer was sync'ed with HEAD on master on 23 November. Pull from master to update Drush on Windows prior to the next reroll of the installer.

PvO’s picture

Sorry, I do not know what you mean by

Pull from master to update Drush on Windows prior to the next reroll of the installer.

Do you mean upgrading DRUSH?
Would you be so kind to esplain, maybe give the DRUSH command?

greg.1.anderson’s picture

Sorry, I can't support Drush upgrades on Windows. Please see the git instructions for details.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

SyRenity’s picture

Status: Closed (fixed) » Active

Hi.

Sorry for delay in reply.

Following the reference to create issue guide:

* Looked at rest of similar issues - no solution that I can use as I don't know which module causes the issue

* Tried the head version - still happens

* Below is result of running Drush in debug mode:

Bootstrap to phase 0. [0.01 sec, 3.18 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.37 MB] [bootstrap]
Cache HIT cid: 5.0-dev-commandfiles-0-5a34d4841592c0e61cde02a7fe38c1d3 [0.02 sec, 3.39 MB]                                                            [debug]
Bootstrap to phase 0. [0.05 sec, 7.33 MB]                                                                                                         [bootstrap]
Bootstrap to phase 6. [0.05 sec, 7.33 MB]                                                                                                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 7.33 MB]                                                                        [bootstrap]
Initialized Drupal 6.22 root directory at /var/www/sandbox/site [0.07 sec, 8.87 MB]                                                                [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.07 sec, 8.87 MB]                                                                        [bootstrap]
Initialized Drupal site default at sites/default [0.07 sec, 8.87 MB]                                                                                 [notice]
Cache HIT cid: 5.0-dev-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.08 sec, 8.88 MB]                                                            [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.08 sec, 8.88 MB]                                                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.09 sec, 8.92 MB]                                                                    [bootstrap]
Successfully connected to the Drupal database. [0.09 sec, 8.92 MB]                                                                                [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.09 sec, 9.26 MB]                                                                        [bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.23 sec, 28.01 MB]                                                           [error]

* Getting the drush status:

Bad site:

Bootstrap to phase 0. [0.01 sec, 3.18 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.37 MB] [bootstrap]
Cache HIT cid: 5.0-dev-commandfiles-0-5a34d4841592c0e61cde02a7fe38c1d3 [0.03 sec, 3.39 MB]                                                            [debug]
Bootstrap to phase 0. [0.06 sec, 7.33 MB]                                                                                                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.08 sec, 7.33 MB]                                                                        [bootstrap]
Initialized Drupal 6.22 root directory at /var/www/sandbox/site [0.1 sec, 8.86 MB]                                                                 [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.1 sec, 8.87 MB]                                                                         [bootstrap]
Initialized Drupal site default at sites/default [0.11 sec, 8.87 MB]                                                                                 [notice]
Cache HIT cid: 5.0-dev-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.12 sec, 8.88 MB]                                                            [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.12 sec, 8.87 MB]                                                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.12 sec, 8.91 MB]                                                                    [bootstrap]
Successfully connected to the Drupal database. [0.12 sec, 8.92 MB]                                                                                [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.13 sec, 9.26 MB]                                                                        [bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.28 sec, 28 MB]                                                              [error]

Good site:

 Drupal version         :  6.22                    
 Site URI               :  http://default          
 Database driver        :  mysqli                  
 Database hostname      :  127.0.0.1               
 Database username      :  b2b                     
 Database name          :  b2b                     
 Database               :  Connected               
 Drupal bootstrap       :  Successful              
 Drupal user            :  Anonymous               
 Default theme          :  site                  
 Administration theme   :  0                       
 PHP configuration      :  /etc/php.ini            
 Drush version          :  5.0-dev                 
 Drush configuration    :                          
 Drush alias files      :                          
 Drupal root            :  /var/www/sandbox/site_biz 
 Site path              :  sites/default           
 File directory path    :  sites/default/files     

Thanks in advance!

greg.1.anderson’s picture

Unless you want to step through the bootstrap in a debugger, the only thing I can suggest is disable about half the modules in the site, and try to isolate which one is causing the problem (enabling / disabling different modules after each test).

SyRenity’s picture

How can I use the debugger? Any guidelines for this?

Thanks.

greg.1.anderson’s picture

Sorry, I don't support php debuggers. If you are new to php debugging, then maybe divide-and-conquer will be a more productive technique. Good luck.

jonhattan’s picture

Status: Active » Fixed

Typically this happens when a module does a drupal_goto in hook_init unconditionally. In such a case you need to identify the module and ask in its queue to fix it. See #1230132: drupal_goto() kills drush if called in hook_init()

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.