I imported the website www.epi-flash.nl by following the instructions at http://groups.drupal.org/node/24992 . The only thing I did'nt was migrating to another platform.

I also did some extra database updates:
UPDATE files SET filepath = REPLACE(filepath, "sites/default", "sites/www.epi-flash.nl");
UPDATE node_revisions SET body = REPLACE(body, "sites/default", "sites/www.epi-flash.nl");
UPDATE node_revisions SET teaser = REPLACE(teaser, "sites/default", "sites/www.epi-flash.nl");
UPDATE locales_source SET location = REPLACE(location, "sites/default", "sites/www.epi-flash.nl");
UPDATE users set picture = replace (picture, "sites/default/files", "sites/www.epi-flash.nl/files");

The first verify was working well, and the site is running fine.
I added three aliases and enabled 'Redirect domain aliases to main domain' checkbox. After saving Aegir does another verify.
Since then I got two errors while verifying.

- The external command could not be executed due to an application error.

- Drush command terminated abnormally due to an unrecoverable error. Error: Unsupported operand types in /var/aegir/drush/includes/environment.inc, line 916

See a complete copy/paste verify report at http://pastie.org/4592515

What to do to fix this? Thanks for helping.

Comments

helmo’s picture

Status: Active » Postponed (maintainer needs more info)

The php parse_url seems to have a problem with the db_url for your site.

Do you still use a manually created database, or one Aegir created for you?

Jurjen de Vries’s picture

Hi Helmo,

I created a database manually as described at option B , http://groups.drupal.org/node/24992
Any idea how I can fix this? Thanks in advance!

helmo’s picture

I'd check that the database credentials in drushrc.php and settigs.php (both in the site specific directory, sites/www.epi-flash.nl) are valid.
Cloning/migrating a site will also let Aegir create a new db for it, which does also have a cleansing effect ;)

Jurjen de Vries’s picture

Both configuration files are getting the database settings from apache vhost settings

settings.php:
---
$databases['default']['default'] = array(
'driver' => $_SERVER['db_type'],
'database' => $_SERVER['db_name'],
'username' => $_SERVER['db_user'],
'password' => $_SERVER['db_passwd'],
'host' => $_SERVER['db_host'],
'port' => $_SERVER['db_port'],
);
---

I am not sure that it is a database error. The site is working fine as you can see at http://www.epi-flash.nl
The file /var/aegir/config/server_master/apache/vhost.d/www.epi-flash.nl has the mysql user/database configuration.

When I look at /var/aegir/drush/includes/environment.inc at line 916, I discovered that it is using some specific database connection settings for Drupal 6. epi-flash.nl is currently the only Drupal 6 site.
Is it possible that this is a bug, and the database credentials are not received at all or correctly from the /var/aegir/config/server_master/apache/vhost.d/www.epi-flash.nl file?

Jurjen de Vries’s picture

@helmo

Finally it is fixed, you where right about the drushrc.php file.
The database information was missed at all, no lines. I was confused due that the settings.php also didn't had the database information, so I thought that the drushrc.php file was getting the information from /var/aegir/config/server_master/apache/vhost.d/www.epi-flash.nl too.

Any idea why the drushrc.php didn't got the information? Is it a bug, or did I forgot something to do at the migration process?

helmo’s picture

Status: Postponed (maintainer needs more info) » Fixed

Good to hear you resolved it.

To get Aegir to be aware of your db settings, and record them in drushrc.php, you need to migrate the site from one aegir platform to another. Then Aegir creates a new db for it....

Jurjen de Vries’s picture

This wasn't a migration, but an import.
Can I help with updating migration documentation?

helmo’s picture

Sure, the handbook on http://community.aegirproject.org/ can always use some attention.

Status: Fixed » Closed (fixed)

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