This happens when I try to clone an environment with devshop.

I haven't tested it with stock Aegir but I'm pretty confident would be the same.

  1. Create drupal8 platform.
  2. Create drupal8 site.
  3. Create second drupal 8 platform.
  4. Clone first drupal8 site, select second drupal 8 platform.
  5. Task error:

Drush command terminated abnormally due to an unrecoverable error.
Error: Cannot redeclare composerRequireDrupal8() (previously declared in /var/aegir/platforms/drupal8platform1/vendor/composer/autoload_real.php:63) in /var/aegir/platforms/drupal8platform2/vendor/composer/autoload_real.php, line 70

I'm not sure where to start with fixing this one. I'm marking it major.

Comments

Jon Pugh created an issue. See original summary.

Jon Pugh’s picture

Priority: Major » Critical

This is a critical blocker for us, we can't offer continuous integration without being able to clone sites.

ergonlogic’s picture

Status: Active » Closed (cannot reproduce)

I just deployed 2 D8 platforms, installed a site on one, then cloned it to the other. No errors were reported. Please re-open if you can reproduce this on a stock Aegir.

colan’s picture

Category: Bug report » Support request
Priority: Critical » Major
Status: Closed (cannot reproduce) » Fixed

In my case, this was caused by a local Drush installed in the source platform. Moving it out of the way solved the problem.

Drush will dispatch to the local version if there is one so it's best to not have any local versions installed.

colan’s picture

Status: Fixed » Closed (fixed)

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