The Aegir project would like to present our 0.4 alpha 14 release. This release is primarily a bug fix release, fixing yet more problems relating to site imports, but more importantly restoring the redirect functionality that was disabled in the previous alphas. It also contains some code cleanup and drupal 7 compatibility fixes.
This is the final release before the DNS feature branch is merged in.
Bugfixes:
#872064 : 0.4 regression - 'redirects'
#907248 : Aegir forces default profile on site import and on first verify breaks the site by disabling all non-core modules
#903872 : Rename task clones original site and doesn't delete the old site (git head)
#908904 : Call to undefined function drupal_set_error in provision/http/http.ssl.inc on line 59
#905160 : Expand link in Error messages from log malfunctions
--
The Aegir Project
Installing and upgrading :
The canonical source of installation documentation is as usual the excellent INSTALL.txt. We have an automated and scripted upgrade process for the front end, which you can read more about in UPGRADE.txt.
For those updating from before 0.4-alpha8, please note that there are instructions at the bottom of the UPGRADE.txt for you. This obviously also applies to people upgrading from 0.3.
NOTE REGARDING SSL: If you had the SSL module/hosting feature installed that was included in 0.4 Alpha 8, you need to disable it first before attempting an upgrade.
NOTE REGARDING REDIRECTS: You will need to re-verify sites that are using alias redirection before the redirection will be active again.
This release also requires fixes that are only present in the 3.3 release of Drush. The install script will automatically fetch the correct release of Drush for you, but you need to upgrade Drush manually when upgrading Aegir.

Comments
SSL IP handling and Apache VirtualHosts
Since the multi-server code was added, I noticed that SSL keeps getting screwy in my Aegir install. Basically, at the moment I've got one server running Aegir, so no multi-server needed. The server has one IP interface, a wildcard domain entry and a wildcard SSL certificate. I've added the valid wildcard certificate into Aegir (with difficulty) and can get a site running under SSL. However, each time a new site is SSL-enabled it's apache configuration file is written as:
<VirtualHost 192.168.1.10:443>I believe our problem stems from the way Apache does SSL virtualhost selection and how we are using SSL with wildcards and one certificate. If you are using IP based virtualhosts as above instead of wildcard (see example below), the first time that Aegir adds a virtualhost with an IP address it messes up all the other wildcard virtualhosts and all https requests go to the one IP based virtualhost. This is not the desired result. Is there any chance of an option to use IP or wildcard virtualhosts with SSL. Maybe dependent on a flag on the SSL certificate, "Is Certificate Wildcard".
For the moment, anytime I add/clone/re-verify/etc. a site, I've been manually going in and changing the Apache VirtualHost SSL section to use the wildcard option.
<VirtualHost *:443>Thanks,
-Tim
Adrian, Thank you (and all
Adrian,
Thank you (and all the other developers and testers) who contributed to this release.
I notice in IRC a lot of people upgrading Aegir (hostmaster/provision etc) have had issues in the past. What do you suggest is the best way to backup up your sites and platforms before attempting to upgrade? i.e. Is a backup of var/aegir and sub directories sufficient or overkill? Should individual sites dbs be sql dumped prior to upgrading?
Not that I'm expecting things to go wrong - I'm just trying to expect the best and plan for the worst :)
Thanks
I cannot get the upgrade to work
EDIT: While I got these warnings, it looks like the update happened just fine. Will report back if there are errors because of update
Created developmentsoc_0 database [success]
array_keys(): The first argument [warning]
should be an array
deploy.provision.inc:84
array_merge(): Argument #2 is not [warning]
an array deploy.provision.inc:88
Invalid argument supplied for [warning]
foreach() deploy.provision.inc:89
No database updates required [success]
'all' cache was cleared [success]
Finished performing updates. [ok]
Dispatch command was run [success]
successfully
This command will replace your crontab for this user. continue? (y/n): y
/var/aegir/drush/drush.php '@hostmaster' hosting-dispatch
Anietie Ekanem
Social Niche Guru Inc.
http://SocialNicheGuru.com
http://facebook.com/SocialNicheGuru
Got the same errors,
Got the same errors, everything seems fine though. Redirects work after verifying, as stated.
Just upgraded 2 systems, noticed one thing
Everything went smooth as butter but I noticed that I can't migrate to a different install profile like I used to be able to using: http://groups.drupal.org/node/83724#comment-302464
Did this get changed up?
All seemed to go pretty
All seemed to go pretty smoothly for me. Thanks!
--
Tom
www.systemseed.com - drupal development. drupal training. drupal support.
Ubuntu 8.04
upgrade from 0.4 alpha 5 worked for me.
unable to upgrade from alpha11
i was having the same issue upgrading from alpha11 to alpha14 as I was when upgrading from alpha9 to alpha10:
Dunno what the problem is or was, but I followed adrian's instructions to manually migrate and get up to alpha14.
Smooth as buttah
Thanks, this was the smoothest upgrade in aegir history for me. About 3 mins total work, which is a HUGE improvement. Thanks for focusing on bug fixing before the DNS stuff hits.
Upgrade problems
I am upgrading from alpha8 and am running into a mysterious issue when migrating to alpha14. I can't seem to figure out what the problem is from the error messages. This is on Ubuntu 10.04 and php 5.3. Here is the verbose console output:
aegir@MACH-5:~/hostmaster-4a8$ $DRUSH hostmaster-migrate aegir.mysite.com $DRUPAL_DIR -v
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
Initialized Drupal 6.17 root directory at /var/aegir/hostmaster-4a8 [notice]
Load alias @self [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Provision configuration path /var/aegir/config/server_master exists. [message]
Provision configuration ownership of /var/aegir/config/server_master has been changed to aegir. [message]
Provision configuration permissions of /var/aegir/config/server_master have been changed to 711. [message]
Provision configuration path /var/aegir/config/server_master is writable. [message]
Backup path /var/aegir/backups exists. [message]
Backup ownership of /var/aegir/backups has been changed to aegir. [message]
Backup permissions of /var/aegir/backups have been changed to 700. [message]
Backup path /var/aegir/backups is writable. [message]
Provision PHP configuration path /var/aegir/config/includes exists. [message]
Provision PHP configuration ownership of /var/aegir/config/includes has been changed to aegir. [message]
Provision PHP configuration permissions of /var/aegir/config/includes have been changed to 711. [message]
Provision PHP configuration path /var/aegir/config/includes is writable. [message]
Global configuration file exists [message]
Provision can create new databases. [message]
Webserver custom configuration path /var/aegir/config/server_master/apache/conf.d exists. [message]
Webserver custom configuration ownership of /var/aegir/config/server_master/apache/conf.d has been changed to aegir. [message]
Webserver custom configuration permissions of /var/aegir/config/server_master/apache/conf.d have been changed to 700. [message]
Webserver custom configuration path /var/aegir/config/server_master/apache/conf.d is writable. [message]
Webserver platform configuration path /var/aegir/config/server_master/apache/platform.d exists. [message]
Webserver platform configuration ownership of /var/aegir/config/server_master/apache/platform.d has been changed to aegir. [message]
Webserver platform configuration permissions of /var/aegir/config/server_master/apache/platform.d have been changed to 700. [message]
Webserver platform configuration path /var/aegir/config/server_master/apache/platform.d is writable. [message]
Webserver virtual host configuration path /var/aegir/config/server_master/apache/vhost.d exists. [message]
Webserver virtual host configuration ownership of /var/aegir/config/server_master/apache/vhost.d has been changed to aegir. [message]
Webserver virtual host configuration permissions of /var/aegir/config/server_master/apache/vhost.d have been changed to 700. [message]
Webserver virtual host configuration path /var/aegir/config/server_master/apache/vhost.d is writable. [message]
Template loaded: /var/aegir/.drush/provision/http/apache/server.tpl.php [notice]
Generated config web server configuration file [message]
Created symlink for apache.conf on MACH-5 [notice]
apache on MACH-5 has been restarted [notice]
Command dispatch complete [notice]
The external command could not be executed due to an application error. [error]
Load alias @hostmaster [notice]
Load alias @platform_hostmaster4a8 [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Initialized Drupal 6.17 root directory at /var/aegir/hostmaster-4a8 [notice]
Initialized Drupal site aegir.example.com at sites/aegir.example.com [notice]
Template loaded: /var/aegir/.drush/provision/platform/provision_drupal_settings.tpl.php [notice]
Changed permissions of /var/aegir/hostmaster-4a8/sites/aegir.example.com/settings.php to 640 [message]
Generated config Drupal settings.php file [message]
Changed permissions of /var/aegir/hostmaster-4a8/sites/aegir.example.com/settings.php to 440 [message]
Change group ownership of /var/aegir/hostmaster-4a8/sites/aegir.example.com/settings.php to www-data [message]
Drush command could not be completed. [error]
Output from failed command : [error]
Load alias @hostmaster [notice]
Load alias @platform_hostmaster4a8 [notice]
Load alias @self [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Load alias @platform_hostmaster04alpha14 [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php [notice]
Changed permissions of /var/aegir/.drush/platform_hostmaster04alpha14.alias.drushrc.php to 600 [message]
Generated config Drush configuration file [message]
Changed permissions of /var/aegir/.drush/platform_hostmaster04alpha14.alias.drushrc.php to 400 [message]
Command dispatch complete [notice]
Output from failed command : [error]
Load alias @platform_hostmaster04alpha14 [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Initialized Drupal 6.19 root directory at /var/aegir/hostmaster-0.4-alpha14 [notice]
Drupal sites directory /var/aegir/hostmaster-0.4-alpha14/sites is writable by the provisioning script [message]
Undefined variable: sites provision_drupal.drush.inc:330 [notice]
This platform is running drupal 6.19 [notice]
Found 33 modules in base [notice]
Found 6 themes in base [notice]
Found install profile hostmaster [notice]
Found install profile default [notice]
Found 26 modules in profiles/hostmaster [notice]
Found 1 themes in profiles/hostmaster [notice]
Template loaded: /var/aegir/.drush/provision/http/apache/platform.tpl.php [notice]
Generated config platform configuration file [message]
apache on MACH-5 has been restarted [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc.tpl.php [notice]
Changed permissions of /var/aegir/hostmaster-0.4-alpha14/drushrc.php to 600 [message]
Generated config Platform Drush configuration file [message]
Changed permissions of /var/aegir/hostmaster-0.4-alpha14/drushrc.php to 400 [message]
Command dispatch complete [notice]
Output from failed command : [error]
An error occurred at function : drush_provision_hostmaster_migrate_validate [error]
Command dispatch complete [notice]
Site "Not found" after re-verifying sites on remote servers
Just upgraded to Alpha14 from Alpha11 and am having issues with the sites on my remote server. If untouched everything is working fine but if I run a verify on any of the sites/platforms on my remote websever they verify fine (no errors) but they are no longer accessible, I get:
Not FoundThe requested URL / was not found on this server.
Apache/2.2.12 (Ubuntu) Server at www.xxxxxxx.com Port 80
If I verify a site/platform on the master server it verifies fine and is accessible.
I have run Verify on both the Platform and Sites on the remote server and they complete normally with no errors (all green).
Any Ideas?
I had this error too, it was
I had this error too, it was resolved by changing all host entries to wildcard instead of fixed IP
So in vhost files you need to change 192.168.0.1:80 to *:80 for example, then restart apache and it should work again.
@BrianGilbert_
Help make Drupal Melbourne meetups more awesome:
http://groups.drupal.org/node/204518
The best way to grow your local commununity is by participating in it!
Install on non-standard port
Can Aegir be installed on a non-standard port. I have ngnix running on port 80 with another application.
Anietie Ekanem
Social Niche Guru Inc.
http://SocialNicheGuru.com
http://facebook.com/SocialNicheGuru
Create New Site Issues
I have added a D7 beta 1 platform, verified it, and went to add a site to it. The process went well until the end. Here is the log info:
Drush bootstrap phase : _drush_bootstrap_drupal_root()Loading drushrc "/var/aegir/drupal-7.x-dev/drushrc.php" into "drupal" scope.
Initialized Drupal 7.0-dev root directory at /var/aegir/drupal-7.x-dev
Found command: provision-install (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @platform_Drupal7Beta1
Load alias @server_master
Loading mysql driver for the db service
Loading apache driver for the http service
Including /var/aegir/.drush/provision/db/install.provision.inc
Including /var/aegir/.drush/provision/example/install.provision.inc
Including /var/aegir/.drush/provision/http/install.provision.inc
Including /var/aegir/.drush/provision/platform/install.provision.inc
PROVISION_SITE_INSTALLED
An error occurred at function : drush_provision_drupal_provision_install_validate
Command dispatch complete
Peak memory usage was 9.93 MB
An error occurred at function : drush_hosting_task
Command dispatch complete
Peak memory usage was 21.18 MB
Any help on this would be great.
Ok I figured out something.
Ok I figured out something. My Aegir is on the domain dev.example.com, and that site I tried to add, I wanted to use the domain newsite.dev.example.com, which has the above errors. When using newsite.devel.example.com, the site is created. hmmm
Failed a new install
I believe I've followed the install.txt as linked above verbatum, and this is what happens when I run the install script:
tnanek@aragorn:/var/aegir$ sudo su -s /bin/sh aegir -c "sh install.sh.txt dev.example.com"
install.sh.txt: 72: dev.example.com: not found
==> Aegir 0.4-alpha14 automated install script
==> MySQL is listening on -?,.
==> 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 : [removed]
Hostname : (-?,)
You will be asked to enter your mysql root user password now :
Enter password:
==> Installing drush in /var/aegir
--2010-10-15 00:46:15-- 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 336K/s in 0.5s 2010-10-15 00:46:16 (336 KB/s) -drush-6.x-3.3.tar.gz' saved [174892/174892]==> Drush seems to be functioning properly
==> Installing provision backend in /var/aegir/.drush
--2010-10-15 00:46:18-- http://files.aegirproject.org/provision-0.4-alpha14.tgz
Resolving files.aegirproject.org... 209.44.112.115
Connecting to files.aegirproject.org|209.44.112.115|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 94655 (92K) [application/x-gzip]
Saving to:
provision-0.4-alpha14.tgz' 100%[=============================================================>] 94,655 369K/s in 0.3s 2010-10-15 00:46:18 (369 KB/s) -provision-0.4-alpha14.tgz' saved [94655/94655]==> Installing the frontend
Project drush_make (6.x-2.0-beta9) downloaded to /var/aegir/.drush/drush_make. [success]
array_map(): Argument #2 should be an array db.drush.inc:44 [warning]
array_map(): Argument #2 should be an array db.drush.inc:44 [warning]
The external command could not be executed due to an application error. [error]
array_map(): Argument #2 should be an array db.drush.inc:44 [warning]
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]
SQLSTATE[28000] [1045] Access denied for user 'aegir'@'localhost' (using password: NO) [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
/var/aegir/.drush/provision/db/db.drush.inc on line 315
An error occurred at function : drush_provision_hostmaster_install [error]
Unsure as to what could be causing the error, if it is indeed on my end; I'm on a new Ubuntu 10.10 virtual machine, and I didn't change any of the commands from the install.txt. Note that I edited the domain above and the password for the aegir_root.
The only possible issue for me is that I had used the install.txt link on the main group documentation page (from alpha11), rather than on this page. About to go and update that so it is what this one is, but any changes that happened between the versions I did not get. Planning to try again this weekend, with the correct install.txt being referenced.
...
...
check that you have the
check that you have the correct hostname on the command line first.
tnanek@aragorn:/var/aegir$ sudo su -s /bin/sh aegir -c "sh install.sh.txt dev.example.com"
should be
tnanek@aragorn:/var/aegir$ sudo su -s /bin/sh aegir -c "sh install.sh.txt yourserver.yourdomain.com"
also, doesn't look like you've added the mysql user "aegir" in preparation for aegir install script.
I did that; I just changed
I did that; I just changed the hostname in this for security reasons.
I thought I entered the mysql root password to allow it to create the super user of aegir_root, with the correct permissions?
perhaps
perhaps try deleting the content of /var/aegir/* plus in /var/aegir/.drush/*
then try to run the install again.