When a site is cloned (in 1.1, but probably also applies to 1.2), the client field is empty in the cloned site. It's as if the cloned site importation wasn't getting the client name back from the drushrc/alias.

Comments

anarcat’s picture

This is because of #1200066: hosting_get_client uses client title instead of the (unique) internal name:

importing client name cl-anarcat [672.61 sec, 57.19 MB]                                                        [notice]
WD php: Invalid error type specified in                                                                     [error]
/var/aegir/hostmaster-6.x-1.2/profiles/hostmaster/modules/hosting/client/hosting_client.module on line 145.
[672.61 sec, 57.2 MB]
WD php: Duplicate entry 'cl-anarcat' for key 2                                                              [error]
query: INSERT INTO hosting_client (vid, nid, uname) VALUES (26536, 6314, 'cl-anarcat' ) in
/var/aegir/hostmaster-6.x-1.2/profiles/hostmaster/modules/hosting/client/hosting_client.module on line 306.
[672.61 sec, 57.2 MB]

Since it's looking for client cl-anarcat (the internal name), it fails and then fails to create the client (obviously).

anarcat’s picture

Status: Active » Fixed

Okay, I fixed this pesky bug, hurray!

Status: Fixed » Closed (fixed)

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