Hello,

I have been trying to install aegir on a Ubuntu server 10.04 on webbynode without any success for the past couple of days. I have tried both the automated and manual install procedures on http://community.aegirproject.org/installing but I keep running into the same Error message: Drush was not able to start (bootstrap) the Drupal database.

Please have a look at the code below that is output when I run the drush hostmaster-install command:

Setting up aegir-hostmaster (1.1-2) ...
installing the Aegir frontend (Drupal with the hostmaster profile), please wait...
Project drush_make (6.x-2.2) downloaded to                           [success]
/var/aegir/.drush//drush_make.
Project information for drupal retrieved.                            [ok]
drupal downloaded from                                               [ok]
http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz.
hostmaster cloned from http://git.drupal.org/project/hostmaster.git. [ok]
Checked out tag 6.x-1.1.                                             [ok]
Found makefile: hostmaster.make                                      [ok]
Project information for admin_menu retrieved.                        [ok]
Project information for openidadmin retrieved.                       [ok]
Project information for install_profile_api retrieved.               [ok]
Project information for jquery_ui retrieved.                         [ok]
Project information for modalframe retrieved.                        [ok]
admin_menu downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/admin_menu-6.x-1.6.tar.gz.
openidadmin downloaded from                                          [ok]
http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.
install_profile_api downloaded from                                  [ok]
http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.
jquery_ui downloaded from                                            [ok]
http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.3.tar.gz.
modalframe downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.
jquery_ui downloaded from                                            [ok]
http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip.
Created aegirsevenhillsc database                                    [success]
WD mail: Error sending e-mail (from                                  [error]
webmaster@aegir.sevenhillscreative.com to aegir@zinjwebby).
Unable to send e-mail. Please contact the site administrator if the  [error]
problem persists.
Creating master server node                                          [status]
Creating db server node                                              [status]
Configuring menu items                                               [status]
Configuring Eldir theme                                              [status]
Configuring default blocks                                           [status]
Configuring roles                                                    [status]
Content permissions have been rebuilt.                               [status]
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.20
  Site URI          : aegir.sevenhillscreative.com
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush versioSetting up aegir-hostmaster (1.1-2) ...
installing the Aegir frontend (Drupal with the hostmaster profile), please wait...
Project drush_make (6.x-2.2) downloaded to                           [success]
/var/aegir/.drush//drush_make.
Project information for drupal retrieved.                            [ok]
drupal downloaded from                                               [ok]
http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz.
hostmaster cloned from http://git.drupal.org/project/hostmaster.git. [ok]
Checked out tag 6.x-1.1.                                             [ok]
Found makefile: hostmaster.make                                      [ok]
Project information for admin_menu retrieved.                        [ok]
Project information for openidadmin retrieved.                       [ok]
Project information for install_profile_api retrieved.               [ok]
Project information for jquery_ui retrieved.                         [ok]
Project information for modalframe retrieved.                        [ok]
admin_menu downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/admin_menu-6.x-1.6.tar.gz.
openidadmin downloaded from                                          [ok]
http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.
install_profile_api downloaded from                                  [ok]
http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.
jquery_ui downloaded from                                            [ok]
http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.3.tar.gz.
modalframe downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.
jquery_ui downloaded from                                            [ok]
http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip.
Created aegirsevenhillsc database                                    [success]
WD mail: Error sending e-mail (from                                  [error]
webmaster@aegir.[myipaddress].com to aegir@[mywebby]).
Unable to send e-mail. Please contact the site administrator if the  [error]
problem persists.
Creating master server node                                          [status]
Creating db server node                                              [status]
Configuring menu items                                               [status]
Configuring Eldir theme                                              [status]
Configuring default blocks                                           [status]
Configuring roles                                                    [status]
Content permissions have been rebuilt.                               [status]
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.20
  Site URI          : aegir.[myipaddress].com
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush version     : 4.4
  Drush configuration:
/var/aegir/hostmaster-6.x-1.1/sites/aegir.[myipaddress].com/drushrc.php
/var/aegir/hostmaster-6.x-1.1/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.1
  Site path         : sites/aegir.[myipaddress].com
  Modules path      : sites/aegir.[myipaddress].com/modules
  Themes path       : sites/aegir.[myipaddress].com/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.

Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.
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.20
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush version     : 4.4
  Drush configuration: /var/aegir/hostmaster-6.x-1.1/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.1
  %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.

Aegir 6.x-1.1 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

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 INSTALL.txt and prepared the platform accordingly
 * 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: aegir.[myipaddress].com
 Master server FQDN: [mywebby]
 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: <previously set>
 Drush make version: 6.x-2.2
 Aegir version: 6.x-1.1
 Aegir platform path: /var/aegir/hostmaster-6.x-1.1
 Aegir makefile: /usr/share/drush/commands/provision/aegir.make
 Admin email: aegir@[mywebby]

Do you really want to proceed with the install (y/n): y
Project drush_make contains 0 modules: .
dpkg: error processing aegir-hostmaster (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

Site path : sites/aegir.sevenhillscreative.com
Modules path : sites/aegir.sevenhillscreative.com/modules
Themes path : sites/aegir.sevenhillscreative.com/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.

Could not find a Drupal settings.php file at [error]
./sites/default/settings.php.
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.20
Default theme : garland
Administration theme: garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration: /var/aegir/hostmaster-6.x-1.1/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.1
%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.

Aegir 6.x-1.1 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

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 INSTALL.txt and prepared the platform accordingly
* 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: aegir.sevenhillscreative.com
Master server FQDN: zinjwebby
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:

Drush make version: 6.x-2.2 Aegir version: 6.x-1.1 Aegir platform path: /var/aegir/hostmaster-6.x-1.1 Aegir makefile: /usr/share/drush/commands/provision/aegir.make Admin email: aegir@zinjwebby Do you really want to proceed with the install (y/n): y Project drush_make contains 0 modules: . dpkg: error processing aegir-hostmaster (--configure): subprocess installed post-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1)

Comments

Anonymous’s picture

Title: Aegir install error on Ubuntu 10.04 Webbynode: Could not find a Drupal settings.php file at ./sites/default/settings.php » Could not find a Drupal settings.php file at ./sites/default/settings.php

Someone on IRC pointed out that removing my ipaddress makes it harder to tell what the issue is. Here is a repost of the code without the changes. Again, any help would be appreciated

Setting up aegir-hostmaster (1.1-2) ...
installing the Aegir frontend (Drupal with the hostmaster profile), please wait...
Project drush_make (6.x-2.2) downloaded to                           [success]
/var/aegir/.drush//drush_make.
Project information for drupal retrieved.                            [ok]
drupal downloaded from                                               [ok]
http://ftp.drupal.org/files/projects/drupal-6.20.tar.gz.
hostmaster cloned from http://git.drupal.org/project/hostmaster.git. [ok]
Checked out tag 6.x-1.1.                                             [ok]
Found makefile: hostmaster.make                                      [ok]
Project information for admin_menu retrieved.                        [ok]
Project information for openidadmin retrieved.                       [ok]
Project information for install_profile_api retrieved.               [ok]
Project information for jquery_ui retrieved.                         [ok]
Project information for modalframe retrieved.                        [ok]
admin_menu downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/admin_menu-6.x-1.6.tar.gz.
openidadmin downloaded from                                          [ok]
http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.
install_profile_api downloaded from                                  [ok]
http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.
jquery_ui downloaded from                                            [ok]
http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.3.tar.gz.
modalframe downloaded from                                           [ok]
http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.
jquery_ui downloaded from                                            [ok]
http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip.
Created aegirsevenhillsc database                                    [success]
WD mail: Error sending e-mail (from                                  [error]
webmaster@aegir.sevenhillscreative.com to aegir@zinjwebby).
Unable to send e-mail. Please contact the site administrator if the  [error]
problem persists.
Creating master server node                                          [status]
Creating db server node                                              [status]
Configuring menu items                                               [status]
Configuring Eldir theme                                              [status]
Configuring default blocks                                           [status]
Configuring roles                                                    [status]
Content permissions have been rebuilt.                               [status]
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.20
  Site URI          : aegir.sevenhillscreative.com
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush version     : 4.4
  Drush configuration:
/var/aegir/hostmaster-6.x-1.1/sites/aegir.sevenhillscreative.com/drushrc.php
/var/aegir/hostmaster-6.x-1.1/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.1
  Site path         : sites/aegir.sevenhillscreative.com
  Modules path      : sites/aegir.sevenhillscreative.com/modules
  Themes path       : sites/aegir.sevenhillscreative.com/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.

Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.
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.20
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php5/cli/php.ini
  Drush version     : 4.4
  Drush configuration: /var/aegir/hostmaster-6.x-1.1/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.1
  %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.

Aegir 6.x-1.1 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

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 INSTALL.txt and prepared the platform accordingly
 * 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: aegir.sevenhillscreative.com
 Master server FQDN: zinjwebby
 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: <previously set>
 Drush make version: 6.x-2.2
 Aegir version: 6.x-1.1
 Aegir platform path: /var/aegir/hostmaster-6.x-1.1
 Aegir makefile: /usr/share/drush/commands/provision/aegir.make
 Admin email: aegir@zinjwebby

Do you really want to proceed with the install (y/n): y
Project drush_make contains 0 modules: .
dpkg: error processing aegir-hostmaster (--configure):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anonymous’s picture

Status: Active » Needs review
anarcat’s picture

Status: Needs review » Needs work

I am not sure I see what that URL fixes at all.

If you followed the install instructions properly, you should be able to send emails out. The error in the log is quite clear:

WD mail: Error sending e-mail (from                                  [error]
webmaster@aegir.sevenhillscreative.com to aegir@zinjwebby).
Unable to send e-mail. Please contact the site administrator if the  [error]
problem persists.

... it looks like either you do not have email properly setup on that server or the domain name is not properly configured to be a FQDN.

Anonymous’s picture

Thanks for looking at this. The mail part of the install was not the issue I meant to report though. The problem I was facing was the error regarding the settings.php

Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.
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.

Following the instructions on the aegir community site gave me this error. Following the instructions on the site I linked to produced a working site. I do not understand why the other install instructions work. But I do have a working aegir install now and for a this newbie that is a very encouraging thing.

anarcat’s picture

Status: Needs work » Fixed

I understand. What I am saying is that you get this error because the install process can't complete because your mailserver is misconfigured. Configure the mailserver as instructed and the install will go through.

Status: Fixed » Closed (fixed)

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

jp.stacey’s picture

Status: Closed (fixed) » Active

I'm getting this error too on a Natty VM. Just opening this ticket to confirm: is there any way of automatically installing Aegir without having to have email working on the machine?

steven jones’s picture

Status: Active » Fixed

@jp.stacey no, but your mail system can be a black hole that never sends the email to the outside world.

Status: Fixed » Closed (fixed)

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

jebbushell’s picture

If the archive was created by drush archive-backup then sites/default may be missing. It was in mine.

El Bandito’s picture

Just to confirm that when I initially ran the

apt-get install apache2 php5 php5-cli php5-gd php5-mysql php-pear postfix sudo rsync git-core unzip

command as per the manual installation instructions for Aegir I selected 'No configuration' when prompted to configure Postfix. Later on this came back to bite me when running 'drush hostmaster-install' and I saw the '...not able to bootstrap' error detailed above. I uninstalled postfix and re-installed it selecting 'Local only configuration' and the problem resolved, although I had to empty the /var/aegir/ directory to get the hostmaster installation to run again.