community.aegirproject.org
Aegir fails to import existing full platform
I have a multisite install with 2 sites I need to import into Aegir.
My Aegir server is Debian Squeeze with Aegir 1.10+246.efcd0a3, drush 4.5, PHP 5.3.3-7+squeeze16 and MariaDB installed via apt-get and backports. It could be that I originally installed the previous Aegir version (1.09 or something?), kicked its tires a bit (and went on vacation) and upgraded Aegir to 1.10 using apt-get dist-upgrade before trying this import - I'm not 100% sure. Hostmaster has hosting-queue-runner installed, but no other extras. The hostnames for the sites still resolve to the old server (except when I try to reach the new sites from my local machine using an /etc/hosts override).
I've been basically following the tutorial at http://community.aegirproject.org/content/importing-complete-drupal-plat... thus:
- Extracting the files to /var/aegir/platforms/oldserver
- chown -R aegir:aegir /var/aegir/platforms/oldserver
- Create databases and database users with slightly different passwords than the old sites (they had some troublesome special characters in them).
- Import old database backups
- One of the sites had a 'dr_' prefix, which is removed after restore.
- A D6 default.settings.php for each site is filled with the new connect url like 'mysqli://dbuser:dbpassword@localhost/dbname' and copied into the respective sites folder, replacing their old settings.php (they had a lot of customizations I thought could interfere).
- I add the platform in the Aegir frontend, not selecting any client (our setup won't use clients anyway).
- Tasks import platform, verify platform, import site1 and import site2 all fires in order and comes off as successful.
- The sites doesn't work (offline). If I try to verify the sites, it fails. The reason is that the database credentials are nowhere to be found, so drush can't even bootstrap. drushrc's, vhost definitions, everything.
I really want to fix my approach since I have more sites to import later, so manually adding the db credentials isn't very appealing. :( Item 1 through 6 is automated. I can post the script if needed.
Attached are the logs from adding the platform, and importing one of the sites. I notice that the import actually manages to bootstrap the site. But later in the import it complains about missing db_type etc. :-/
If there are any hoops I can jump through to get you more info, please let me know.