Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-1.2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2011 at 10:15 UTC
Updated:
13 Jul 2014 at 02:50 UTC
Jump to comment: Most recent
Comments
Comment #1
ergonlogicAs the aegir user, try running:
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:'/<path to drush>/'can de determined by runningwhich 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):
Comment #2
pmmto commentedI 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]
Comment #3
ergonlogicOne thing that stands out is
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".
Comment #4
pmmto commentedThank you, I'll try to install in sites / default
Comment #5
pmmto commentedComment #6
francewhoaConfirming this issue with Aegir 2.1
Activating the "Task queue" feature fixed that issue. Details at https://www.drupal.org/node/2302255#comment-8963401