I am trying to upgrade my Aegir platform from Drupal 5.13 to 5.17. I have been recommended the following steps by Adrian:
15:24:28 <@anarcat> hostmaster@hostmaster:/var/hostmaster$ ./drush/drush.php dl drupal-5.17 --package-handler=cvs
15:24:39 <@anarcat> hostmaster@hostmaster:/var/hostmaster$ mv drupal drupal-5.17
15:25:10 <@anarcat> hostmaster@hostmaster:/var/hostmaster$ crontab -e
15:32:53 <@anarcat> hostmaster@hostmaster:~/drupal-5.x$ /var/hostmaster/drush/drush.php --root=/var/hostmaster/drupal-5.x --verbose=2 provision migrate default /var/hostmaster/drupal-5.17/
The actual output is this:
hostmaster@hostmaster:~/drupal-5.x$ /var/hostmaster/drush/drush.php --root=/var/hostmaster/drupal-5.x --verbose=2 provision migrate default /var/hostmaster/drupal-5.17/
Drush bootstrap phase : _drush_bootstrap_drupal_root() [bootstrap]
Loading drushrc "/var/hostmaster/drupal-5.x/drushrc.php" into "drupal" scope. [bootstrap]
Initialized Drupal 5.14 root directory at /var/hostmaster/drupal-5.x [notice]
Found command: provision migrate [bootstrap]
Initializing drush commandfile: provision_mysql [bootstrap]
Initializing drush commandfile: provision_apache [bootstrap]
Initializing drush commandfile: provision_drupal [bootstrap]
Including /var/hostmaster/.drush/provision/platform/migrate.provision.inc [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [bootstrap]
Initialized Drupal site default at sites/default [notice]
Including /var/hostmaster/.drush/provision/db_server/backup.provision.inc [bootstrap]
Including /var/hostmaster/.drush/provision/platform/backup.provision.inc [bootstrap]
PROVISION_DRUPAL_SITE_FOUND [error]
An error occurred at function : provision_drupal_provision_backup_validate [error]
An error occurred at function : provision_drupal_pre_provision_migrate [error]
Could not remove unused migration site package [warning]
Changes for provision_drupal_pre_provision_migrate module have been rolled back. [rollback]
Weird, it looks like it can't find the base site.
Comments
Comment #1
anarcat commentedSo I first need to add the platform to aegir (duh) and import the "default" site:
Comment #2
anarcat commentedimport doesn't create the drushrc.php:
Comment #3
anarcat commentedSo the import issue was fixed: #453538: cannot import default site.
I still have no luck migrating the site. The migrate task fails and the site is then broken:
Lovely. Here's the error log:
Looks like the "nice db name" code is kicking in.
In the meantime I committed some documentation to UPGRADE.txt on how to do this.
Comment #4
anarcat commentedI fixed my (really) broken drupal by commenting out the offending line, resaving the module page and restoring the files.
Otherwise I'll try running the migrate command with a proper site-id (i guess?!).
Comment #5
anarcat commentedSo I fixed this with the help of Adrian. The issue was that the mysql code wasn't looking at the actual DB settings for sites that don't have an id registered on the frontend.
Comment #6
anarcat commentedJust wanted to mention #453540: consider the 'default' site like a regular site, with exceptions.