Aegir 0.4 alpha 6 released

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

The Aegir project is proud to announce the sixth alpha of our 0.4 release cycle. The focus of this release was to refactor the hosting front end to more cleanly map to the multi-server requirements for this major release. We also have some usability improvements, and some new platform management features included in this release.

The canonical source of installation documentation is 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.

Important: 0.4-alpha6 now depends on what will become Drush 3.0 beta1, and will install 3.0-beta1 for you through the excellent install script.

  • #344967 - Refactored the data model of the server node types. Introduced the concept of 'services' and created a new services api for extending servers.
  • #558450 - platform access control / permissions - Platform management. You can now configure who is able to see platforms, as well as lock them from having further sites created on them.
  • #602128 - you can also delete platforms once all sites have been moved off of them, and the platform files on the server will be removed.
  • #719704 - Missing /files/tmp in d6
  • #712016 - Grants on remote database server are now correctly generated.
  • #716166 - Reshuffled the apache config file directory. THIS REQUIRES A MANUAL UPGRADE STEP TO COMPLETE. SEE UPGRADE.TXT!
  • #497522 - Make apache return a 404 error for any sites it does not manage.
  • #710652 - Fix replacement of filepath in files table for the deploy task (i.e Cloned sites)
  • #701792 - Fix to be able to completely remove aliases from a site
  • The INSTALL and UPGRADE documentation (including HINTS files) and install.sh script have been moved into the Provision module

Comments

Thanks

robin van emden's picture

Another great update! Especially #710652 and #701792 are very useful to us.

Always forget to change permissions on our test-server when upgrading, maybe reminder is useful for others as well:

On the server Aegir apache document root lives outside of aegir home (/var/aegir), in a root owned /ebs1/sites.
It is of course necessary of /ebs1/sites to be writable to aegir.
In our case I have to temporary set it to 777.
Then "chown aegir.aegir /ebs1/sites/hostmaster_04_a5"
Now run hostmaster-migrate in /ebs1/sites/hostmaster_04_a5:

drush hostmaster-migrate aegir.site.com /ebs1/sites/hostmaster_04_a6 --uri=aegir.site.com

Permissions back to previous settings to re-enable SFTP, /ebs1/sites to 755 and "chown root.root /ebs1/sites/hostmaster_04_a6".

Now Aegir is running beautifully in all its 04_06 glory. Thanks!

Would it ever be appropriate

obrienmd's picture

Would it ever be appropriate to build provisioning of per-client or per-site shell accounts into Aegir? For instance, I add a client, and they then automatically have the ability to ssh/sftp into aegir.xyz.com, and work in their sites' filesystems?

Ugh - feel free to delete this - I have no idea why I posted it as a comment to this update. Nice work with the latest release!

Minor note: Didn't the

DanielJohnston's picture

Minor note: Didn't the previous versions of install.txt mention the necessity of enabling mod_rewrite? Can't find it in the current write-up, but apache2 restart fails without it and it presumably messes up clean urls further down the line. A quick note to a2enmod rewrite should do it.

Anyhoo, good work!

I received the mod rewrite error too

iaminawe's picture

this fixed it
sudo a2enmod rewrite

The apache.conf has that line

adrian's picture

that you are instructed to include.

Apache Config

toddgeist's picture

intalling on a fesh ubuntu 9.10 slice. I am getting an error when I try to restart apache after simlinking the conf file.

Syntax error on line 232 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/aegir.conf: No such file or directory
...fail!

I am pretty certain I followed all the instructions correctly. Does this get fixed later in the process?

eow

Does

mig5's picture

Does /var/aegir/config/apache.conf exist?

It sounds like that file /var/aegir/config/apache.conf hasn't been created for some reason. I would retry the install.sh and see if it gives an error along the way.

answering myself

toddgeist's picture

yes the config file is installed later

StuddMan's picture

Followed the Upgrade.txt and can not get the migration from alpha5 to alpha6 to complete. I have restored the server and tried this 3 times

Symptons:
- Crontab gets wiped out and is left blank
- Says the database is created but there is no evidence it ever gets created (watching in phpmyadmin while command is running)
- No aegir.bigcouchmedia.com directory is created in /var/aegir/platforms/hostmaster-0.4-alpha6/sites/
- Output says it is altering tables but they don't exist
- Here is the output of EXPORT
aegir@bcmops01:~/platforms/hostmaster-0.4-alpha5$ export
declare -x AEGIR_VERSION="0.4-alpha6"
declare -x DRUPAL_DIR="/var/aegir/platforms/hostmaster-0.4-alpha6"
declare -x DRUSH="php /var/aegir/drush/drush.php"
declare -x DRUSH_MAKE_VERSION="6.x-2.0-beta6"
declare -x DRUSH_VERSION="All-versions-3.0-beta1"
declare -x HOME="/var/aegir"
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x LESSOPEN="| /usr/bin/lesspipe %s"
declare -x LOGNAME="aegir"
declare -x MAIL="/var/mail/aegir"
declare -x OLDPWD="/var/aegir/.drush"
declare -x OLD_DRUPAL_DIR="/var/aegir/platforms/hostmaster-0.4-alpha5"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
declare -x PWD="/var/aegir/platforms/hostmaster-0.4-alpha5"
declare -x SHELL="/bin/bash"
declare -x SHLVL="2"
declare -x SSH_CLIENT="76.110.124.34 49156 22"
declare -x SSH_CONNECTION="76.110.124.34 49156 204.232.211.234 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="xterm"
declare -x USER="aegir"

  • Here is the output of the $DRUSH hostmaster-migrate aegir.bigcouchmedia.com $DRUPAL_DIR command

aegir@bcmops01:~/platforms/hostmaster-0.4-alpha5$ $DRUSH hostmaster-migrate aegir.bigcouchmedia.com $DRUPAL_DIR
This command will replace your crontab entry. continue? (y/n): y
no crontab for aegir
No hook functions were found for hostmaster-pause. [warning]
Available drush_invoke() hooks for hostmaster-pause: [warning]
drush_core_hostmaster_pause_validate
drush_drush_make_hostmaster_pause_validate
drush_drush_make_d_o_hostmaster_pause_validate
drush_hosting_hostmaster_pause_validate
drush_hosting_alias_hostmaster_pause_validate
drush_hosting_client_hostmaster_pause_validate
drush_hosting_clone_hostmaster_pause_validate
drush_hosting_db_server_hostmaster_pause_validate
drush_hosting_migrate_hostmaster_pause_validate
drush_hosting_package_hostmaster_pause_validate
drush_hosting_platform_hostmaster_pause_validate
drush_hosting_site_hostmaster_pause_validate
drush_hosting_ssl_hostmaster_pause_validate
drush_hosting_web_server_hostmaster_pause_validate
drush_pm_hostmaster_pause_validate
drush_provision_hostmaster_pause_validate
drush_provision_apache_hostmaster_pause_validate
drush_provision_drupal_hostmaster_pause_validate
drush_provision_mysql_hostmaster_pause_validate
drush_provision_ssl_hostmaster_pause_validate
drush_search_hostmaster_pause_validate
drush_simpletest_hostmaster_pause_validate
drush_site_install_hostmaster_pause_validate
drush_sitealias_hostmaster_pause_validate
drush_sql_hostmaster_pause_validate
drush_upgrade_hostmaster_pause_validate
drush_variable_hostmaster_pause_validate
drush_watchdog_hostmaster_pause_validate
drush_core_pre_hostmaster_pause
drush_drush_make_pre_hostmaster_pause
drush_drush_make_d_o_pre_hostmaster_pause
drush_hosting_pre_hostmaster_pause
drush_hosting_alias_pre_hostmaster_pause
drush_hosting_client_pre_hostmaster_pause
drush_hosting_clone_pre_hostmaster_pause
drush_hosting_db_server_pre_hostmaster_pause
drush_hosting_migrate_pre_hostmaster_pause
drush_hosting_package_pre_hostmaster_pause
drush_hosting_platform_pre_hostmaster_pause
drush_hosting_site_pre_hostmaster_pause
drush_hosting_ssl_pre_hostmaster_pause
drush_hosting_web_server_pre_hostmaster_pause
drush_pm_pre_hostmaster_pause
drush_provision_pre_hostmaster_pause
drush_provision_apache_pre_hostmaster_pause
drush_provision_drupal_pre_hostmaster_pause
drush_provision_mysql_pre_hostmaster_pause
drush_provision_ssl_pre_hostmaster_pause
drush_search_pre_hostmaster_pause
drush_simpletest_pre_hostmaster_pause
drush_site_install_pre_hostmaster_pause
drush_sitealias_pre_hostmaster_pause
drush_sql_pre_hostmaster_pause
drush_upgrade_pre_hostmaster_pause
drush_variable_pre_hostmaster_pause
drush_watchdog_pre_hostmaster_pause
drush_core_hostmaster_pause
drush_drush_make_hostmaster_pause
drush_drush_make_d_o_hostmaster_pause
drush_hosting_hostmaster_pause
drush_hosting_alias_hostmaster_pause
drush_hosting_client_hostmaster_pause
drush_hosting_clone_hostmaster_pause
drush_hosting_db_server_hostmaster_pause
drush_hosting_migrate_hostmaster_pause
drush_hosting_package_hostmaster_pause
drush_hosting_platform_hostmaster_pause
drush_hosting_site_hostmaster_pause
drush_hosting_ssl_hostmaster_pause
drush_hosting_web_server_hostmaster_pause
drush_pm_hostmaster_pause
drush_provision_hostmaster_pause
drush_provision_apache_hostmaster_pause
drush_provision_drupal_hostmaster_pause
drush_provision_mysql_hostmaster_pause
drush_provision_ssl_hostmaster_pause
drush_search_hostmaster_pause
drush_simpletest_hostmaster_pause
drush_site_install_hostmaster_pause
drush_sitealias_hostmaster_pause
drush_sql_hostmaster_pause
drush_upgrade_hostmaster_pause
drush_variable_hostmaster_pause
drush_watchdog_hostmaster_pause
drush_core_post_hostmaster_pause
drush_drush_make_post_hostmaster_pause
drush_drush_make_d_o_post_hostmaster_pause
drush_hosting_post_hostmaster_pause
drush_hosting_alias_post_hostmaster_pause
drush_hosting_client_post_hostmaster_pause
drush_hosting_clone_post_hostmaster_pause
drush_hosting_db_server_post_hostmaster_pause
drush_hosting_migrate_post_hostmaster_pause
drush_hosting_package_post_hostmaster_pause
drush_hosting_platform_post_hostmaster_pause
drush_hosting_site_post_hostmaster_pause
drush_hosting_ssl_post_hostmaster_pause
drush_hosting_web_server_post_hostmaster_pause
drush_pm_post_hostmaster_pause
drush_provision_post_hostmaster_pause
drush_provision_apache_post_hostmaster_pause
drush_provision_drupal_post_hostmaster_pause
drush_provision_mysql_post_hostmaster_pause
drush_provision_ssl_post_hostmaster_pause
drush_search_post_hostmaster_pause
drush_simpletest_post_hostmaster_pause
drush_site_install_post_hostmaster_pause
drush_sitealias_post_hostmaster_pause
drush_sql_post_hostmaster_pause
drush_upgrade_post_hostmaster_pause
drush_variable_post_hostmaster_pause
drush_watchdog_post_hostmaster_pause
Created site_68 database [success]
Executing hosting_update_6005 [success]
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Executing hosting_update_6006 [success]
Executing hosting_client_update_8 [success]
CREATE TABLE {hosting_platform_client_access} [success]
(pid int(10) unsigned NOT NULL default
'0',
cid int(10) unsigned NOT NULL default
'0')
Executing hosting_db_server_update_6000 [success]
Executing hosting_platform_update_6001 [success]
ALTER TABLE {hosting_platform} ADD COLUMN status int(11) NOT NULL default [success]
'1'
Executing hosting_platform_update_6002 [success]
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
WD php: Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name = 'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Executing hosting_web_server_update_6000 [success]
ALTER TABLE {hosting_web_server} DROP ip_address [success]
ALTER TABLE {hosting_web_server} DROP script_user [success]
ALTER TABLE {hosting_web_server} DROP backup_path [success]
ALTER TABLE {hosting_web_server} DROP config_path [success]
ALTER TABLE {hosting_web_server} DROP drush_path [success]
Executing system_update_6054 [success]
CREATE TABLE {semaphore} ( [success]
name VARCHAR(255) NOT NULL DEFAULT '',
value VARCHAR(255) NOT NULL DEFAULT '',
expire DOUBLE NOT NULL,
PRIMARY KEY (name),
INDEX expire (expire)
) /*!40100 DEFAULT CHARACTER SET UTF8 */
Executing system_update_6055 [success]
ALTER TABLE {url_alias} DROP INDEX src_language [success]
ALTER TABLE {url_alias} DROP KEY dst_language [success]
ALTER TABLE {url_alias} ADD INDEX src_language_pid (src, language, pid) [success]
ALTER TABLE {url_alias} ADD UNIQUE KEY dst_language_pid (dst, language, [success]
pid)
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
Table 'site_68.semaphore' doesn't exist [error]
query: SELECT expire, value FROM semaphore WHERE name =
'menu_rebuild' in
/var/aegir/platforms/hostmaster-0.4-alpha6/includes/lock.inc on line 154.
An error occurred at function : drush_core_updatedb_batch_process [error]
Finished performing updates. [ok]
An error occurred at function : drush_core_updatedb [error]
An error occurred at function : [error]
drush_provision_drupal_post_provision_deploy
An error occurred at function : drush_provision_drupal_provision_migrate [error]
The following updates are pending:

hosting module
6005 - Move some menu items to the primary links menu.
6006 - move the platforms into primary links

hosting_client module
8 - Add the hosting_client_platforms table and default all clients to have
access to all platforms

hosting_db_server module
6000 - Get rid of db_server node type and associate ourselves with server
nodes instead.

hosting_platform module
6001 - description not available
6002 - Move the new menu item to the primary navigation

hosting_web_server module
6000 - Move a lot of fields to the hosting_server table.

system module
6054 - Add semaphore table.
6055 - Improve indexes on the {url_alias} table.

Do you wish to run all pending updates? (y/n): y
An error occurred at function : drush_provision_hostmaster_migrate [error]
aegir@bcmops01:~/platforms/hostmaster-0.4-alpha5$

This is a known issue

mig5's picture

This is a known issue upgrading hostmaster from drupal 6.15 to 6.16, because some of our updates happen before core's, and it breaks the update.php process.

We are working on a workaround solution and will likely release a new alpha soon.

mig5, thanks for the

StuddMan's picture

mig5, thanks for the feedback, thought I was going crazy. If I pre-populate the new hostmaster root directory with a copy of 6.15 and they re-run the hostmaster-migrate command do you think it would work?

In provision

adrian's picture

Do the following -

edit ~/.drush/provision/aegir.make.

change :
projects[] = drupal

to:
projects[drupal][version] = "6.15"

And then run the hostmaster-migrate task.

This will fetch drupal 6.15 instead of 6.16.

Thanks Adrian, I will take

StuddMan's picture

Thanks Adrian, I will take another run at it this evening when all our users are out of Atrium and I can snapshot the server.

BTW, Aegir totally rocks, thanks for all your hard work on this, it has made a huge impact on our ability to do business with Drupal.

Meanwhile, a fix for the

mig5's picture

Meanwhile, a fix for the upgrade path has been committed to git. This means the next alpha (soon to be released) will be something you can upgrade to from any Aegir version (even 0.3), that will run on 6.16 just fine.

Thanks guys, ran the alpha6

StuddMan's picture

Thanks guys, ran the alpha6 upgrade again last night with the 6.15 make file tweak and it worked like a champ. Moving on to upgrading all our Open Atrium Beta 3.2s to Beta5.

After upgrade to alpha6,

KrisBulman's picture

After upgrade to alpha6 using the drupal 6.15 fix listed above.. i got mysql credential errors after installing a new platform and running verify:

"Could not connect to the master database server (Access denied for user 'aegir'@'localhost' (using password: NO))."

Followed the fix here: http://drupal.org/node/731550 and it fixed the problem.

Aegir hosting system

Group organizers

Group categories

Group notifications

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