We tried upgrading an alpha6 server to alpha15 here and we had problems. The first one, which I patched, involved context creation. I *think* I fixed it but it may involve more regressions:

http://git.aegirproject.org/?p=hostmaster.git;a=commitdiff;h=4131d4a3f5b...

The second problem was with the node_access tables being rebuild *before* the updates to the platform and client modules are ran. This makes those modules run SELECT query over tables that haven't been updated to the new schema and fail.

The naive/retarded fix I did was to do:

--- a/modules/hosting/hosting.install
+++ b/modules/hosting/hosting.install
@@ -324,7 +324,7 @@ function hosting_update_6013() {

   install_add_permissions(install_get_rid('anonymous user'), array('access disabled sites'));
   install_add_permissions(install_get_rid('authenticated user'), array('access disabled sites'));
-  node_access_rebuild();
+  //node_access_rebuild();
   return $ret;
 }

Obviously, that won't quite cut it. I am not quite sure why we need to rebuild node_access here: we're just giving access to disabled sites, and that's not a node, is it?

Maybe we can just remove that?

PS: I unfortunately lost the traceback of the error messages...

Comments

Anonymous’s picture

Crap, so this was probably my doing.

I believe in search for the correct method of applying permissions, I copied from an example in hostmaster.profile.

I'll remove this.

I found another case of this in hosting_task_update_6004(), not sure if that should be removed too.

Anonymous’s picture

Status: Needs review » Fixed

I did so. I think we can close this. reopen if it hasn't fixed everything (or I will when I can actually get time to test the upgrade path from 0.3 or alpha6)

Status: Fixed » Closed (fixed)
Issue tags: -Upgrade path

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

  • Commit 4fbda14 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by mig5:
    remove migression. #973826
    

  • Commit 4fbda14 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by mig5:
    remove migression. #973826