We have a operational Aegir server thats seems to functioning normally - we can add new platforms, create new sites, clone, migrate sites no problem.

The trouble is that the base site, the 'Hostmaster' site won't Verify. Here is a partial log of the attempt (just to the point of failure - everything after the failure was okay):

(My hostmaster platform is 6.26)

Task starts processing
Trying to get property of non-object hosting.module:854
Running: /usr/share/drush/drush.php --uri='aegir.kern.org' provision-save '@hostmaster' --backend 2>&1
Bootstrap to phase 0.
Drush bootstrap phase : _drush_bootstrap_drush()
Bootstrap to phase 0.
Found command: provision-save (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @self
Load alias @
Could not find provision alias named: @
...

I have re-verified all of my platforms with no error, re-verified all of my servers with no error and all other sites on this install verify no problem.

I see on another Aegir instance I have access to that the base site does verify, and the missing alias appears to be @server_localhost on that box.

On the failing server I do have an @server_localhost alias present in my .drush directory.

If anyone could please point me in the right direction I would appreciate.

Thank you.

-Erin

Comments

I am not sure I understand the last bits - are you saying that there's no "@server_localhost" alias on the failing server? That would seem strange: that alias is installed by default when a new server is setup, for the database server. Unless you installed Aegir using a remote mysql server, this should be present. If it's present in the frontend, try to reverify that server...

Status:Active» Postponed (maintainer needs more info)

Title:Can't verfiy Hostmaster base siteError verifying anything: Could not find provision alias named: @
Category:support» bug
Priority:Normal» Major
Status:Postponed (maintainer needs more info)» Active

Fun, I just reproduced this on 2.x head. Bleh. I can't verify a new D7 platform here:

aegir@marcos:~/platforms$ drush @hostmaster hosting-task 84 --debug --force
Bootstrap to phase 0. [0 sec, 3.42 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0 sec, 3.62 MB]    [bootstrap]
Loaded alias @hostmaster from file /var/aegir/.drush/hostmaster.alias.drushrc.php [0.01 sec, 3.63 MB]                 [notice]
Loading drushrc "/home/aegir/hostmaster-6.x-2.x/sites/aegir.anarcat.ath.cx/drushrc.php" into "site" scope. [0.01   [bootstrap]
sec, 3.63 MB]
Loading drushrc "/home/aegir/hostmaster-6.x-2.x/sites/aegir.anarcat.ath.cx/drushrc.php" into "site" scope. [0.01   [bootstrap]
sec, 3.96 MB]
Cache HIT cid: 5.7-commandfiles-0-4a02a1e20656fb43721afd6cf1b10a4c [0.02 sec, 3.97 MB]                                 [debug]
Bootstrap to phase 0. [0.05 sec, 9.45 MB]                                                                          [bootstrap]
Bootstrap to phase 5. [0.06 sec, 9.45 MB]                                                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec, 9.46 MB]                                         [bootstrap]
Initialized Drupal 6.26 root directory at /var/aegir/hostmaster-6.x-2.x/ [0.07 sec, 11.01 MB]                         [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.07 sec, 11.01 MB]                                        [bootstrap]
Initialized Drupal site aegir.anarcat.ath.cx at sites/aegir.anarcat.ath.cx [0.07 sec, 11.02 MB]                       [notice]
Cache HIT cid: 5.7-commandfiles-2-774eda7c3f0324cdd636d035a7aebb59 [0.07 sec, 11.02 MB]                                [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.08 sec, 11.02 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.08 sec, 11.06 MB]                                    [bootstrap]
Successfully connected to the Drupal database. [0.08 sec, 11.06 MB]                                                [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.08 sec, 11.4 MB]                                         [bootstrap]
Cache HIT cid: 5.7-commandfiles-5-6cb637916f9e3713b1a6e2f522c9d0ec [0.12 sec, 18.71 MB]                                [debug]
Bootstrap to phase 5. [0.14 sec, 19.54 MB]                                                                         [bootstrap]
Found command: hosting-task (commandfile=hosting) [0.14 sec, 19.54 MB]                                             [bootstrap]
Loaded alias @server_localhost from file /var/aegir/.drush/server_localhost.alias.drushrc.php [0.26 sec, 19.58 MB]    [notice]
Loaded alias @server_master from file /var/aegir/.drush/server_master.alias.drushrc.php [0.35 sec, 19.59 MB]          [notice]
Loading apache_ssl driver for the http service [0.38 sec, 19.81 MB]                                                   [notice]
Loading mysql driver for the db service [0.38 sec, 20 MB]                                                             [notice]
Loaded alias @platform_hostmaster from file /var/aegir/.drush/platform_hostmaster.alias.drushrc.php [0.45 sec,        [notice]
20.01 MB]
Including profiles/hostmaster/modules/hosting/task.hosting.inc [0.48 sec, 20.01 MB]                                [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.48 sec, 20.1 MB]                                        [bootstrap]
Successfully logged into Drupal as admin (uid=1) [0.48 sec, 20.1 MB]                                               [bootstrap]
Task starts processing [0.89 sec, 20.65 MB]                                                                            [queue]
Trying to get property of non-object hosting.module:865 [0.92 sec, 20.68 MB]                                          [notice]
Backend invoke: php /usr/share/drush/drush.php  --backend=2 --root=/var/aegir/platforms/drupal-7.17 --uri=           [command]
--verbose --debug  provision-save '@platform_Drupal717'   --context_type=platform
--master_url=http://aegir.anarcat.ath.cx/ --server='@server_master' --web_server='@' --make_working_copy=null 2>&1
[1.02 sec, 20.7 MB]
php /usr/share/drush/drush.php  --backend=2 --root=/var/aegir/platforms/drupal-7.17 --uri= --verbose --debug          [notice]
provision-save '@platform_Drupal717'   --context_type=platform --master_url=http://aegir.anarcat.ath.cx/
--server='@server_master' --web_server='@' --make_working_copy=null 2>&1 [1.06 sec, 20.7 MB]
Bootstrap to phase 0. [0 sec, 3.42 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.62 MB] [bootstrap]
Cache HIT cid: 5.7-commandfiles-0-f23dd46f314210f520a5e011693b6f0c       [debug]
[0.01 sec, 3.64 MB]
Bootstrap to phase 0. [1.17 sec, 9.13 MB]                                                                          [bootstrap]
Bootstrap to phase 0. [1.19 sec, 9.13 MB]                                                                          [bootstrap]
Found command: provision-save (commandfile=provision) [1.19 sec, 9.13 MB]                                          [bootstrap]
Loaded alias @self from file /var/aegir/.drush/self.alias.drushrc.php [1.24 sec, 9.16 MB]                             [notice]
Loaded alias @server_localhost from file /var/aegir/.drush/server_localhost.alias.drushrc.php [1.31 sec, 9.18 MB]     [notice]
Loaded alias @server_master from file /var/aegir/.drush/server_master.alias.drushrc.php [1.37 sec, 9.19 MB]           [notice]
Loading apache_ssl driver for the http service [1.39 sec, 9.39 MB]                                                    [notice]
Loading mysql driver for the db service [1.4 sec, 9.56 MB]                                                            [notice]
Loaded alias @platform_hostmaster from file /var/aegir/.drush/platform_hostmaster.alias.drushrc.php [1.45 sec, 9.57   [notice]
MB]
Could not find provision alias named: @ [1.51 sec, 20.74 MB]                                                       [error]
Trying to get property of non-object http.php:39 [1.47 sec, 9.58 MB]                                                  [notice]
Command dispatch complete [1.47 sec, 9.58 MB]                                                                         [notice]
Peak memory usage was 11.12 MB [1.47 sec, 9.58 MB]                                                                    [memory]
Loaded alias @platform_Drupal717 from file /var/aegir/.drush/platform_Drupal717.alias.drushrc.php [1.72 sec, 20.74    [notice]
MB]
Backend invoke: php /usr/share/drush/drush.php  --backend=2 --verbose --debug @platform_Drupal717 provision-verify   [command]
2>&1 [1.82 sec, 20.75 MB]
php /usr/share/drush/drush.php  --backend=2 --verbose --debug @platform_Drupal717 provision-verify 2>&1 [1.85 sec,    [notice]
20.75 MB]
Bootstrap to phase 0. [0 sec, 3.42 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.62 MB] [bootstrap]
Loaded alias @platform_Drupal717 from file                              [notice]
/var/aegir/.drush/platform_Drupal717.alias.drushrc.php [0.01 sec,
3.63 MB]
Cache HIT cid: 5.7-commandfiles-0-f23dd46f314210f520a5e011693b6f0c       [debug]
[0.01 sec, 3.64 MB]
Bootstrap to phase 0. [1.97 sec, 9.13 MB]                                                                          [bootstrap]
Bootstrap to phase 0. [1.98 sec, 9.13 MB]                                                                          [bootstrap]
Found command: provision-verify (commandfile=provision) [1.98 sec, 9.13 MB]                                        [bootstrap]
Loaded alias @server_master from file /var/aegir/.drush/server_master.alias.drushrc.php [2.04 sec, 9.17 MB]           [notice]
Loading apache_ssl driver for the http service [2.07 sec, 9.37 MB]                                                    [notice]
Including /usr/share/drush/commands/provision/dns/verify.provision.inc [2.07 sec, 9.4 MB]                          [bootstrap]
Including /usr/share/drush/commands/provision/platform/backupmigrate/verify.provision.inc [2.07 sec, 9.41 MB]      [bootstrap]
Including /usr/share/drush/commands/provision/platform/verify.provision.inc [2.07 sec, 9.41 MB]                    [bootstrap]
The directory /var/aegir/platforms/drupal-7.17 does not contain a valid Drupal installation [2.56 sec, 20.79 MB]   [error]
Drush could not bootstrap this platform. Please check the platform directory exists and is readable. [2.68 sec,    [error]
20.79 MB]
Command dispatch complete [2.07 sec, 9.56 MB]                                                                         [notice]
Peak memory usage was 10.63 MB [2.07 sec, 9.56 MB]                                                                    [memory]
Changes made in drush_hosting_task have been rolled back. [3.15 sec, 20.75 MB]                                      [rollback]
Command dispatch complete [3.22 sec, 20.68 MB]                                                                        [notice]
Timer  Cum (sec)  Count  Avg (msec)
page   3.178      1      3177.74
Peak memory usage was 22.46 MB [3.25 sec, 20.68 MB]                                                                   [memory]

Assigned:Unassigned» anarcat
Status:Active» Needs work

Okay, so in my case what happened is that the platform didn't have a webserver associated to it. I added validation for this in commit [b0cdb4d] so that platforms like this can't be created in the future. I also added better error handling in [14bc1f97] so that those empty aliases provoke a real error instead of an unnoticed PHP notice that slipped into both our logs without being noticed:

Trying to get property of non-object hosting.module:865 [0.92 sec, 20.68 MB]                                          [notice]

That was actually one of the most important symptoms of the problem. If you try the latest 5.x branch again, you should see this instead:

Error: cannot load node id 0 to find its context

.. which is still a bit cryptic, but at least it is an error, and therefore noticed and stops processing earlier.

Now to the actual cause of the problem - I am not sure. I reinstalled this site with provision-install earlier today, and for some reason the main webserver wasn't configured at all. I'll need to look into that, but in the meantime the workaround is to make sure you have a verified webserver and reverify the platform.

So next step: test reinstalling the frontend to see if the main webserver is configured properly in the frontend. Use:

drush @hostmaster provision-delete
drush @hostmaster provision-install

OBVIOUSLY DON'T DO THIS IN PRODUCTION, IT WILL KILL YOUR AEGIR SITE! Marking needs work until i figure this out.

Status:Needs work» Fixed

i think this works now, at least I haven't reproduced this problem lately.

Status:Fixed» Closed (fixed)

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