Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-1.5
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
3 Nov 2011 at 00:19 UTC
Updated:
30 May 2014 at 10:04 UTC
Jump to comment: Most recent
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
Comment #1
danepowell commentedSorry, 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.
Comment #2
danepowell commentedYep, 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...
Comment #3
steven jones commentedDamn it.
Comment #4
steven jones commentedComment #5
steven jones commentedFix pushed to 6.x-1.x.
Comment #6
John Carbone commentedHaving 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!
Comment #7
danepowell commented@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.
Comment #8
steven jones commented@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.