Hello,

Seeing these errors:

Undefined index: db_type provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_type provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_user provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_user provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_passwd provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB]                                                                                                            [notice]
Undefined index: db_passwd provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB]                                                                                                            [notice]
Undefined index: db_host provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_host provision_drupal.drush.inc:144 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_name provision_drupal.drush.inc:143 [3.48 sec, 9.64 MB]                                                                                                              [notice]
Undefined index: db_name provision_drupal.drush.inc:144 [3.48 sec, 9.65 MB]                                                                                                              [notice]
Undefined index: db_port provision_drupal.drush.inc:143 [3.48 sec, 9.65 MB]                                                                                                              [notice]
Undefined index: db_port provision_drupal.drush.inc:144 [3.48 sec, 9.65 MB]  

when running

drush hostmaster-install --aegir_db_user=myadmin --aegir_db_pass=myadminpasswd --aegir_root=/pathto/aegir  --debug

I output the $_SERVER array from /pathto/aegir/.drush/provision/platform/provision_drupal.drush.inc, and the relevant output is

    [db_type] => 
    [db_host] => 
    [db_user] => 
    [db_passwd] => 
    [db_name] => 
    [db_port] => 

i.e., empty.

This also happens when I use:

drush hostmaster-install --aegir_host=hostname --db_service_type=mysql --db_port=3306 --aegir_db_host=hostname --aegir_db_user=myadmin --aegir_db_pass=myadminpasswd --aegir_root=/pathto/aegir  --debug . 

Looks like this further yields this error:

Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [3.48 sec, 9.65 MB]                                                                                                   [bootstrap]
!type database type is unsupported. [3.48 sec, 9.66 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.

Could this be a bug ... any ideas on how to fix or work around this issue?

Running:

Redhat Enterprise 6.0
PHP 5.3.2
MySQL 5.1

Many thanks!

CommentFileSizeAuthor
#12 aegir-op.txt86.21 KBlakshminp
#9 debug-op.txt54.2 KBlakshminp

Comments

larowlan’s picture

Subscribe

larowlan’s picture

You might need to make sure that the aegir user can run sudo apachectl graceful - RHEL systems don't let users run sudo without a tty - you can set this up for the aegir user by editing your sudoers file using the visudo command and adding the following line:

Defaults:aegir !requiretty
marafa’s picture

hi
i have managed to successfully install on centos 5 and the lesson learned are:
1. /var/aegir is hardcoded into other parts of the script
2. i wrote an install script for myself at http://community.aegirproject.org/discuss/hostmaster-automatic-install-c...

anarcat’s picture

Status: Active » Postponed (maintainer needs more info)

Could you provide the full --debug log for this?

The server settings should normally be saved in an alias in ~/.drush/server_master.alias.drushrc.php and server_localhost.alias.drushrc.php, so you should also look there.

kmasood’s picture

I am terribly sorry, it has been a while, and I am unsure what exactly we did to resolve this error. We ended up reinstalling a couple of times and had to create some sym links to accommodate our setup, but I can't recall what solved this particular issue. /-:

Thanks for checking in!

anarcat’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Okay, glad to hear you managed to install aegir! I'll be closing this issue for now, please reopen with instructions on how to reproduce and a traceback of the install with --debug for us to diagnose the issue.

Thanks!

lakshminp’s picture

Status: Closed (cannot reproduce) » Active

Getting the same issue in Ubuntu 10.10. Here is my --debug output. I am also able to do a sudo apachectl seamlessly.

aegir@unameit-desktop:~$ drush hostmaster-install --debug
Bootstrap to phase 0. [0.01 sec, 3.61 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 3.89 MB] [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [0.02 sec, 3.9 MB]                                                                             [bootstrap]
Bootstrap to phase 0. [0.07 sec, 13.14 MB]                                                                                                                   [bootstrap]
Found command: hostmaster-install (commandfile=provision) [0.07 sec, 13.14 MB]                                                                               [bootstrap]
Initializing drush commandfile: drush_make [0.07 sec, 13.15 MB]                                                                                              [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.07 sec, 13.15 MB]                                                                                          [bootstrap]
Initializing drush commandfile: provision [0.07 sec, 13.16 MB]                                                                                               [bootstrap]
Load alias @self [0.07 sec, 13.16 MB]                                                                                                                           [notice]
Load alias @server_master [0.07 sec, 13.17 MB]                                                                                                                  [notice]
Loading mysql driver for the db service [0.08 sec, 13.19 MB]                                                                                                    [notice]
Loading apache driver for the http service [0.08 sec, 13.21 MB]                                                                                                 [notice]
Initializing drush commandfile: user [0.08 sec, 13.22 MB]                                                                                                    [bootstrap]
Including /var/aegir/.drush/provision/install.hostmaster.inc [0.08 sec, 13.23 MB]                                                                            [bootstrap]
Aegir 6.x-1.5 automated install script
==============================================================================
Some settings have not been provided and will now be prompted.
Don't worry: you will get to review those settings after the final install
Aegir frontend URL [unameit-desktop]: 
MySQL privileged user ("root") password: 
Admin user e-mail [webmaster@unameit-desktop]: b@c.cc

This script will operate the following changes in your system:

1. Create server-level configuration directories
2. Download drush_make
3. Create the Hostmaster frontend platform
4. Install the frontend site
5. Setup the dispatcher (a user cron job)

We are making the following assumptions:
 * you have read and are following the install instructions at:
    http://community.aegirproject.org/installing
 * the FQDN of this machine is valid and resolves
 * you are executing this script as your "aegir" user

The following settings will be used:
 Aegir frontend URL: unameit-desktop
 Master server FQDN: unameit-desktop
 Aegir root: /var/aegir
 Aegir user: aegir
 Web group: www-data
 Web server: apache
 Aegir DB host: localhost
 Aegir DB user: root
 Aegir DB password: <prompted>
 Drush make version: 6.x-2.3
 Aegir version: 6.x-1.5
 Aegir platform path: /var/aegir/hostmaster-6.x-1.5
 Aegir makefile: /var/aegir/.drush/provision/aegir.make
 Admin email: b@c.cc

Do you really want to proceed with the install (y/n): y
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  --remote_host='localhost' --context_type='server' --db_service_type='mysql'             [command]
--master_db='mysql://root:root@localhost' provision-save '@server_localhost' --backend  2>&1 [19.46 sec, 13.39 MB]
Bootstrap to phase 0. [19.57 sec, 13.45 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [19.57 sec, 13.45 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [19.57 sec, 13.45 MB]                                                                          [bootstrap]
Bootstrap to phase 0. [19.57 sec, 13.45 MB]                                                                                                                  [bootstrap]
Found command: provision-save (commandfile=provision) [19.57 sec, 13.45 MB]                                                                                  [bootstrap]
Initializing drush commandfile: drush_make [19.57 sec, 13.45 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [19.57 sec, 13.45 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [19.57 sec, 13.46 MB]                                                                                              [bootstrap]
Load alias @self [19.57 sec, 13.46 MB]                                                                                                                          [notice]
Load alias @server_master [19.57 sec, 13.46 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [19.57 sec, 13.46 MB]                                                                                                   [notice]
Loading apache driver for the http service [19.57 sec, 13.46 MB]                                                                                                [notice]
Loading mysql driver for the db service [19.57 sec, 13.46 MB]                                                                                                   [notice]
Initializing drush commandfile: user [19.57 sec, 13.46 MB]                                                                                                   [bootstrap]
Load alias @server_localhost [19.57 sec, 13.47 MB]                                                                                                              [notice]
Loading mysql driver for the db service [19.57 sec, 13.47 MB]                                                                                                   [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php [19.57 sec, 13.47 MB]                                                              [notice]
Changed permissions of /var/aegir/.drush/server_localhost.alias.drushrc.php to 600 [19.57 sec, 13.47 MB]                                                       [message]
Generated config Drush configuration file [19.57 sec, 13.47 MB]                                                                                                [message]
Changed permissions of /var/aegir/.drush/server_localhost.alias.drushrc.php to 400 [19.58 sec, 13.47 MB]                                                       [message]
Command dispatch complete [19.58 sec, 13.47 MB]                                                                                                                 [notice]
Peak memory usage was 13.43 MB [19.58 sec, 13.48 MB]                                                                                                            [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  @server_localhost provision-verify --backend  2>&1 [19.58 sec, 13.43 MB]                [command]
Bootstrap to phase 0. [19.69 sec, 13.52 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [19.69 sec, 13.52 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [19.69 sec, 13.52 MB]                                                                          [bootstrap]
Load alias @server_localhost [19.69 sec, 13.52 MB]                                                                                                              [notice]
Bootstrap to phase 0. [19.69 sec, 13.52 MB]                                                                                                                  [bootstrap]
Found command: provision-verify (commandfile=provision) [19.69 sec, 13.52 MB]                                                                                [bootstrap]
Initializing drush commandfile: drush_make [19.69 sec, 13.52 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [19.69 sec, 13.53 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [19.69 sec, 13.53 MB]                                                                                              [bootstrap]
Load alias @server_master [19.69 sec, 13.53 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [19.69 sec, 13.53 MB]                                                                                                   [notice]
Loading apache driver for the http service [19.69 sec, 13.53 MB]                                                                                                [notice]
Loading mysql driver for the db service [19.69 sec, 13.53 MB]                                                                                                   [notice]
Initializing drush commandfile: user [19.69 sec, 13.53 MB]                                                                                                   [bootstrap]
Including /var/aegir/.drush/provision/dns/verify.provision.inc [19.69 sec, 13.54 MB]                                                                         [bootstrap]
Including /var/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [19.69 sec, 13.54 MB]                                                      [bootstrap]
Including /var/aegir/.drush/provision/platform/verify.provision.inc [19.69 sec, 13.54 MB]                                                                    [bootstrap]
Provision configuration root path /var/aegir/config exists. [19.69 sec, 13.54 MB]                                                                              [message]
Provision configuration root ownership of /var/aegir/config has been changed to aegir. [19.69 sec, 13.54 MB]                                                   [message]
Provision configuration root permissions of /var/aegir/config have been changed to 711. [19.69 sec, 13.54 MB]                                                  [message]
Provision configuration root path /var/aegir/config is writable. [19.69 sec, 13.54 MB]                                                                         [message]
Provision configuration path /var/aegir/config/server_localhost exists. [19.69 sec, 13.55 MB]                                                                  [message]
Provision configuration ownership of /var/aegir/config/server_localhost has been changed to aegir. [19.69 sec, 13.55 MB]                                       [message]
Provision configuration permissions of /var/aegir/config/server_localhost have been changed to 711. [19.69 sec, 13.55 MB]                                      [message]
Provision configuration path /var/aegir/config/server_localhost is writable. [19.69 sec, 13.55 MB]                                                             [message]
Provision client home path /var/aegir/clients exists. [19.69 sec, 13.55 MB]                                                                                    [message]
Provision client home ownership of /var/aegir/clients has been changed to aegir. [19.69 sec, 13.55 MB]                                                         [message]
Provision client home permissions of /var/aegir/clients have been changed to 711. [19.69 sec, 13.55 MB]                                                        [message]
Provision client home path /var/aegir/clients is writable. [19.69 sec, 13.56 MB]                                                                               [message]
Provision can create new databases. [19.69 sec, 13.56 MB]                                                                                                      [message]
Provision can grant privileges on database users. [19.69 sec, 13.56 MB]                                                                                        [message]
Command dispatch complete [19.7 sec, 13.56 MB]                                                                                                                  [notice]
Peak memory usage was 13.48 MB [19.7 sec, 13.56 MB]                                                                                                             [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  --context_type='server' --remote_host='unameit-desktop' --aegir_root='/var/aegir'       [command]
--script_user='aegir' --http_service_type='apache' --web_group='www-data' --master_url='http://unameit-desktop' provision-save '@server_master' --backend 
2>&1 [19.7 sec, 13.48 MB]
Bootstrap to phase 0. [19.8 sec, 13.53 MB]                                                                                                                   [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [19.8 sec, 13.54 MB]                                                                                        [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [19.8 sec, 13.54 MB]                                                                           [bootstrap]
Bootstrap to phase 0. [19.8 sec, 13.54 MB]                                                                                                                   [bootstrap]
Found command: provision-save (commandfile=provision) [19.8 sec, 13.54 MB]                                                                                   [bootstrap]
Initializing drush commandfile: drush_make [19.81 sec, 13.54 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [19.81 sec, 13.54 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [19.81 sec, 13.54 MB]                                                                                              [bootstrap]
Load alias @self [19.81 sec, 13.54 MB]                                                                                                                          [notice]
Load alias @server_master [19.81 sec, 13.55 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [19.81 sec, 13.55 MB]                                                                                                   [notice]
Loading apache driver for the http service [19.81 sec, 13.55 MB]                                                                                                [notice]
Loading apache driver for the http service [19.81 sec, 13.55 MB]                                                                                                [notice]
Initializing drush commandfile: user [19.81 sec, 13.55 MB]                                                                                                   [bootstrap]
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php [19.81 sec, 13.55 MB]                                                              [notice]
Changed permissions of /var/aegir/.drush/server_master.alias.drushrc.php to 600 [19.81 sec, 13.56 MB]                                                          [message]
Generated config Drush configuration file [19.81 sec, 13.56 MB]                                                                                                [message]
Changed permissions of /var/aegir/.drush/server_master.alias.drushrc.php to 400 [19.81 sec, 13.56 MB]                                                          [message]
Command dispatch complete [19.81 sec, 13.56 MB]                                                                                                                 [notice]
Peak memory usage was 13.4 MB [19.81 sec, 13.56 MB]                                                                                                             [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  @server_master provision-verify --backend  2>&1 [19.81 sec, 13.51 MB]                   [command]
Bootstrap to phase 0. [20.06 sec, 13.68 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.06 sec, 13.68 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.06 sec, 13.68 MB]                                                                          [bootstrap]
Load alias @server_master [20.06 sec, 13.68 MB]                                                                                                                 [notice]
Bootstrap to phase 0. [20.06 sec, 13.68 MB]                                                                                                                  [bootstrap]
Found command: provision-verify (commandfile=provision) [20.06 sec, 13.69 MB]                                                                                [bootstrap]
Initializing drush commandfile: drush_make [20.06 sec, 13.69 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.06 sec, 13.69 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.06 sec, 13.69 MB]                                                                                              [bootstrap]
Loading mysql driver for the db service [20.06 sec, 13.69 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.06 sec, 13.69 MB]                                                                                                [notice]
Initializing drush commandfile: user [20.06 sec, 13.69 MB]                                                                                                   [bootstrap]
Including /var/aegir/.drush/provision/dns/verify.provision.inc [20.06 sec, 13.7 MB]                                                                          [bootstrap]
Including /var/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [20.06 sec, 13.7 MB]                                                       [bootstrap]
Including /var/aegir/.drush/provision/platform/verify.provision.inc [20.06 sec, 13.7 MB]                                                                     [bootstrap]
Provision configuration root path /var/aegir/config exists. [20.06 sec, 13.7 MB]                                                                               [message]
Provision configuration root ownership of /var/aegir/config has been changed to aegir. [20.06 sec, 13.7 MB]                                                    [message]
Provision configuration root permissions of /var/aegir/config have been changed to 711. [20.06 sec, 13.7 MB]                                                   [message]
Provision configuration root path /var/aegir/config is writable. [20.06 sec, 13.7 MB]                                                                          [message]
Provision configuration path /var/aegir/config/server_master exists. [20.06 sec, 13.71 MB]                                                                     [message]
Provision configuration ownership of /var/aegir/config/server_master has been changed to aegir. [20.06 sec, 13.71 MB]                                          [message]
Provision configuration permissions of /var/aegir/config/server_master have been changed to 711. [20.07 sec, 13.71 MB]                                         [message]
Provision configuration path /var/aegir/config/server_master is writable. [20.07 sec, 13.71 MB]                                                                [message]
Provision client home path /var/aegir/clients exists. [20.07 sec, 13.71 MB]                                                                                    [message]
Provision client home ownership of /var/aegir/clients has been changed to aegir. [20.07 sec, 13.71 MB]                                                         [message]
Provision client home permissions of /var/aegir/clients have been changed to 711. [20.07 sec, 13.71 MB]                                                        [message]
Provision client home path /var/aegir/clients is writable. [20.07 sec, 13.72 MB]                                                                               [message]
Backup path /var/aegir/backups exists. [20.07 sec, 13.72 MB]                                                                                                   [message]
Backup ownership of /var/aegir/backups has been changed to aegir. [20.07 sec, 13.72 MB]                                                                        [message]
Backup permissions of /var/aegir/backups have been changed to 700. [20.07 sec, 13.72 MB]                                                                       [message]
Backup path /var/aegir/backups is writable. [20.07 sec, 13.72 MB]                                                                                              [message]
Provision PHP configuration path /var/aegir/config/includes exists. [20.07 sec, 13.72 MB]                                                                      [message]
Provision PHP configuration ownership of /var/aegir/config/includes has been changed to aegir. [20.07 sec, 13.72 MB]                                           [message]
Provision PHP configuration permissions of /var/aegir/config/includes have been changed to 711. [20.07 sec, 13.73 MB]                                          [message]
Provision PHP configuration path /var/aegir/config/includes is writable. [20.07 sec, 13.73 MB]                                                                 [message]
Global configuration file exists [20.07 sec, 13.73 MB]                                                                                                         [message]
Provision can create new databases. [20.07 sec, 13.73 MB]                                                                                                      [message]
Provision can grant privileges on database users. [20.07 sec, 13.73 MB]                                                                                        [message]
Webserver custom pre-configuration path /var/aegir/config/server_master/apache/pre.d exists. [20.07 sec, 13.73 MB]                                             [message]
Webserver custom pre-configuration ownership of /var/aegir/config/server_master/apache/pre.d has been changed to aegir. [20.07 sec, 13.74 MB]                  [message]
Webserver custom pre-configuration permissions of /var/aegir/config/server_master/apache/pre.d have been changed to 700. [20.07 sec, 13.74 MB]                 [message]
Webserver custom pre-configuration path /var/aegir/config/server_master/apache/pre.d is writable. [20.07 sec, 13.74 MB]                                        [message]
Webserver custom post-configuration path /var/aegir/config/server_master/apache/post.d exists. [20.07 sec, 13.74 MB]                                           [message]
Webserver custom post-configuration ownership of /var/aegir/config/server_master/apache/post.d has been changed to aegir. [20.07 sec, 13.74 MB]                [message]
Webserver custom post-configuration permissions of /var/aegir/config/server_master/apache/post.d have been changed to 700. [20.07 sec, 13.74 MB]               [message]
Webserver custom post-configuration path /var/aegir/config/server_master/apache/post.d is writable. [20.07 sec, 13.74 MB]                                      [message]
Webserver platform configuration path /var/aegir/config/server_master/apache/platform.d exists. [20.07 sec, 13.75 MB]                                          [message]
Webserver platform configuration ownership of /var/aegir/config/server_master/apache/platform.d has been changed to aegir. [20.07 sec, 13.75 MB]               [message]
Webserver platform configuration permissions of /var/aegir/config/server_master/apache/platform.d have been changed to 700. [20.07 sec, 13.75 MB]              [message]
Webserver platform configuration path /var/aegir/config/server_master/apache/platform.d is writable. [20.07 sec, 13.75 MB]                                     [message]
Webserver virtual host configuration path /var/aegir/config/server_master/apache/vhost.d exists. [20.07 sec, 13.75 MB]                                         [message]
Webserver virtual host configuration ownership of /var/aegir/config/server_master/apache/vhost.d has been changed to aegir. [20.07 sec, 13.75 MB]              [message]
Webserver virtual host configuration permissions of /var/aegir/config/server_master/apache/vhost.d have been changed to 700. [20.07 sec, 13.75 MB]             [message]
Webserver virtual host configuration path /var/aegir/config/server_master/apache/vhost.d is writable. [20.07 sec, 13.76 MB]                                    [message]
Platforms path /var/aegir/platforms exists. [20.07 sec, 13.76 MB]                                                                                              [message]
Platforms ownership of /var/aegir/platforms has been changed to aegir. [20.08 sec, 13.76 MB]                                                                   [message]
Platforms permissions of /var/aegir/platforms have been changed to 755. [20.08 sec, 13.76 MB]                                                                  [message]
Platforms path /var/aegir/platforms is writable. [20.08 sec, 13.76 MB]                                                                                         [message]
Template loaded: /var/aegir/.drush/provision/http/apache/server.tpl.php [20.08 sec, 13.76 MB]                                                                   [notice]
Generated config web server configuration file [20.08 sec, 13.76 MB]                                                                                           [message]
Created symlink for apache.conf on unameit-desktop [20.08 sec, 13.77 MB]                                                                                        [notice]
apache on unameit-desktop has been restarted [20.08 sec, 13.77 MB]                                                                                              [notice]
Command dispatch complete [20.08 sec, 13.77 MB]                                                                                                                 [notice]
Peak memory usage was 13.55 MB [20.08 sec, 13.77 MB]                                                                                                            [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  --context_type='platform' --server='@server_master' --web_server='@server_master'       [command]
--root='/var/aegir/hostmaster-6.x-1.5' --makefile='/var/aegir/.drush/provision/aegir.make' provision-save '@platform_hostmaster' --backend  2>&1 [20.08 sec,
13.62 MB]
Bootstrap to phase 0. [20.19 sec, 13.67 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.19 sec, 13.67 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.19 sec, 13.67 MB]                                                                          [bootstrap]
Bootstrap to phase 0. [20.19 sec, 13.68 MB]                                                                                                                  [bootstrap]
Found command: provision-save (commandfile=provision) [20.19 sec, 13.68 MB]                                                                                  [bootstrap]
Initializing drush commandfile: drush_make [20.19 sec, 13.68 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.19 sec, 13.68 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.19 sec, 13.68 MB]                                                                                              [bootstrap]
Load alias @self [20.19 sec, 13.68 MB]                                                                                                                          [notice]
Load alias @server_master [20.19 sec, 13.68 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [20.19 sec, 13.69 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.19 sec, 13.69 MB]                                                                                                [notice]
Initializing drush commandfile: user [20.19 sec, 13.69 MB]                                                                                                   [bootstrap]
Load alias @platform_hostmaster [20.19 sec, 13.69 MB]                                                                                                           [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php [20.19 sec, 13.69 MB]                                                              [notice]
Changed permissions of /var/aegir/.drush/platform_hostmaster.alias.drushrc.php to 600 [20.19 sec, 13.69 MB]                                                    [message]
Generated config Drush configuration file [20.19 sec, 13.69 MB]                                                                                                [message]
Changed permissions of /var/aegir/.drush/platform_hostmaster.alias.drushrc.php to 400 [20.19 sec, 13.7 MB]                                                     [message]
Command dispatch complete [20.19 sec, 13.7 MB]                                                                                                                  [notice]
Peak memory usage was 13.39 MB [20.19 sec, 13.7 MB]                                                                                                             [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  @platform_hostmaster provision-verify --backend  2>&1 [20.19 sec, 13.65 MB]             [command]
Bootstrap to phase 0. [20.42 sec, 14.18 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.42 sec, 14.18 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.42 sec, 14.18 MB]                                                                          [bootstrap]
Load alias @platform_hostmaster [20.42 sec, 14.18 MB]                                                                                                           [notice]
Bootstrap to phase 0. [20.42 sec, 14.18 MB]                                                                                                                  [bootstrap]
Found command: provision-verify (commandfile=provision) [20.42 sec, 14.19 MB]                                                                                [bootstrap]
Initializing drush commandfile: drush_make [20.42 sec, 14.19 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.42 sec, 14.19 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.42 sec, 14.19 MB]                                                                                              [bootstrap]
Load alias @server_master [20.42 sec, 14.19 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [20.42 sec, 14.19 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.42 sec, 14.19 MB]                                                                                                [notice]
Initializing drush commandfile: user [20.42 sec, 14.2 MB]                                                                                                    [bootstrap]
Including /var/aegir/.drush/provision/dns/verify.provision.inc [20.42 sec, 14.2 MB]                                                                          [bootstrap]
Including /var/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [20.42 sec, 14.2 MB]                                                       [bootstrap]
Including /var/aegir/.drush/provision/platform/verify.provision.inc [20.42 sec, 14.2 MB]                                                                     [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [20.42 sec, 14.2 MB]                                                                                  [bootstrap]
Loading drushrc "/var/aegir/hostmaster-6.x-1.5/drushrc.php" into "drupal" scope. [20.42 sec, 14.2 MB]                                                        [bootstrap]
Initialized Drupal 6.22 root directory at /var/aegir/hostmaster-6.x-1.5 [20.42 sec, 14.2 MB]                                                                    [notice]
Drupal sites directory /var/aegir/hostmaster-6.x-1.5/sites is writable by the provisioning script [20.43 sec, 14.21 MB]                                        [message]
This platform is running drupal 6.22 [20.43 sec, 14.21 MB]                                                                                                      [notice]
Found 33 modules in base [20.43 sec, 14.21 MB]                                                                                                                  [notice]
Found 6 themes in base [20.43 sec, 14.21 MB]                                                                                                                    [notice]
Found install profile default [20.43 sec, 14.21 MB]                                                                                                             [notice]
Found install profile hostmaster [20.43 sec, 14.21 MB]                                                                                                          [notice]
Found 27 modules in profiles/hostmaster [20.43 sec, 14.21 MB]                                                                                                   [notice]
Found 1 themes in profiles/hostmaster [20.43 sec, 14.22 MB]                                                                                                     [notice]
Template loaded: /var/aegir/.drush/provision/http/apache/platform.tpl.php [20.43 sec, 14.22 MB]                                                                 [notice]
Generated config platform configuration file [20.43 sec, 14.22 MB]                                                                                             [message]
apache on unameit-desktop has been restarted [20.43 sec, 14.22 MB]                                                                                              [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc.tpl.php [20.43 sec, 14.22 MB]                                                                    [notice]
Changed permissions of /var/aegir/hostmaster-6.x-1.5/drushrc.php to 644 [20.43 sec, 14.22 MB]                                                                  [message]
Generated config Platform Drush configuration file [20.43 sec, 14.22 MB]                                                                                       [message]
Changed permissions of /var/aegir/hostmaster-6.x-1.5/drushrc.php to 444 [20.43 sec, 14.23 MB]                                                                  [message]
Command dispatch complete [20.43 sec, 14.23 MB]                                                                                                                 [notice]
Peak memory usage was 16.21 MB [20.43 sec, 14.23 MB]                                                                                                            [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  --context_type='site' --platform='@platform_hostmaster'                                 [command]
--db_server='@server_localhost' --uri='unameit-desktop' --client_name='admin' --profile='hostmaster' provision-save '@hostmaster' --backend  2>&1 [20.43 sec,
13.71 MB]
Bootstrap to phase 0. [20.55 sec, 13.77 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.55 sec, 13.77 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.55 sec, 13.77 MB]                                                                          [bootstrap]
Bootstrap to phase 0. [20.55 sec, 13.77 MB]                                                                                                                  [bootstrap]
Found command: provision-save (commandfile=provision) [20.55 sec, 13.77 MB]                                                                                  [bootstrap]
Initializing drush commandfile: drush_make [20.55 sec, 13.78 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.55 sec, 13.78 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.55 sec, 13.78 MB]                                                                                              [bootstrap]
Load alias @self [20.55 sec, 13.78 MB]                                                                                                                          [notice]
Load alias @server_localhost [20.55 sec, 13.78 MB]                                                                                                              [notice]
Load alias @server_master [20.55 sec, 13.78 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [20.55 sec, 13.78 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.55 sec, 13.79 MB]                                                                                                [notice]
Loading mysql driver for the db service [20.55 sec, 13.79 MB]                                                                                                   [notice]
Load alias @platform_hostmaster [20.55 sec, 13.79 MB]                                                                                                           [notice]
Initializing drush commandfile: user [20.55 sec, 13.79 MB]                                                                                                   [bootstrap]
Load alias @hostmaster [20.55 sec, 13.79 MB]                                                                                                                    [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php [20.55 sec, 13.79 MB]                                                              [notice]
Changed permissions of /var/aegir/.drush/hostmaster.alias.drushrc.php to 600 [20.55 sec, 13.79 MB]                                                             [message]
Generated config Drush configuration file [20.55 sec, 13.8 MB]                                                                                                 [message]
Changed permissions of /var/aegir/.drush/hostmaster.alias.drushrc.php to 400 [20.55 sec, 13.8 MB]                                                              [message]
Command dispatch complete [20.55 sec, 13.8 MB]                                                                                                                  [notice]
Peak memory usage was 13.45 MB [20.55 sec, 13.8 MB]                                                                                                             [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  --client_email='b@c.cc' @hostmaster provision-install --backend  2>&1 [20.55 sec,       [command]
13.75 MB]
Bootstrap to phase 0. [20.68 sec, 14.27 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.68 sec, 14.27 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.68 sec, 14.27 MB]                                                                          [bootstrap]
Load alias @hostmaster [20.68 sec, 14.27 MB]                                                                                                                    [notice]
Bootstrap to phase 1. [20.68 sec, 14.27 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [20.68 sec, 14.27 MB]                                                                                 [bootstrap]
Loading drushrc "/var/aegir/hostmaster-6.x-1.5/drushrc.php" into "drupal" scope. [20.68 sec, 14.27 MB]                                                       [bootstrap]
Initialized Drupal 6.22 root directory at /var/aegir/hostmaster-6.x-1.5 [20.69 sec, 14.28 MB]                                                                   [notice]
Found command: provision-install (commandfile=provision) [20.69 sec, 14.28 MB]                                                                               [bootstrap]
Initializing drush commandfile: drush_make [20.69 sec, 14.28 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.69 sec, 14.28 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.69 sec, 14.28 MB]                                                                                              [bootstrap]
Load alias @server_localhost [20.69 sec, 14.28 MB]                                                                                                              [notice]
Load alias @server_master [20.69 sec, 14.28 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [20.69 sec, 14.29 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.69 sec, 14.29 MB]                                                                                                [notice]
Loading mysql driver for the db service [20.69 sec, 14.29 MB]                                                                                                   [notice]
Load alias @platform_hostmaster [20.69 sec, 14.29 MB]                                                                                                           [notice]
Initializing drush commandfile: user [20.69 sec, 14.29 MB]                                                                                                   [bootstrap]
Including /var/aegir/.drush/provision/db/install.provision.inc [20.69 sec, 14.29 MB]                                                                         [bootstrap]
Including /var/aegir/.drush/provision/dns/install.provision.inc [20.69 sec, 14.3 MB]                                                                         [bootstrap]
Including /var/aegir/.drush/provision/example/install.provision.inc [20.69 sec, 14.3 MB]                                                                     [bootstrap]
Including /var/aegir/.drush/provision/http/install.provision.inc [20.69 sec, 14.3 MB]                                                                        [bootstrap]
Including /var/aegir/.drush/provision/platform/install.provision.inc [20.69 sec, 14.3 MB]                                                                    [bootstrap]
PROVISION_SITE_INSTALLED [20.69 sec, 14.3 MB]                                                                                                                [error]
Command dispatch complete [20.69 sec, 14.3 MB]                                                                                                                  [notice]
Peak memory usage was 14.92 MB [20.69 sec, 14.3 MB]                                                                                                             [memory]
Running: /usr/bin/php /var/aegir/drush/drush.php --php='/usr/bin/php'  @hostmaster provision-verify --backend  2>&1 [20.69 sec, 14.2 MB]                       [command]
Bootstrap to phase 0. [20.84 sec, 14.75 MB]                                                                                                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [20.84 sec, 14.75 MB]                                                                                       [bootstrap]
Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [20.84 sec, 14.76 MB]                                                                          [bootstrap]
Load alias @hostmaster [20.84 sec, 14.76 MB]                                                                                                                    [notice]
Bootstrap to phase 0. [20.85 sec, 14.76 MB]                                                                                                                  [bootstrap]
Found command: provision-verify (commandfile=provision) [20.85 sec, 14.76 MB]                                                                                [bootstrap]
Initializing drush commandfile: drush_make [20.85 sec, 14.76 MB]                                                                                             [bootstrap]
Initializing drush commandfile: drush_make_d_o [20.85 sec, 14.76 MB]                                                                                         [bootstrap]
Initializing drush commandfile: provision [20.85 sec, 14.76 MB]                                                                                              [bootstrap]
Load alias @server_localhost [20.85 sec, 14.77 MB]                                                                                                              [notice]
Load alias @server_master [20.85 sec, 14.77 MB]                                                                                                                 [notice]
Loading mysql driver for the db service [20.85 sec, 14.77 MB]                                                                                                   [notice]
Loading apache driver for the http service [20.85 sec, 14.77 MB]                                                                                                [notice]
Loading mysql driver for the db service [20.85 sec, 14.77 MB]                                                                                                   [notice]
Load alias @platform_hostmaster [20.85 sec, 14.77 MB]                                                                                                           [notice]
Initializing drush commandfile: user [20.85 sec, 14.77 MB]                                                                                                   [bootstrap]
Including /var/aegir/.drush/provision/dns/verify.provision.inc [20.85 sec, 14.78 MB]                                                                         [bootstrap]
Including /var/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [20.85 sec, 14.78 MB]                                                      [bootstrap]
Including /var/aegir/.drush/provision/platform/verify.provision.inc [20.85 sec, 14.78 MB]                                                                    [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [20.85 sec, 14.78 MB]                                                                                 [bootstrap]
Loading drushrc "/var/aegir/hostmaster-6.x-1.5/drushrc.php" into "drupal" scope. [20.85 sec, 14.78 MB]                                                       [bootstrap]
Initialized Drupal 6.22 root directory at /var/aegir/hostmaster-6.x-1.5 [20.85 sec, 14.78 MB]                                                                   [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [20.85 sec, 14.78 MB]                                                                                 [bootstrap]
Initialized Drupal site unameit-desktop at sites/unameit-desktop [20.85 sec, 14.79 MB]                                                                          [notice]
Undefined index: db_type provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                   [notice]
Undefined index: db_user provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                   [notice]
Undefined index: db_passwd provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                 [notice]
Undefined index: db_host provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                   [notice]
Undefined index: db_name provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                   [notice]
Undefined index: db_port provision_drupal.drush.inc:144 [20.85 sec, 14.79 MB]                                                                                   [notice]
Template loaded: /var/aegir/.drush/provision/platform/provision_drupal_settings.tpl.php [20.85 sec, 14.8 MB]                                                    [notice]
Changed permissions of /var/aegir/hostmaster-6.x-1.5/sites/unameit-desktop/settings.php to 640 [20.85 sec, 14.8 MB]                                            [message]
Generated config Drupal settings.php file [20.85 sec, 14.8 MB]                                                                                                 [message]
Changed permissions of /var/aegir/hostmaster-6.x-1.5/sites/unameit-desktop/settings.php to 440 [20.86 sec, 14.8 MB]                                            [message]
Change group ownership of /var/aegir/hostmaster-6.x-1.5/sites/unameit-desktop/settings.php to www-data [20.86 sec, 14.8 MB]                                    [message]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [20.86 sec, 14.8 MB]                                                                         [bootstrap]
!type database type is unsupported. [20.86 sec, 14.81 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          : unameit-desktop
  Database driver   : 
  Database hostname : 
  Database username : 
  Database name     : 
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush version     : 4.5
  Drush configuration: /var/aegir/hostmaster-6.x-1.5/drushrc.php /etc/drush/drushrc.php
  Drush alias files : /var/aegir/.drush/hostmaster.alias.drushrc.php /var/aegir/.drush/server_localhost.alias.drushrc.php
/var/aegir/.drush/server_master.alias.drushrc.php /var/aegir/.drush/platform_hostmaster.alias.drushrc.php
  Drupal root       : /var/aegir/hostmaster-6.x-1.5
  Site path         : sites/unameit-desktop
  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.
 [20.86 sec, 14.81 MB]
Command dispatch complete [20.86 sec, 14.81 MB]                                                                                                                 [notice]
Peak memory usage was 15.47 MB [20.86 sec, 14.81 MB]                                                                                                            [memory]
Command dispatch complete [20.86 sec, 13.81 MB]                                                                                                                 [notice]
Peak memory usage was 14.86 MB [20.86 sec, 13.81 MB]                                                                                                            [memory]
Anonymous’s picture

wtf..

lakshminp’s picture

StatusFileSize
new54.2 KB

I'm also getting the same error on Ubuntu 10.10. I've attached my --debug output.

Anonymous’s picture

Your error is here:

PROVISION_SITE_INSTALLED [20.69 sec, 14.3 MB] [error]

You need to clear out your earlier attempt at installing Aegir (remove the unameit-desktop dir from /var/aegir/hostmaster-6.x-1.5/sites)) before trying again.

lakshminp’s picture

Status: Active » Closed (fixed)

Thanks. That worked.

lakshminp’s picture

Status: Closed (fixed) » Active
StatusFileSize
new86.21 KB

Still getting the "Undefined index" error messages.

marafa’s picture

Status: Active » Fixed

lakshminp
:)

please open a new ticket for each unique issue that you have. that makes it easier for others to read the subject line and decide if the issues is relevant to them or otherwise.

Status: Fixed » Closed (fixed)

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

anarcat’s picture

Category: bug » support
Status: Closed (fixed) » Closed (cannot reproduce)