Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Created Apr 15, 2012
Embed
What would you like to do?
aegir install failing
root@gnoki:~# dpkg --purge aegir-hostmaster aegir aegir-provision ; rm -rf /var/aegir/ ; env DPKG_DEBUG=developer apt-get -y install aegir
(Reading database ... 21865 files and directories currently installed.)
Removing aegir-hostmaster ...
Purging configuration files for aegir-hostmaster ...
Removing aegir ...
Removing aegir-provision ...
Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using gnoki.giantrobot.co.nz for ServerName
.
Purging configuration files for aegir-provision ...
dpkg: warning: while removing aegir-provision, directory '/var/aegir/config' not empty so not removed.
dpkg: warning: while removing aegir-provision, directory '/var/aegir' not empty so not removed.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aegir-hostmaster aegir-provision
The following NEW packages will be installed:
aegir aegir-hostmaster aegir-provision
0 upgraded, 3 newly installed, 0 to remove and 46 not upgraded.
Need to get 0 B/122 kB of archives.
After this operation, 1,032 kB of additional disk space will be used.
Preconfiguring packages ...
+ grep -q Drupal bootstrap.*Successful
+ su -s /bin/sh aegir -c drush @hostmaster status
+ db_input medium aegir/email
+ _db_cmd INPUT medium aegir/email
+ IFS= printf %s\n INPUT medium aegir/email
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input high aegir/site
+ _db_cmd INPUT high aegir/site
+ IFS= printf %s\n INPUT high aegir/site
+ IFS=
read -r _db_internal_line
+ RET=question will be asked
+ return 0
+ db_get aegir/email
+ _db_cmd GET aegir/email
+ IFS= printf %s\n GET aegir/email
+ IFS=
read -r _db_internal_line
+ RET=
+ return 0
+ [ -z ]
+ hostname -f
+ db_set aegir/email aegir@gnoki
+ _db_cmd SET aegir/email aegir@gnoki
+ IFS= printf %s\n SET aegir/email aegir@gnoki
+ IFS=
read -r _db_internal_line
+ RET=value set
+ return 0
+ db_get aegir/site
+ _db_cmd GET aegir/site
+ IFS= printf %s\n GET aegir/site
+ IFS=
read -r _db_internal_line
+ RET=
+ return 0
+ [ -z ]
+ hostname -f
+ db_set aegir/site gnoki
+ _db_cmd SET aegir/site gnoki
+ IFS= printf %s\n SET aegir/site gnoki
+ IFS=
read -r _db_internal_line
+ RET=value set
+ return 0
+ db_input low aegir/makefile
+ _db_cmd INPUT low aegir/makefile
+ IFS= printf %s\n INPUT low aegir/makefile
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input low aegir/db_host
+ _db_cmd INPUT low aegir/db_host
+ IFS= printf %s\n INPUT low aegir/db_host
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input low aegir/db_user
+ _db_cmd INPUT low aegir/db_user
+ IFS= printf %s\n INPUT low aegir/db_user
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_fset aegir/db_password seen false
+ _db_cmd FSET aegir/db_password seen false
+ IFS= printf %s\n FSET aegir/db_password seen false
+ IFS=
read -r _db_internal_line
+ RET=false
+ return 0
+ db_input high aegir/db_password
+ _db_cmd INPUT high aegir/db_password
+ IFS= printf %s\n INPUT high aegir/db_password
+ IFS=
read -r _db_internal_line
+ RET=question will be asked
+ return 0
+ db_go
+ _db_cmd GO
+ IFS= printf %s\n GO
+ IFS=
read -r _db_internal_line
+ RET=ok
+ return 0
Selecting previously deselected package aegir-provision.
(Reading database ... 21697 files and directories currently installed.)
Unpacking aegir-provision (from .../aegir-provision_1.7_all.deb) ...
Selecting previously deselected package aegir-hostmaster.
Unpacking aegir-hostmaster (from .../aegir-hostmaster_1.7_all.deb) ...
Selecting previously deselected package aegir.
Unpacking aegir (from .../apt/archives/aegir_1.7_all.deb) ...
Setting up aegir-provision (1.7) ...
+ VARLIB=/var/aegir
+ getent passwd aegir
+ echo adding aegir user...
adding aegir user...
+ adduser --quiet --system --no-create-home --group --home /var/aegir --shell /bin/bash --gecos Aegir user,,, aegir
+ adduser --quiet aegir www-data
Adding user aegir to group www-data
+ [ -d /etc/sudoers.d ]
+ ucf --debconf-ok /usr/share/doc/aegir-provision/examples/example.sudoers /etc/sudoers.d/aegir
Creating config file /etc/sudoers.d/aegir with new version
+ ucfr aegir-provision /etc/sudoers.d/aegir
+ chmod 440 /etc/sudoers.d/aegir
+ chown aegir:aegir /var/aegir /var/aegir/config
+ touch /var/aegir/config/apache.conf
+ chown aegir:aegir /var/aegir/config/apache.conf
+ ln -sf /var/aegir/config/apache.conf /etc/apache2/conf.d/aegir.conf
+ a2enmod ssl rewrite
Module ssl already enabled
Module rewrite already enabled
+ apache2ctl graceful
apache2: Could not reliably determine the server's fully qualified domain name, using gnoki.giantrobot.co.nz for ServerName
+ exit 0
Setting up aegir-hostmaster (1.7) ...
+ grep -q Drupal bootstrap.*Successful
+ su -s /bin/sh aegir -c drush @hostmaster status
+ db_input medium aegir/email
+ _db_cmd INPUT medium aegir/email
+ IFS= printf %s\n INPUT medium aegir/email
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input high aegir/site
+ _db_cmd INPUT high aegir/site
+ IFS= printf %s\n INPUT high aegir/site
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_get aegir/email
+ _db_cmd GET aegir/email
+ IFS= printf %s\n GET aegir/email
+ IFS=
read -r _db_internal_line
+ RET=aegir@gnoki
+ return 0
+ [ -z aegir@gnoki ]
+ db_get aegir/site
+ _db_cmd GET aegir/site
+ IFS= printf %s\n GET aegir/site
+ IFS=
read -r _db_internal_line
+ RET=gnoki
+ return 0
+ [ -z gnoki ]
+ db_input low aegir/makefile
+ _db_cmd INPUT low aegir/makefile
+ IFS= printf %s\n INPUT low aegir/makefile
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input low aegir/db_host
+ _db_cmd INPUT low aegir/db_host
+ IFS= printf %s\n INPUT low aegir/db_host
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_input low aegir/db_user
+ _db_cmd INPUT low aegir/db_user
+ IFS= printf %s\n INPUT low aegir/db_user
+ IFS=
read -r _db_internal_line
+ RET=30 question skipped
+ return 30
+ true
+ db_fset aegir/db_password seen false
+ _db_cmd FSET aegir/db_password seen false
+ IFS= printf %s\n FSET aegir/db_password seen false
+ IFS=
read -r _db_internal_line
+ RET=false
+ return 0
+ db_input high aegir/db_password
+ _db_cmd INPUT high aegir/db_password
+ IFS= printf %s\n INPUT high aegir/db_password
+ IFS=
read -r _db_internal_line
+ RET=question will be asked
+ return 0
+ db_go
+ _db_cmd GO
+ IFS= printf %s\n GO
+ IFS=
read -r _db_internal_line
+ RET=ok
+ return 0
+ VARLIB=/var/aegir
+ sed -n /^version/{s/^.*= *//;p} /usr/share/drush/commands/provision/provision.info
+ VERSION=6.x-1.7
+ FLAGS=--yes
+ [ developer = developer ]
+ FLAGS=--yes --debug
+ db_get aegir/makefile
+ _db_cmd GET aegir/makefile
+ IFS= printf %s\n GET aegir/makefile
+ IFS=
read -r _db_internal_line
+ RET=
+ return 0
+ [ ! -z ]
+ tempfile
+ TEMPFILE=/tmp/fileOvWsVm
+ su -s /bin/sh aegir -c drush --pipe @hostmaster status | egrep "site_uri|drupal_root"
+ true
+ grep -q site_uri /tmp/fileOvWsVm
+ db_get aegir/site
+ _db_cmd GET aegir/site
+ IFS= printf %s\n GET aegir/site
+ IFS=
read -r _db_internal_line
+ RET=gnoki
+ return 0
+ [ ! -z gnoki ]
+ site_uri=gnoki
+ db_get aegir/db_host
+ _db_cmd GET aegir/db_host
+ IFS= printf %s\n GET aegir/db_host
+ IFS=
read -r _db_internal_line
+ RET=localhost
+ return 0
+ AEGIR_DB_HOST=localhost
+ db_get aegir/db_user
+ _db_cmd GET aegir/db_user
+ IFS= printf %s\n GET aegir/db_user
+ IFS=
read -r _db_internal_line
+ RET=root
+ return 0
+ AEGIR_DB_USER=root
+ db_get aegir/db_password
+ _db_cmd GET aegir/db_password
+ IFS= printf %s\n GET aegir/db_password
+ IFS=
read -r _db_internal_line
+ RET=BuwSyXPG
+ return 0
+ AEGIR_DB_PASS=BuwSyXPG
+ db_get aegir/email
+ _db_cmd GET aegir/email
+ IFS= printf %s\n GET aegir/email
+ IFS=
read -r _db_internal_line
+ RET=aegir@gnoki
+ return 0
+ EMAIL=aegir@gnoki
+ db_go
+ _db_cmd GO
+ IFS= printf %s\n GO
+ IFS=
read -r _db_internal_line
+ RET=ok
+ return 0
+ db_reset aegir/db_password
+ _db_cmd RESET aegir/db_password
+ IFS= printf %s\n RESET aegir/db_password
+ IFS=
read -r _db_internal_line
+ RET=0
+ return 0
+ db_fset aegir/db_password seen true
+ _db_cmd FSET aegir/db_password seen true
+ IFS= printf %s\n FSET aegir/db_password seen true
+ IFS=
read -r _db_internal_line
+ RET=true
+ return 0
+ db_stop
+ echo STOP
+ [ -d /var/aegir/.drush/provision ]
+ echo installing the Aegir frontend (Drupal with the hostmaster profile), please wait...
installing the Aegir frontend (Drupal with the hostmaster profile), please wait...
+ su aegir -c cd /var/aegir && drush hostmaster-install --yes --debug --backend gnoki | drush backend-parse
Bootstrap to phase 0. [0.06 sec, 1.69 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.06 sec, 1.82 MB] [bootstrap]
Project information for drupal retrieved. [ok]
drupal downloaded from [ok]
http://ftp.drupal.org/files/projects/drupal-6.25.tar.gz.
hostmaster cloned from http://git.drupal.org/project/hostmaster.git. [ok]
Checked out tag 6.x-1.7. [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.8.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.
Dummy connection failed to fail: [error]
Dummy connection failed to fail: [error]
Created gnoki database [success]
Dummy connection failed to fail: [error]
Dummy connection failed to fail: [error]
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.25
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.7/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.7
%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.7 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 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: gnoki
Master server FQDN: gnoki
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.3
Aegir version: 6.x-1.7
Aegir platform path: /var/aegir/hostmaster-6.x-1.7
Aegir makefile: /usr/share/drush/commands/provision/aegir.make
Admin email: aegir@gnoki
Do you really want to proceed with the install (y/n): y
dpkg: error processing aegir-hostmaster (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of aegir:
aegir depends on aegir-hostmaster (>= 1.7); however:
Package aegir-hostmaster is not configured yet.
dpkg: error processing aegir (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
configured to not write apport reports
Errors were encountered while processing:
aegir-hostmaster
aegir
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@gnoki:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment