How to debug failed Migrate task?

QWhy Migrate task failed for a site I have tried to upgrade to new codebase with contrib modules moved to a different directory tree, for example from platform sites/all to installation profile?

AIf you re-use the same name for newly created site or you are migrating a site to a new platform with modules moved to different subdirectories, for example from sites/all/modules to profiles/myprofile/modules and some of them use PHP includes, so their paths are registered also in Redis cache, it may cause fatal errors until you will temporarily disable Redis in the affected site active INI file. How is this possible and how to avoid this? The explanation and a fix is very simple. Redis uses a site (domain) name as a cache key, and unlike it is with mysql based cache tables, which simply get away when the database is renamed or re-created, the Redis cache entries may stay in memory a bit longer, even until the system will restart Redis server, if the site didn’t clear them completely before it got renamed or deleted and then re-created with its name re-used. When you re-use the same name for a site, or when you are migrating a site to a new codebase with contrib modules moved around, the site will happily re-use cache leftovers still existing in Redis memory, which may cause serious problems and break the task in Aegir, because paths to PHP includes change on the fly as a result. Disable Redis temporarily in the affected site and try to run the task again.

»To avoid this problem we usually recommend to use unique, but different domain names for your sites (live and clones) and then add live domains only as aliases, because this way the keys in the cache (and vhosts) will always stay with the local (and unique) site name, and moving the alias between sites will not cause problems with cache leftovers or confusing paths in vhosts. For example: sept-24.other-domain.com, sept-25.other-domain.com +alias: live-domain.com, etc.

Create Account or request a free Test Drive
Already 900+ hosts powering thousands of Drupal sites are running on our high-performance Aegir BOA stack
© 2009-2023 Omega8.cc | ul. Zlota 59, 14th floor Skylight Building, 00-120 Warsaw, Poland | Twitter
Smokin’ Fast Drupal Hosting in Amsterdam · Chicago · Frankfurt · London
Madrid · New York · San Jose · Singapore · Sydney · Toronto · Warsaw