Aegir 0.4-alpha6

Followed install per http://git.aegirproject.org/?p=provision.git;a=blob_plain;f=INSTALL.txt;...

Platforms and sites imported from Aegir 0.4-alpha3

From a site node clicking on the client name produces:

* warning: array_fill() [function.array-fill]: Number of elements must be positive in /var/aegir/hostmaster-0.4-alpha6/includes/database.inc on line 253.
* warning: implode() [function.implode]: Bad arguments. in /var/aegir/hostmaster-0.4-alpha6/includes/database.inc on line 253.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /var/aegir/hostmaster-0.4-alpha6/modules/user/user.module on line 502.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/aegir/hostmaster-0.4-alpha6/modules/user/user.module on line 502.

Comments

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this.

Could it simply be because the clients aren't imported when sites are? Do we even store that info about a client in the site's drushrc.php or is it only $client_email?

Can you confirm it doesn't occur for the 'main' original client, perhaps just clients of sites you've imported from an older install?

j2parker’s picture

I can confirm it doesn't occur for the 'main' original client.

The clients have been imported. At admin/content/node/overview, Show only items where type is Client, They are all listed.

j2parker’s picture

The clients exist in hosting_clients, hosting_site & node tables.

The same error is produced at node/443/edit?destination=admin%2Fcontent%2Fnode%2Foverview

adrian’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Needs work
adrian’s picture

Ok. found the cause of this.

It's occurring with imported clients, because the UID of the client node created is anonymous.

this actually seems to be a fairly endemic problem we have. All the package nodes are also UID 0 for instance.

I think this can be resolved by changing the bootstrap level of hosting-task, so that it actually logs in.

adrian’s picture

Status: Needs work » Fixed

i fixed it last night.

Status: Fixed » Closed (fixed)

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

  • Commit 1b6c132 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by adrian:
    Error when viewing imported client nodes - fix for #732836
    

  • Commit 1b6c132 on 6.x-2.x, 7.x-3.x, dev-ssl-ip-allocation-refactor, dev-sni, dev-helmo-3.x by adrian:
    Error when viewing imported client nodes - fix for #732836