I have installed Aegir on my Ubuntu 14.04 (inside a Docker container) following the manual installation guide.

But when I execute sudo /etc/init.d/hosting-queued start, it replies me Starting Aegir queue daemon... ok but nothing happens, the daemon is not launched (I don't have it in the process list).

If I execute sudo /etc/init.d/hosting-queued status, it shows: Aegir queue daemon is not running.

I've checked inside that script and saw that it runs su - aegir -- /usr/local/bin/drush --quiet @hostmaster hosting-queued, so I tried to execute drush @hostmaster hosting-queued as aegir user and this gave me that:

The drush command 'hosting-queued' could not be found. Run `drush cache-clear drush` to clear the commandfile cache if you have installed new extensions. [error]
And even if I run drush cache-clear drush, I still have this message...

Have I missed something ?

I have opened a stackoverflow question here.

Comments

netangel created an issue. See original summary.

helmo’s picture

http://drupal.stackexchange.com/ might have been a slightly better place then the general stackoverflow site....

As I mentioned in IRC, please try starting drush --debug @hostmaster hosting-queued. Without the '--quiet' option and with '--verbose' or '--debug'. That should give some more info on what is going on.

netangel’s picture

Here is the result:

aegir@dev:/$ drush --debug @hostmaster hosting-queued
Starting Drush preflight. [0 sec, 2.08 MB]                                                                                       [preflight]
Loading drushrc "/var/aegir/.drush/drushrc.php" into "home.drush" scope. [0 sec, 2.08 MB]                                        [bootstrap]
Cache HIT cid: 7.0.0-commandfiles-0-46612a5e2b511de95c0e956c1190e391 [0.01 sec, 2.15 MB]                                             [debug]
Loaded alias @hostmaster from file /var/aegir/.drush/hostmaster.alias.drushrc.php [0.07 sec, 6.91 MB]                               [notice]
Cache SET cid: 7.0.0-alias-path--f1e2fe2e9521e56ae989f93e21704bca [0.07 sec, 6.91 MB]                                                [debug]
Loading drushrc "/var/aegir/hostmaster-7.x-3.1/sites/all/drush/drushrc.php" into "drupal" scope. [0.07 sec, 6.92 MB]             [bootstrap]
Loading drushrc "/var/aegir/hostmaster-7.x-3.1/sites/all/drush/drushrc.php" into "drupal" scope. [0.08 sec, 7.44 MB]             [bootstrap]
Bootstrap to phase 0. [0.08 sec, 7.44 MB]                                                                                        [bootstrap]
Bootstrap to phase 5. [0.08 sec, 7.44 MB]                                                                                        [bootstrap]
Drush bootstrap phase : bootstrap_drupal_root() [0.08 sec, 7.79 MB]                                                              [bootstrap]
Loading drushrc "/var/aegir/hostmaster-7.x-3.1/sites/all/drush/drushrc.php" into "drupal" scope. [0.08 sec, 7.8 MB]              [bootstrap]
Initialized Drupal 7.39 root directory at /var/aegir/hostmaster-7.x-3.1 [0.08 sec, 7.8 MB]                                          [notice]
Find command files for phase 1 (max=5) [0.09 sec, 5.73 MB]                                                                           [debug]
Cache HIT cid: 7.0.0-commandfiles-1-e25ef0be3de5800b318073a6006aeb34 [0.09 sec, 5.73 MB]                                             [debug]
Drush bootstrap phase : bootstrap_drupal_site() [0.09 sec, 5.74 MB]                                                              [bootstrap]
Loading drushrc "/var/aegir/hostmaster-7.x-3.1/sites/dev.mycompany.com/drushrc.php" into "site" scope. [0.09 sec, 5.74 MB]           [bootstrap]
Initialized Drupal site dev.mycompany.com at sites/dev.mycompany.com [0.12 sec, 8.43 MB]                                                    [notice]
Find command files for phase 2 (max=5) [0.12 sec, 6.32 MB]                                                                           [debug]
Cache HIT cid: 7.0.0-commandfiles-2-cea813bd054ae1eb87ad65233d5fc385 [0.12 sec, 6.32 MB]                                             [debug]
Drush bootstrap phase : bootstrap_drupal_configuration() [0.12 sec, 6.32 MB]                                                     [bootstrap]
Find command files for phase 3 (max=5) [0.12 sec, 6.33 MB]                                                                           [debug]
sql-query: SELECT 1; [0.12 sec, 6.44 MB]                                                                                         [status]
Executing: mysql --defaults-extra-file=/tmp/drush_Iwv4pb --database=devmycompanycom_3 --host=mysql --port=3306 --silent  < /tmp/drush_xHNP6d
  1
Drush bootstrap phase : bootstrap_drupal_database() [0.13 sec, 6.44 MB]                                                          [bootstrap]
Successfully connected to the Drupal database. [0.13 sec, 6.94 MB]                                                               [bootstrap]
Find command files for phase 4 (max=5) [0.13 sec, 6.95 MB]                                                                           [debug]
Drush bootstrap phase : bootstrap_drupal_full() [0.13 sec, 6.95 MB]                                                              [bootstrap]
Cache HIT cid: 7.0.0-install_profile-3bcea9658969f43e8053a937e2a93db7 [0.19 sec, 18.07 MB]                                           [debug]
Find command files for phase 5 (max=5) [0.19 sec, 18.07 MB]                                                                          [debug]
Cache HIT cid: 7.0.0-install_profile-3bcea9658969f43e8053a937e2a93db7 [0.19 sec, 18.07 MB]                                           [debug]
Cache HIT cid: 7.0.0-commandfiles-5-6a5e8fc311a763404c479ac33c6b9f8d [0.19 sec, 18.08 MB]                                            [debug]
Find command files for phase 2 (max=3) [0.23 sec, 20.76 MB]                                                                          [debug]
Cache HIT cid: 7.0.0-install_profile-3bcea9658969f43e8053a937e2a93db7 [0.23 sec, 20.76 MB]                                           [debug]
Cache MISS cid: 7.0.0-commandfiles-2-6ad41565d4a17d4ea011971eca861ed9 [0.23 sec, 20.76 MB]                                           [debug]
Cache SET cid: 7.0.0-commandfiles-2-6ad41565d4a17d4ea011971eca861ed9 [0.24 sec, 20.78 MB]                                            [debug]
The drush command 'hosting-queued' could not be found.  Run `drush cache-clear drush` to clear the commandfile cache if you have [error]
installed new extensions. [0.29 sec, 21.16 MB]

But as said here, I've found a strange workaround: I had first to execute drush @hostmaster pm-enable -y hosting_queued.

It's weird because I've correctly installed hostmaster with drush hostmaster-install --aegir_db_host=$DB_HOST --aegir_db_port=$DB_PORT --aegir_db_user=$DB_ROOT_USER --aegir_db_pass=$DB_ROOT_PASSWORD --aegir_host=$AEGIR_HOST $AEGIR_URL --client_email=$AEGIR_ADMIN_EMAIL -y (all the environment variables are filled when this command is executed).

helmo’s picture

Status: Active » Closed (works as designed)

Reading http://stackoverflow.com/questions/33168457/aegir-hosting-queued-service... it turns out the hosting-queued module war not enabled.