Used drush to pull down and test the latest 7.x-2.x-dev, and when running updatedb the first time, it errors, and completes the second time.

$ drush dl authcache --dev
Install location sites/all/modules/contrib/authcache already exists. Do you want to overwrite it? (y/n): y
Project authcache (7.x-2.x-dev) downloaded to sites/all/modules/contrib/authcache.                                                                                        [success]
Project authcache contains 24 modules: authcache_views, authcache_varnish, authcache_search, authcache_poll, authcache_panels, authcache_page_manager, authcache_p13n, authcache_menu, authcache_forum, authcache_form, authcache_flag, authcache_field, authcache_esi, authcache_esi_debug, authcache_enum, authcache_debug, authcache_contact, authcache_comment, authcache_builtin, authcache_boost, authcache_block, authcache_ajax, authcache_usercookie, authcache.

$ drush updatedb -y
 Authcache_p13n  7001  Add table for key-value storage.
Do you wish to run all pending updates? (y/n): y
PHP Fatal error:  Class 'AuthcacheP13nDatabaseKeyValueStore' not found in /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestRouter.inc on line 111
PHP Stack trace:
PHP   1. {main}() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:0
PHP   2. drush_main() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:16
PHP   3. _drush_bootstrap_and_dispatch() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:61
PHP   4. drush_dispatch() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:92
PHP   5. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:182
PHP   6. drush_command() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:182
PHP   7. _drush_invoke_hooks() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:214
PHP   8. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:362
PHP   9. drush_core_updatedb_batch_process() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:362
PHP  10. _update_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/core.drush.inc:1160
PHP  11. drush_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/update_7.inc:226
PHP  12. _drush_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/includes/batch.inc:93
PHP  13. _drush_batch_worker() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:99
PHP  14. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:149
PHP  15. drush_update_do_one() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:149
PHP  16. authcache_p13n_update_7001() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/update_7.inc:73
PHP  17. authcache_p13n_request_router_rebuild() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/authcache_p13n.install:78
PHP  18. AuthcacheP13nDefaultRequestRouter->rebuild() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/authcache_p13n.module:1089
PHP  19. AuthcacheP13nDefaultRequestRouter->getHandlerStore() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestRouter.inc:64

Fatal error: Class 'AuthcacheP13nDatabaseKeyValueStore' not found in /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestRouter.inc on line 111

Call Stack:
    0.0006     695952   1. {main}() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:0
    0.0171    5300232   2. drush_main() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:16
    0.1172   12444200   3. _drush_bootstrap_and_dispatch() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:61
    0.2245   17756080   4. drush_dispatch() /usr/local/Cellar/drush/6.1.0/libexec/drush.php:92
    0.5806   18973712   5. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:182
    0.5806   18974136   6. drush_command() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:182
    0.5808   18974688   7. _drush_invoke_hooks() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:214
    0.5824   19040920   8. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:362
    0.5824   19041344   9. drush_core_updatedb_batch_process() /usr/local/Cellar/drush/6.1.0/libexec/includes/command.inc:362
    0.5849   19596192  10. _update_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/core.drush.inc:1160
    2.0939   92326136  11. drush_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/update_7.inc:226
    2.0958   92412120  12. _drush_batch_command() /usr/local/Cellar/drush/6.1.0/libexec/includes/batch.inc:93
    2.0960   92418280  13. _drush_batch_worker() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:99
    2.0968   92545024  14. call_user_func_array() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:149
    2.0968   92545072  15. drush_update_do_one() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/batch.inc:149
    2.0969   92546912  16. authcache_p13n_update_7001() /usr/local/Cellar/drush/6.1.0/libexec/commands/core/drupal/update_7.inc:73
    2.1193   92560984  17. authcache_p13n_request_router_rebuild() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/authcache_p13n.install:78
    2.1205   92611768  18. AuthcacheP13nDefaultRequestRouter->rebuild() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/authcache_p13n.module:1089
    2.1270   92832856  19. AuthcacheP13nDefaultRequestRouter->getHandlerStore() /sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestRouter.inc:64

Drush command terminated abnormally due to an unrecoverable error.                                            [error]
Error: Class 'AuthcacheP13nDatabaseKeyValueStore' not found in
/sandbox/portal/sites/all/modules/contrib/authcache/modules/authcache_p13n/includes/AuthcacheP13nDefaultRequestRouter.inc, line 111
The external command could not be executed due to an application error.                                       [error]
'all' cache was cleared in self                                                                                        [success]
Finished performing updates.                                                                                       [ok]

$ drush updatedb -y
 Authcache_p13n  7001  Add table for key-value storage.
Do you wish to run all pending updates? (y/n): y
Performed update: authcache_p13n_update_7001                                                                             [ok]
'all' cache was cleared in self                                                                               [success]
Finished performing updates.

Comments

vinmassaro’s picture

Issue summary: View changes

clarity on sequence

znerol’s picture

Issue summary: View changes
Status: Active » Fixed

thanks for the report. Fixed by rebuilding the registry before trying to rebuild the router: 6d6d69a.

Status: Fixed » Closed (fixed)

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