Please help me! Install Aegir 0.4-alpha13

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
tqthong's picture

I download the latest version of Aegir system (0.4-alpha13) and Provision (0.4-alpha13)..

I create user "aegir" and add to group "www-data" and home folder is "/var/aegir". I extract file install.sh.txt from provision-0.4-alpha13.tgz to /var/aegir.

I change to user "aegir" and run the install file:

su -s /bin/bash - aegir
sh install.sh

The setup is run OK. But at the end of task, I get the error. Please give me solution to fix this error.

This is the setup:

aegir@ubuntu:~$ sh install.sh
==> Aegir 0.4-alpha13 automated install script
==> MySQL is listening on 127.0.0.1.
==> This script makes the following assumptions:
* you have read INSTALL.txt and prepared the platform accordingly
* you are executing this script as your "aegir" user
Do you want to proceed with the install? [Y/n] Y
==> Aegir will now generate a mysql super user password for you:
  Username : aegir_root
  Password : 9562e17494d07644b2e4196837da200b
  Hostname : ubuntu (127.0.0.1)

You will be asked to enter your mysql root user password now :
Enter password:
==> Installing drush in /var/aegir
--2010-09-14 10:35:36--  http://ftp.drupal.org/files/projects/drush-6.x-3.3.tar.gz
Resolving ftp.drupal.org... 64.50.236.52, 64.50.233.100
Connecting to ftp.drupal.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174892 (171K) [application/x-gzip]
Saving to: drush-6.x-3.3.tar.gz'

100%[===========================================================================================================================================================>] 174,892     67.9K/s   in 2.5s    

2010-09-14 10:35:39 (67.9 KB/s) -drush-6.x-3.3.tar.gz' saved [174892/174892]

==> Drush seems to be functioning properly
==> Provision already seems to be installed
==> Installing the frontend
Aegir domain name [aegir.example.com]: aegir.example.com
Provision configuration path /var/aegir/config/server_master does not exist.                                                                                                              [warning]
Backup path /var/aegir/backups does not exist.                                                                                                                                            [warning]
Provision PHP configuration path /var/aegir/config/includes does not exist.                                                                                                               [warning]
Webserver custom configuration path /var/aegir/config/server_master/apache/conf.d does not exist.                                                                                         [warning]
Webserver platform configuration path /var/aegir/config/server_master/apache/platform.d does not exist.                                                                                   [warning]
Webserver virtual host configuration path /var/aegir/config/server_master/apache/vhost.d does not exist.                                                                                  [warning]
Project information for drupal retrieved.                                                                                                                                                 [ok]
drupal downloaded from http://ftp.drupal.org/files/projects/drupal-6.19.tar.gz.        ... [ok]
hostmaster downloaded from [ok]
Found makefile: hostmaster.make                                                                                                                                                           [ok]
Project information for admin_menu 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]
install_profile_api downloaded from http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.... [ok]
jquery_ui downloaded from http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.3.tar.gz.     ... [ok]
modalframe downloaded from [ok]
jquery_ui downloaded from http://jquery-ui.googlecode.com/files/jquery.ui-1.6.zip.        ... [ok]
Admin user e-mail [webmaster@localhost]: webmaster@localhost
Created aegirexamplecom database                                                                                                                                                          [success]
WD mail: Error sending e-mail (from webmaster@aegir.example.com to webmaster@localhost).                                                                                                  [error]
Unable to send e-mail. Please contact the site administrator if the problem persists.                                                                                                     [error]
An error occurred at function : drush_provision_drupal_provision_install_backend                                                                                                          [error]
An error occurred at function : drush_provision_drupal_provision_install                                                                                                                  [error]
Could not find a Drupal settings.php file at ./sites/default/settings.php.                                                                                                                [error]
An error occurred at function : drush_provision_drupal_provision_verify_validate                                                                                                          [error]
An error occurred at function : drush_provision_hostmaster_install                                                                                                                        [error]

Comments

Which area do need help with?

redpuma's picture

Which area do need help with? Can you say what issues you have experienced?

Well, in my case...

John_Buehrer's picture

Hi, I'll give my own comments until tqthong replies.

On my MacOSX 10.5 PPC, running MacPorts *AMP, I had to patch the install script to use a shorter quoted password without spaces:

$ cat /var/aegir/patches/jdb-1.patch
--- install.sh.txt  2010-09-15 01:48:21.000000000 +0200
+++ install.sh.txt.jdb  2010-09-15 01:48:45.000000000 +0200
@@ -113,7 +113,7 @@
fi

AEGIR_DB_USER=aegir_root
-AEGIR_DB_PASS=echo $RANDOM:\date`:$AEGIR_HOST | openssl md5`
+AEGIR_DB_PASS='george'

msg "Aegir will now generate a mysql super user password for you: "
cat <<EOF

Without this patch, I get mysterious errors indicating a database connection failure down in Drush-land, although the sh-wrapper connection succeeds to create an aegir_root account. This also happens if the password is single-quoted but still contains a space.

==> Aegir will now generate a mysql super user password for you:
  Username : aegir_root
  Password : (stdin)= fcfc323b6ecc47f58b2c61fdc32f628f
  Hostname : example.com (192.168.1.45)
...
==> Installing the frontend
The external command could not be executed due to an application error.                              [error]
SQLSTATE[28000] [1045] Access denied for user 'aegir_root'@'example.com' (using password: YES)       [error]
Drush command could not be completed.                                                                [error]
Output from failed command :                                                                         [error]
Fatal error: Call to a member function quote() on a non-object in
/private/var/aegir/.drush/provision/db/db.drush.inc on line 315

Interestingly, if I set the password to george without single-quotes:

The external command could not be executed due to an application error.                      [error]
SQLSTATE[28000] [1045] Access denied for user 'me'@'example.com' (using password: YES)       [warning]
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.19

Also interestingly, I did not observe this error when using the XAMPP stack, but in that case, browsing to the new Aegir page causes both FireFox & Safari to download the php files instead of having them interpreted by Apache. (Prior to Aegir installation, XAMPP handles phpMyAdmin normally. Something amiss in httpd.conf?)

Despite these "interests" and the small fix needed, my elapsed time has been several days of screwing around and unwrapping this install script. (The downloaded hint files are out-of-date, too.) This is not a good experience for Drupal users new to Aegir.

So my suggestion is to please "unwrap" this install script into smaller pieces, and provide better error messages which show the failing commands. Parameterizing the DB and HTTPD connection would be a great help too, as well as performing all downloads before doing any configuration actions.

Unfortunately I don't have the same Debian-assumed environment as you guys, and I suggest that relying only on this script to simplify installation has the opposite effect - especially if new users must first reverse-engineer it to get started.

Fixes to above

John_Buehrer's picture

1)
Solved XAMPP problem with browser downloading php files. The XAMPP start/stop scripts define PHP5, but this is not present when starting/stopping with 'sudo apachectl' ala Aegir. To fix this, patch httpd-xampp.conf to load PHP module unconditionally. This might be worth a mention in the Readme. More details here: http://www.apachefriends.org/f/viewtopic.php?f=16&t=41964

2)
Tracked down MacPorts password problem. This environment has a newer openssl which gives the breaking (stdin):

$ /opt/local/bin/openssl version
OpenSSL 1.0.0a 1 Jun 2010
$ echo test | /opt/local/bin/openssl md5
(stdin)= d8e8fca2dc0f896fd7cb4cb0031ba249

$ /Applications/XAMPP/xamppfiles/bin/openssl version
OpenSSL 0.9.8k 25 Mar 2009
$ echo test | /Applications/XAMPP/xamppfiles/bin/openssl md5
d8e8fca2dc0f896fd7cb4cb0031ba249

This script update removes that spurious text, if present:

AEGIR_DB_PASS=echo $RANDOM:\date`:$AEGIR_HOST | openssl md5 | sed -e 's/(stdin)= //;'`

3)
Interested in moving to a GNU-like configuration system? Eg, http://en.wikipedia.org/wiki/GNU_build_system where installation parameters & file paths are determined upfront, before use. Then it's easier to identify incompatible things, and we get a roadmap for better installation parameterization.

I was running into this as

deviantintegral's picture

I was running into this as well, and your sed command still works. I've opened an issue.

Hi, I think I recall having

maikeru's picture

Hi,

I think I recall having the same problem as yourself. Related to a issue with my mail setup.

This is the clue:

Unable to send e-mail. Please contact the site administrator if the problem persists.

You need to configure a mail transfer agent like sendmail or postfix.

Theres a paragraph about it in the install.txt

I need help in this.

tqthong's picture

An error occurred at function : drush_provision_drupal_provision_install_backend                                                                                                          [error]
An error occurred at function : drush_provision_drupal_provision_install                                                                                                                  [error]
Could not find a Drupal settings.php file at ./sites/default/settings.php.                                                                                                                [error]
An error occurred at function : drush_provision_drupal_provision_verify_validate                                                                                                          [error]
An error occurred at function : drush_provision_hostmaster_install                                                                                                                        [error]

Thanks for question.

I need any body has experience in Aegir system can help me to fix this error. I try to install many version of AEgir (0.3, 0.4-alpha3, 0.4-alpha12, 0.4-alpha13) but it also have problem.

Does anyone has installed AEgir system successfully, please help me to install this (step-by-step, document, video, ...)

My system is: Ubuntu 9.10

Thanks for all

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week