If I try to migrate a site, I get the following warnings:

user warning: Table '(my_aegir_table).current' doesn't exist query: SELECT c.nid, c.short_name, c.version as current_version, t.version as target_version, c.version_code as current_version_code, t.version_code as target_version_code, c.schema_version as current_schema, t.schema_version as target_schema, c.status AS enabled FROM current c LEFT JOIN target t ON c.nid=t.nid ORDER BY c.status DESC, short_name in /var/aegir/hostmaster-6.x-1.5/profiles/hostmaster/modules/hosting/migrate/hosting_migrate.module on line 216.

user warning: Unknown table 'target' query: DROP TEMPORARY TABLE target in /var/aegir/hostmaster-6.x-1.5/profiles/hostmaster/modules/hosting/migrate/hosting_migrate.module on line 235.

user warning: Unknown table 'current' query: DROP TEMPORARY TABLE current in /var/aegir/hostmaster-6.x-1.5/profiles/hostmaster/modules/hosting/migrate/hosting_migrate.module on line 236.

This is right after upgrading to 1.5. I'm guessing the bug is caused by this commit, although I haven't tested to be sure:
http://drupalcode.org/project/hostmaster.git/commitdiff/9810a13?hp=5e9b0...

Comments

danepowell’s picture

Title: Can't migrate sites ("table doesn't exist" and other warnings) » Can't compare platforms ("table doesn't exist" and other warnings)

Sorry, I misnamed this issue, I think after wading through so many similar issues- actually I can migrate sites between platforms just fine, but I cannot COMPARE platforms before migrating. The errors I mention above occur when COMPARING platforms, not migrating.

Sorry for any confusion.

danepowell’s picture

Priority: Critical » Major
Status: Active » Needs work

Yep, that's the issue- see how you updated the definition of _hosting_package_temporary_table()? But you didn't update all of the references to it. Specifically, you updated hosting_package_comparison(), but not hosting_migrate_comparison().

This is an easy fix, but I don't have time to deal with it right now... all you need to do is look at the changes you made to hosting_package_comparison() in the following commit, and make the same changes to hosting_migrate_comparison()...
http://drupalcode.org/project/hostmaster.git/commitdiff/b222068f2d8778a6...

steven jones’s picture

Damn it.

steven jones’s picture

Assigned: Unassigned » steven jones
Priority: Major » Critical
steven jones’s picture

Priority: Critical » Major
Status: Needs work » Fixed

Fix pushed to 6.x-1.x.

John Carbone’s picture

Having this same problem, but I've never had to upgrade Aegir. Would anyone mind pointing me in the right direction on how to update/apply this fix? I'm running hostmaster-6.x-1.5. Thanks guys!

danepowell’s picture

@John Carbone: see this commit: http://drupal.org/commitlog/commit/4644/4e3cb8d8a4b0f1dbe43ca38ee9970adf...

You'll want to click on the commit (4e3cb8d), then click on "patch", and apply that patch and/or add it to your make file.

In the future, if there's not a link to a commit in the issue thread, you can look through the commit log for a message like "Issue #1330018 by Dane Powell: Fixed Can't compare platforms ('table doesn't exist' and other warnings)." Just match up the issue number.

steven jones’s picture

@John Carbone if you can wait until Monday, I'll be releasing 1.6, and then you can follow the upgrade guide on the community site, sorry about the delay.

Status: Fixed » Closed (fixed)

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

  • Commit 4e8d2be on 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x by Steven Jones:
    Issue #1330018 by Dane Powell: Fixed Can't compare platforms ('table...

  • Commit 4e8d2be on 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x by Steven Jones:
    Issue #1330018 by Dane Powell: Fixed Can't compare platforms ('table...