Looks like #644126: drush loads duplicate command files which has been fixed some time ago.

With Drush 5.10.0.

Modules should be able to be duplicated in /profiles/ and /sites/all/modules/ as in /sites/example.org/modules/. And drush should take care of that.

Impact:

  • Some sites, at least Openatrium ones ("sites/all/modules" vs "profiles/openatrium/modules"), cannot migrate between platforms.
  • Importing sites into aegir fails if they contain one or more duplicated modules between the platform (sites/all/modules) and their site's directory (sites/example.org/modules).
  • Maybe some migrations and backups with Provision CiviCRM.

Example:

Drush command terminated abnormally due to an unrecoverable error. Error: Cannot redeclare l10n_update_drush_command() (previously declared in /srv/aegir/platforms/drupal-6-2013.11.21-prod/sites/all/modules/contrib/l10n_update/l10n_update.drush.inc:12) in /srv/aegir/platforms/drupal-6-2013.11.21-prod/profiles/openatrium/modules/l10n/l10n_update/l10n_update.drush.inc, line 30

Internal reference numbers:

  • redmine 12563 (openatrium migration)
  • redmine 13143 (openatrium migration)
  • redmine 13206 (backup in aegir with provision_civicrm)

Upstream:

Comments

j0nathan’s picture

Internal reference number redmine 12563.

j0nathan’s picture

When deleting the module in "profiles/openatrium/modules/l10n/l10n_update", then another error in migration:

Drush command terminated abnormally due to an unrecoverable error. Error: Cannot redeclare openidadmin_drush_command() (previously declared in /srv/aegir/platforms/drupal-6-2013.11.21-prod/sites/all/modules/contrib/openidadmin/openidadmin.drush.inc:13) in /srv/aegir/platforms/drupal-6-2013.11.21-prod/profiles/openatrium/modules/contrib/openidadmin/openidadmin.drush.inc, line 19
j0nathan’s picture

Title: openatrium : Cannot redeclare l10n_update_drush_command » drush cannot redeclare : it loads duplicate command files
j0nathan’s picture

Assigned: j0nathan » Unassigned
moshe weitzman’s picture

Status: Active » Closed (duplicate)

We can track this in Drush queue

j0nathan’s picture

j0nathan’s picture

j0nathan’s picture

Issue summary: View changes
Status: Closed (duplicate) » Active

Reopening because https://github.com/drush-ops/drush/issues/280 has been closed and this is still an issue for us.

j0nathan’s picture

Issue summary: View changes
j0nathan’s picture

Issue summary: View changes
j0nathan’s picture

Issue summary: View changes
anarcat’s picture

j0nathan’s picture

Issue summary: View changes
Status: Active » Fixed

With the patch I was able to successfully migrate OpenAtrium sites.
Thank you very much.

Status: Fixed » Closed (fixed)

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