Aegir 0.4 alpha 10 released

Events happening in the community are now at Drupal community events on www.drupal.org.
adrian's picture

We are proud to announce the 0.4 Alpha 10 release of the Aegir Hosting System. This release contains several important bugfixes found in alpha 9. There were also a number of problems found in Drush 3.1 and Drush 3.2, which required a release of Drush 3.3 to be made to support this release.

#874716 : Loss of files directory on remote web servers on migrate/clone
#874794 : Wrong command for granting aegir shell on remote server in INSTALL.txt
#666898 : Allow user to specify db name suggestion
#877426 : Misconfigured files directory on remote servers
#874340 : Deleting a site does not remove row from hosting_context

--
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-alpha9, 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.

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

Got error when upgrading

daledude's picture

I get this error during the last drush command during upgrade. I upgraded drush to 3.3 before doing this per the UPGRADE.txt.

aegir@themyth:~/hostmaster-0.4-alpha9$ drush hostmaster-migrate aegir.lan /opt/aegir/hostmaster-0.4-alpha10
Drupal sites directory /sites is not writable by the provisioning script [error]
An error occurred at function : drush_provision_drupal_pre_provision_verify [error]
An error occurred at function : drush_provision_hostmaster_migrate_validate [error]

========
The debug version:
aegir@themyth:~/hostmaster-0.4-alpha9$ drush -d hostmaster-migrate aegir.lan /opt/aegir/hostmaster-0.4-alpha10
Drush bootstrap phase : drush_bootstrap_drupal_root() [0.1 sec, 8.35 MB] [bootstrap]
Loading drushrc "/opt/aegir/hostmaster-0.4-alpha9/drushrc.php" into "drupal" scope. [0.1 sec, 8.36 MB] [bootstrap]
Initialized Drupal 6.17 root directory at /opt/aegir/hostmaster-0.4-alpha9 [0.12 sec, 9.82 MB] [notice]
Found command: hostmaster-migrate (commandfile=provision) [0.14 sec, 9.82 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.14 sec, 9.82 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.15 sec, 9.83 MB] [bootstrap]
Initializing drush commandfile: provision [0.15 sec, 9.83 MB] [bootstrap]
Load alias @self [0.15 sec, 9.83 MB] [notice]
Load alias @server_master [0.15 sec, 9.84 MB] [notice]
Loading mysql driver for the db service [0.15 sec, 9.86 MB] [notice]
Loading apache driver for the http service [0.15 sec, 9.87 MB] [notice]
Including /opt/aegir/.drush/provision/migrate.hostmaster.inc [0.15 sec, 9.89 MB] [bootstrap]
Undefined index: config_path migrate.hostmaster.inc:12 [0.16 sec, 9.97 MB] [notice]
Undefined index: script_user migrate.hostmaster.inc:14 [0.16 sec, 9.97 MB] [notice]
Undefined index: web_group migrate.hostmaster.inc:17 [0.16 sec, 9.97 MB] [notice]
Undefined index: master_url migrate.hostmaster.inc:18 [0.16 sec, 9.97 MB] [notice]
Undefined index: restart_cmd migrate.hostmaster.inc:19 [0.16 sec, 9.97 MB] [notice]
Undefined index: master_db migrate.hostmaster.inc:22 [0.16 sec, 9.98 MB] [notice]
Running: /usr/bin/php /opt/aegir/drush/drush.php --php=/usr/bin/php --context_type='server' --remote_host='themyth' --http_service_type='apache' --db_service_type='mysql' --root='/opt/aegir/hostmaster-0.4-alpha9' [command]
provision-save '@server_master' --backend [0.16 sec, 9.98 MB]
Drush bootstrap phase : _drush_bootstrap_drush() [0.31 sec, 10.03 MB] [bootstrap]
Found command: provision-save (commandfile=provision) [0.31 sec, 10.03 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.32 sec, 10.03 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.32 sec, 10.03 MB] [bootstrap]
Initializing drush commandfile: provision [0.32 sec, 10.03 MB] [bootstrap]
Load alias @self [0.32 sec, 10.03 MB] [notice]
Load alias @server_master [0.32 sec, 10.03 MB] [notice]
Loading mysql driver for the db service [0.32 sec, 10.03 MB] [notice]
Loading apache driver for the http service [0.32 sec, 10.04 MB] [notice]
Loading mysql driver for the db service [0.32 sec, 10.04 MB] [notice]
Undefined index: host db.drush.inc:263 [0.32 sec, 10.04 MB] [notice]
Loading apache driver for the http service [0.32 sec, 10.04 MB] [notice]
Template loaded: /opt/aegir/.drush/provision/provision_drushrc_alias.tpl.php [0.32 sec, 10.04 MB] [notice]
Changed permissions of /opt/aegir/.drush/server_master.alias.drushrc.php to 600 [0.32 sec, 10.04 MB] [message]
Generated config Drush configuration file [0.32 sec, 10.04 MB] [message]
Changed permissions of /opt/aegir/.drush/server_master.alias.drushrc.php to 400 [0.32 sec, 10.04 MB] [message]
Command dispatch complete [0.32 sec, 10.04 MB] [notice]
Peak memory usage was 8.61 MB [0.32 sec, 10.05 MB] [memory]
Running: /usr/bin/php /opt/aegir/drush/drush.php --php=/usr/bin/php @server_master provision-verify --backend [0.32 sec, 10.01 MB] [command]
Drush bootstrap phase : _drush_bootstrap_drush() [0.6 sec, 10.11 MB] [bootstrap]
Load alias @server_master [0.6 sec, 10.11 MB] [notice]
Found command: provision-verify (commandfile=provision) [0.6 sec, 10.11 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.6 sec, 10.11 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.6 sec, 10.11 MB] [bootstrap]
Initializing drush commandfile: provision [0.6 sec, 10.12 MB] [bootstrap]
Loading mysql driver for the db service [0.6 sec, 10.12 MB] [notice]
Loading apache driver for the http service [0.6 sec, 10.12 MB] [notice]
Including /opt/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [0.6 sec, 10.12 MB] [bootstrap]
Including /opt/aegir/.drush/provision/platform/verify.provision.inc [0.6 sec, 10.12 MB] [bootstrap]
Provision configuration path /opt/aegir/config/server_master exists. [0.6 sec, 10.12 MB] [message]
Provision configuration ownership of /opt/aegir/config/server_master has been changed to aegir. [0.6 sec, 10.12 MB] [message]
Provision configuration permissions of /opt/aegir/config/server_master have been changed to 711. [0.6 sec, 10.12 MB] [message]
Provision configuration path /opt/aegir/config/server_master is writable. [0.6 sec, 10.12 MB] [message]
Backup path /opt/aegir/backups exists. [0.6 sec, 10.13 MB] [message]
Backup ownership of /opt/aegir/backups has been changed to aegir. [0.6 sec, 10.13 MB] [message]
Backup permissions of /opt/aegir/backups have been changed to 700. [0.6 sec, 10.13 MB] [message]
Backup path /opt/aegir/backups is writable. [0.6 sec, 10.13 MB] [message]
Provision PHP configuration path /opt/aegir/config/includes exists. [0.61 sec, 10.13 MB] [message]
Provision PHP configuration ownership of /opt/aegir/config/includes has been changed to aegir. [0.61 sec, 10.13 MB] [message]
Provision PHP configuration permissions of /opt/aegir/config/includes have been changed to 711. [0.61 sec, 10.13 MB] [message]
Provision PHP configuration path /opt/aegir/config/includes is writable. [0.61 sec, 10.13 MB] [message]
Global configuration file exists [0.61 sec, 10.14 MB] [message]
Provision can create new databases. [0.61 sec, 10.14 MB] [message]
Webserver custom configuration path /opt/aegir/config/server_master/apache/conf.d exists. [0.61 sec, 10.14 MB] [message]
Webserver custom configuration ownership of /opt/aegir/config/server_master/apache/conf.d has been changed to aegir. [0.61 sec, 10.14 MB] [message]
Webserver custom configuration permissions of /opt/aegir/config/server_master/apache/conf.d have been changed to 700. [0.61 sec, 10.14 MB] [message]
Webserver custom configuration path /opt/aegir/config/server_master/apache/conf.d is writable. [0.61 sec, 10.14 MB] [message]
Webserver platform configuration path /opt/aegir/config/server_master/apache/platform.d exists. [0.61 sec, 10.14 MB] [message]
Webserver platform configuration ownership of /opt/aegir/config/server_master/apache/platform.d has been changed to aegir. [0.61 sec, 10.14 MB] [message]
Webserver platform configuration permissions of /opt/aegir/config/server_master/apache/platform.d have been changed to 700. [0.61 sec, 10.14 MB] [message]
Webserver platform configuration path /opt/aegir/config/server_master/apache/platform.d is writable. [0.62 sec, 10.15 MB] [message]
Webserver virtual host configuration path /opt/aegir/config/server_master/apache/vhost.d exists. [0.62 sec, 10.15 MB] [message]
Webserver virtual host configuration ownership of /opt/aegir/config/server_master/apache/vhost.d has been changed to aegir. [0.62 sec, 10.15 MB] [message]
Webserver virtual host configuration permissions of /opt/aegir/config/server_master/apache/vhost.d have been changed to 700. [0.62 sec, 10.15 MB] [message]
Webserver virtual host configuration path /opt/aegir/config/server_master/apache/vhost.d is writable. [0.62 sec, 10.15 MB] [message]
Template loaded: /opt/aegir/.drush/provision/http/apache/server.tpl.php [0.62 sec, 10.15 MB] [notice]
Generated config web server configuration file [0.62 sec, 10.15 MB] [message]
Created symlink for apache.conf on themyth [0.62 sec, 10.15 MB] [notice]
apache on themyth has been restarted [0.62 sec, 10.16 MB] [notice]
Command dispatch complete [0.62 sec, 10.16 MB] [notice]
Peak memory usage was 8.67 MB [0.62 sec, 10.16 MB] [memory]
Undefined index: publish_path migrate.hostmaster.inc:33 [0.62 sec, 10.07 MB] [notice]
Undefined index: publish_path migrate.hostmaster.inc:38 [0.63 sec, 10.07 MB] [notice]
Running: /usr/bin/php /opt/aegir/drush/drush.php --php=/usr/bin/php --context_type='platform' --server='@server_master' --web_server='@server_master' provision-save '@platform
' --backend [0.63 sec, 10.08 MB] [command]
Drush bootstrap phase : drush_bootstrap_drush() [0.78 sec, 10.12 MB] [bootstrap]
Found command: provision-save (commandfile=provision) [0.79 sec, 10.12 MB] [bootstrap]
Initializing drush commandfile: drush_make [0.79 sec, 10.12 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.79 sec, 10.12 MB] [bootstrap]
Initializing drush commandfile: provision [0.79 sec, 10.12 MB] [bootstrap]
Load alias @self [0.79 sec, 10.12 MB] [notice]
Load alias @server_master [0.79 sec, 10.12 MB] [notice]
Loading mysql driver for the db service [0.79 sec, 10.13 MB] [notice]
Loading apache driver for the http service [0.79 sec, 10.13 MB] [notice]
Load alias @platform
[0.79 sec, 10.13 MB] [notice]
Template loaded: /opt/aegir/.drush/provision/provision_drushrc_alias.tpl.php [0.79 sec, 10.13 MB] [notice]
Changed permissions of /opt/aegir/.drush/platform_.alias.drushrc.php to 600 [0.79 sec, 10.13 MB] [message]
Generated config Drush configuration file [0.79 sec, 10.13 MB] [message]
Changed permissions of /opt/aegir/.drush/platform_.alias.drushrc.php to 400 [0.79 sec, 10.13 MB] [message]
Command dispatch complete [0.79 sec, 10.13 MB] [notice]
Peak memory usage was 8.59 MB [0.79 sec, 10.14 MB] [memory]
Running: /usr/bin/php /opt/aegir/drush/drush.php --php=/usr/bin/php @platform_ provision-verify --backend [0.79 sec, 10.1 MB] [command]
Drush bootstrap phase : drush_bootstrap_drush() [1.02 sec, 10.61 MB] [bootstrap]
Load alias @platform
[1.02 sec, 10.61 MB] [notice]
Found command: provision-verify (commandfile=provision) [1.02 sec, 10.61 MB] [bootstrap]
Initializing drush commandfile: drush_make [1.02 sec, 10.61 MB] [bootstrap]
Initializing drush commandfile: drush_make_d_o [1.02 sec, 10.61 MB] [bootstrap]
Initializing drush commandfile: provision [1.02 sec, 10.62 MB] [bootstrap]
Load alias @server_master [1.02 sec, 10.62 MB] [notice]
Loading mysql driver for the db service [1.03 sec, 10.62 MB] [notice]
Loading apache driver for the http service [1.03 sec, 10.62 MB] [notice]
Including /opt/aegir/.drush/provision/platform/backupmigrate/verify.provision.inc [1.03 sec, 10.62 MB] [bootstrap]
Including /opt/aegir/.drush/provision/platform/verify.provision.inc [1.03 sec, 10.62 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [1.03 sec, 10.62 MB] [bootstrap]
Loading drushrc "/opt/aegir/hostmaster-0.4-alpha9/drushrc.php" into "drupal" scope. [1.03 sec, 10.62 MB] [bootstrap]
Initialized Drupal 6.17 root directory at /opt/aegir/hostmaster-0.4-alpha9 [1.03 sec, 10.62 MB] [notice]
Drupal sites directory /sites is not writable by the provisioning script [1.03 sec, 10.63 MB] [error]
This platform is running drupal 6.17 [1.03 sec, 10.63 MB] [notice]
Found 37 modules in base [1.03 sec, 10.63 MB] [notice]
Found 6 themes in base [1.03 sec, 10.63 MB] [notice]
Found install profile default [1.03 sec, 10.63 MB] [notice]
Found install profile hostmaster [1.03 sec, 10.63 MB] [notice]
Found 25 modules in profiles/hostmaster [1.03 sec, 10.63 MB] [notice]
Found 1 themes in profiles/hostmaster [1.03 sec, 10.63 MB] [notice]
An error occurred at function : drush_provision_drupal_pre_provision_verify [1.03 sec, 10.64 MB] [error]
Command dispatch complete [1.03 sec, 10.64 MB] [notice]
Peak memory usage was 11.35 MB [1.03 sec, 10.64 MB] [memory]
An error occurred at function : drush_provision_hostmaster_migrate_validate [1.03 sec, 10.14 MB] [error]
Command dispatch complete [1.03 sec, 10.11 MB] [notice]
Peak memory usage was 10.87 MB [1.03 sec, 10.1 MB] [memory]

minor comment on installation instructions

eft's picture

Thanks for releasing these bug fixes so quickly. In the database configuration instructions in INSTALL.txt I believe the name of the MySQL configuration file should be "my.cnf" (not "my.conf").

Database configuration
----------------------

To make sure that the Aegir backend, and all the possible web servers can
reach your database server, you need to configure mysql to listen on all
the public IP addresses available to it.

/etc/mysql/my.conf configuration line to comment out::
bind-address = 127.0.0.1

Trying to update from 0.4

hozt's picture

Trying to update from 0.4 beta 8 and am getting this error while running $DRUSH hostmaster-migrate $AEGIR_DOMAIN $DRUPAL_DIR

Unknown column port in field list
query: SELECT port, restart_cmd, available FROM hosting_service WHERE vid = 2 AND type = apache

@daledude - check the permission on your sites directory to make sure they are owned by aegir

Did you ever figure out the unknown column error?

timwood's picture

hozt,
Did you ever figure out your unknown column port in field list error? I've finally got around to upgrading from alpha7 to alpha13 and I encountered this error when running the hostmaster migrate task.

Thanks,
-Tim

Problem with the install

alexDV's picture

I'm trying to install alpha10 and i have this problem when i run the script:

==> Drush found in /var/aegir/drush/drush.php, good
==> Drush seems to be functionning properly
==> Provision already seems to be installed
==> Installing the frontend
A Drupal installation directory could not be found [error]
The drush command 'hostmaster-install' could not be found. [error]

$ $DRUSH hostmaster-migrate

vedat.kamer's picture

$ $DRUSH hostmaster-migrate $AEGIR_DOMAIN $DRUPAL_DIR
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]
Drupal sites directory /sites is not writable by the provisioning script [error]
An error occurred at function : drush_provision_drupal_pre_provision_verify [error]
An error occurred at function : drush_provision_hostmaster_migrate_validate [error]

gives errors while upgrading on nginx. How can I upgrade Aegir on nginx? Thank you so much.

@hotz - it seems the issue

daledude's picture

@hotz - it seems the issue was because the old aegir hostmaster drushrc.php was missing some lines so it wasn't able to figure out what the path was to the 0.4-alpha9 install. That's why it only spit out '/sites'.

@vedat.kamer - See this issue's comment that worked for me to fix your first [error].
http://drupal.org/node/880660#comment-3317680

issues go in the issue queue

aaronbauman's picture

This is not the appropriate place to post support requests or bug reports.
Please post your issues with upgrading to the issue queue
http://drupal.org/project/issues/hostmaster

i rather foolishly just realized ..

adrian's picture

i rather foolishly just realized that i never tested the alpha 9 to alpha 10 upgrade path.

Because the changes were so small I didnt think it would be a problem, but it turns out i was mistaken.
The hostmaster-migrate command is trying do a bunch of stuff that it shouldn't, because we've already done them.

Therefor alpha 11 will be out in a moment to resolve this, but if you want to upgrade to alpha 10 FROM ALPHA 9 right now you can also do :

<?php
  crontab
-r;

 
export OLD_PLATFORM=`php -r 'include(".drush/hostmaster.alias.drushrc.php"); echo $aliases["hostmaster"]["platform"];'`;
 
export NEW_PLATFORM='@platform_hostmaster04alpha10';

 
drush @server_master provision-verify;
 
drush @hostmaster provision-verify;


 
drush provision-save $NEW_PLATFORM --context_type=platform --root=/var/aegir/hostmaster-0.4-alpha10 \
     --
web_server=@server_master --server=@server_master --makefile=/var/aegir/.drush/provision/aegir.make;

 
drush $NEW_PLATFORM provision-verify;

 
drush @hostmaster provision-migrate $NEW_PLATFORM;

 
drush @hostmaster hostmaster-resume --old_platform_name=$OLD_PLATFORM --new_platform_name=$NEW_PLATFORM;
?>

@adrian - can you please

daledude's picture

@adrian - can you please comment in the http://drupal.org/node/880660 issue. Maybe the work around there isn't something we should have done. Or maybe it wasn't enough?

thanks

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