I'm trying to verify a platform, but the task queue does not work and I do not know what the problem

I have tried to manually run the queue, but does not work http://community.aegirproject.org/aegir-handbook/getting-help/troublesho...

I have also followed these instructions http://community.aegirproject.org/faq#cron, but nothing is written in the crontab file.

Thank you very much for your time and I feel my bad English

CommentFileSizeAuthor
Hosted sites | Aegir_1310984222547.png32.57 KBpmmto

Comments

ergonlogic’s picture

As the aegir user, try running:

drush @hostmaster hosting-setup --debug

And paste the results into a comment on this issue. Then check if aegir crontab remains empty (crontab -l).

As a temporary work-around, you could manually add aegir's crontab(crontab -e), which should look something like:

*/1 * * * *  '/<path to drush>/drush.php' @hostmaster hosting-dispatch

'/<path to drush>/' can de determined by running which drush, but should be something like /usr/bin.

FYI, you can also manually force running of the task queue, pending tasks, or a specific task (referenced by nid):

drush @hostmaster hosting-dispatch
drush @hostmaster hosting-tasks
drush @hostmaster hosting-task 1234
pmmto’s picture

I run "drush @hostmaster hosting-dispatch -l=http://teudis4g.ijclm.es -d" and the result is:

Bootstrap to phase 0. [0.01 sec, 2.7 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 2.93 MB] [bootstrap]
Load alias @hostmaster [0.01 sec, 2.93 MB] [notice]

but tasks are not performed.

If i run "drush @hostmaster hosting-setup -l=http://teudis4g.ijclm.es -d" the result is the same, and the crontab file is empty.

If i run "drush @hostmaster hosting-setup --debug" the result is:

Bootstrap to phase 0. [0.01 sec, 2.7 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 2.92 MB] [bootstrap]
Load alias @hostmaster [0.01 sec, 2.93 MB] [notice]
Bootstrap to phase 5. [0.04 sec, 9.81 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.04 sec, 9.82 MB] [bootstrap]
Initialized Drupal 6.22 root directory at /var/aegir/drupal-6.22 [0.05 sec, 10.72 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.05 sec, 10.73 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.05 sec, 10.73 MB] [notice]
Load alias @hostmaster [0.05 sec, 10.73 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.05 sec, 10.73 MB] [bootstrap]
The drush command '@hostmaster hosting-setup' could not be found. [0.06 sec, 10.74 MB] [error]
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This error often occurs when Drush is trying to bootstrap a site that has not been installed or does not have a configured
database.

Drush was attempting to connect to :
Drupal version : 6.22
Site URI : http://default
Default theme : garland
Administration theme: garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration:
Drush alias files : /var/aegir/.drush/server_localhost.alias.drushrc.php
/var/aegir/.drush/platform_hostmaster.alias.drushrc.php /var/aegir/.drush/server_master.alias.drushrc.php
Drupal root : /var/aegir/drupal-6.22
Site path : sites/default
Modules path : sites/all/modules
Themes path : sites/all/themes
%paths : Array

You can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command
line or $options['uri'] in your drushrc.php file.
[0.06 sec, 10.76 MB]

ergonlogic’s picture

One thing that stands out is

Site URI : http://default
[...]
Site path : sites/default

I'm pretty sure Aegir won't work if installed in sites/default.

Generally, the "-l=http://teudis4g.ijclm.es" shouldn't be necessary, as it's saved in the context that's accessed via the alias "@hostmaster".

pmmto’s picture

Thank you, I'll try to install in sites / default

pmmto’s picture

Status: Active » Closed (fixed)
francewhoa’s picture

Issue summary: View changes

Confirming this issue with Aegir 2.1

Activating the "Task queue" feature fixed that issue. Details at https://www.drupal.org/node/2302255#comment-8963401