Drupal-7.x (as of today's HEAD) is severely broken:

Status:  Succesful
Executed: Wed, 04/29/2009 - 01:38
Site: d7.test.koumbit.net

Task starts processing
Running: php /var/aegir/drush/drush.php --root='/var/aegir/drupal-7.x' 'provision' 'install' 'd7.test.koumbit.net' --backend
Removing task from hosting queue
warning: Invalid argument supplied for foreach() in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.module on line 289.
warning: array_key_exists(): The second argument should be either an array or an object in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.instance.inc on line 28.
warning: array_key_exists(): The second argument should be either an array or an object in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.instance.inc on line 28.
warning: array_key_exists(): The second argument should be either an array or an object in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.instance.inc on line 28.
warning: array_key_exists(): The second argument should be either an array or an object in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.instance.inc on line 28.
warning: array_key_exists(): The second argument should be either an array or an object in /srv/aegir/drupal-5.x/sites/default/modules/hosting/package/hosting_package.instance.inc on line 28.

Notice how the site has totally failed to installed but is nevertheless marked as installed.

I do not consider this release critical at this point.

Comments

anarcat’s picture

Version: 5.x-0.2-alpha1 »
Status: Active » Needs work

This has progressed a little, but doesn't work in alpha5:

Task starts processing
Running: /usr/bin/drush --root='/var/aegir/drupal-7.x-2010219' provision-install 'd7.test.koumbit.net' --backend
Drush bootstrap phase : _drush_bootstrap_drush()
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/srv/aegir/drupal-7.x-2010219/drushrc.php" into "drupal" scope.
Initialized Drupal 7.0-dev root directory at /var/aegir/drupal-7.x-2010219
Found command: provision-install
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Initializing drush commandfile: provision_apache
Undefined index: base_url
Initializing drush commandfile: provision_drupal
Initializing drush commandfile: provision_mysql
Undefined index: db_url
Including /var/aegir/.drush/provision/web_server/install.provision.inc
Including /var/aegir/.drush/provision/platform/install.provision.inc
Including /var/aegir/.drush/provision/db_server/install.provision.inc
Created sites/d7.test.koumbit.net
Changed permissions of sites/d7.test.koumbit.net to 0755
Created sites/d7.test.koumbit.net/themes
Changed permissions of sites/d7.test.koumbit.net/themes to 2775
Created sites/d7.test.koumbit.net/modules
Changed permissions of sites/d7.test.koumbit.net/modules to 2775
Created sites/d7.test.koumbit.net/libraries
Changed permissions of sites/d7.test.koumbit.net/libraries to 2775
Created sites/d7.test.koumbit.net/files
Changed permissions of sites/d7.test.koumbit.net/files to 2770
Changed ownership of sites/d7.test.koumbit.net/files
Changed group ownership of sites/d7.test.koumbit.net/files
Granting privileges to XXX
Created site_2269 database
Generate settings.php file
Changed permissions of settings.php to 0440
Change group ownership of settings.php to www-data
Drush bootstrap phase : _drush_bootstrap_drupal_site()
Initialized Drupal site d7.test.koumbit.net at sites/d7.test.koumbit.net
Including version specific file : /var/aegir/.drush/provision/platform/drupal/install_7.inc
Constant DRUPAL_ROOT already defined
Constant MAINTENANCE_MODE already defined
Drush command could not be completed.
An error occurred at function : drush_hosting_hosting_task
Changes for drush_hosting_hosting_task module have been rolled back.
Command dispatch complete
Timer 'page' is 2.62 sec.
Peak memory usage was 31.71 MB
mathieu’s picture

Status: Needs work » Fixed

I didn't do anything special and it worked fine for me in HEAD.

robin van emden’s picture

Status: Fixed » Active

I get the exact same error as Anarcat, using Drupal 7 head and Provision head

Anonymous’s picture

I'm reproducing, a shame since it used to work.

What's incredible is that I am seeing install.php html in my --debug trace:

Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 3.08 MB]                                                                        [bootstrap]
Loading drushrc "/var/aegir/drupal-7.x-dev/drushrc.php" into "drupal" scope. [0.05 sec, 3.09 MB]                                                  [bootstrap]
Initialized Drupal 7.0-dev root directory at /var/aegir/drupal-7.x-dev [0.07 sec, 4.26 MB]                                                           [notice]
Found command: provision-install (commandfile=provision) [0.08 sec, 4.31 MB]                                                                      [bootstrap]
Initializing drush commandfile: drush_make [0.08 sec, 4.31 MB]                                                                                    [bootstrap]
Initializing drush commandfile: drush_make_d_o [0.08 sec, 4.31 MB]                                                                                [bootstrap]
Initializing drush commandfile: provision [0.08 sec, 4.31 MB]                                                                                     [bootstrap]
Initializing drush commandfile: provision_apache [0.08 sec, 4.31 MB]                                                                              [bootstrap]
Undefined index:  base_url provision_apache.drush.inc:50 [0.08 sec, 4.32 MB]                                                                         [notice]
Initializing drush commandfile: provision_drupal [0.08 sec, 4.32 MB]                                                                              [bootstrap]
Initializing drush commandfile: provision_mysql [0.08 sec, 4.32 MB]                                                                               [bootstrap]
Undefined index:  db_url provision_mysql.drush.inc:16 [0.08 sec, 4.32 MB]                                                                            [notice]
Including /var/aegir/.drush/provision/web_server/install.provision.inc [0.08 sec, 4.32 MB]                                                        [bootstrap]
Including /var/aegir/.drush/provision/platform/install.provision.inc [0.08 sec, 4.32 MB]                                                          [bootstrap]
Including /var/aegir/.drush/provision/db_server/install.provision.inc [0.08 sec, 4.33 MB]                                                         [bootstrap]
Created <code>sites/2-d7.mig5-forge.net

[0.09 sec, 4.35 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net to 0755 [0.09 sec, 4.35 MB] [message]
Created sites/2-d7.mig5-forge.net/themes [0.09 sec, 4.35 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/themes to 2775 [0.09 sec, 4.35 MB] [message]
Created sites/2-d7.mig5-forge.net/modules [0.09 sec, 4.35 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/modules to 2775 [0.09 sec, 4.35 MB] [message]
Created sites/2-d7.mig5-forge.net/libraries [0.09 sec, 4.35 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/libraries to 2775 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/private [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/private to 0755 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/private/files [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/private/files to 2770 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/private/temp [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/private/temp to 2770 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/files [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/files to 2770 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/files/tmp [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/files/tmp to 2770 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/files/images [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/files/images to 2770 [0.09 sec, 4.36 MB] [message]
Created sites/2-d7.mig5-forge.net/files/pictures [0.09 sec, 4.36 MB] [message]
Changed permissions of sites/2-d7.mig5-forge.net/files/pictures to 2770 [0.09 sec, 4.36 MB] [message]
Changed ownership of sites/2-d7.mig5-forge.net/files [0.09 sec, 4.36 MB] [message]
Changed ownership of sites/2-d7.mig5-forge.net/private [0.09 sec, 4.37 MB] [message]
Changed group ownership of sites/2-d7.mig5-forge.net/files [0.09 sec, 4.37 MB] [message]
Changed group ownership of sites/2-d7.mig5-forge.net/private/files [0.09 sec, 4.37 MB] [message]
Changed group ownership of sites/2-d7.mig5-forge.net/private/temp [0.09 sec, 4.37 MB] [message]
Granting privileges to 2d7mig5forgene@localhost on class="placeholder">2d7mig5forgene [0.09 sec, 4.38 MB]
Created 2d7mig5forgene database [0.1 sec, 4.38 MB] [0;33;40m[1m[success][0m
Generate settings.php file [0.1 sec, 4.38 MB] [notice]
Changed permissions of settings.php to 0440 [0.1 sec, 4.39 MB] [message]
Change group ownership of settings.php to www-data [0.1 sec, 4.39 MB] [message]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.1 sec, 4.38 MB] [bootstrap]
Initialized Drupal site 2-d7.mig5-forge.net at sites/2-d7.mig5-forge.net [0.1 sec, 4.38 MB] [notice]
Including version specific file : /var/aegir/.drush/provision/platform/drupal/install_7.inc [0.1 sec, 4.39 MB] [notice]
Constant DRUPAL_ROOT already defined install.php:12 [0.1 sec, 4.42 MB] [notice]
Constant MAINTENANCE_MODE already defined install.php:17 [0.1 sec, 4.42 MB] [notice]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.42 MB]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.43 MB]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.43 MB]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.43 MB]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.44 MB]
WD php: Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in [1;33;40m[1m[warning][0m
drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc). [0.36 sec, 10.46 MB]
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Select an installation profile | Drupal

@import url("http://2-d7.mig5-forge.net/modules/system/system.css?0"); @import url("http://2-d7.mig5-forge.net/modules/system/system-behavior.css?0"); @import url("http://2-d7.mig5-forge.net/modules/system/system-menus.css?0"); @import url("http://2-d7.mig5-forge.net/modules/system/maintenance.css?0"); @import url("http://2-d7.mig5-forge.net/modules/system/admin.css?0");@import url("http://2-d7.mig5-forge.net/themes/seven/reset.css?0"); @import url("http://2-d7.mig5-forge.net/themes/seven/style.css?0");


Select an installation profile

The following errors must be resolved before you can continue the installation process:

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
  • Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/drush/includes/drush.inc:660) in drupal_send_headers() (line 1014 of /var/aegir/drupal-7.x-dev/includes/bootstrap.inc).
Standard
Install with commonly used features pre-configured.
Minimal
Start with only a few modules enabled.


Check the error messages and try again.



Drush command could not be completed. [0.36 sec, 10.45 MB] [31;40m[1m[error][0m

robin van emden’s picture

Seems to have to do with the definition and then later forbidden redefinition of DRUPAL_ROOT and MAINTENANCE_MODE

They are defined in Drupal 7 install.php, see also http://drupal.org/node/524728

/**
 * Root directory of Drupal installation.
 */
define('DRUPAL_ROOT', getcwd());

/**
 * Global flag to indicate that site is in installation mode.
 */
define('MAINTENANCE_MODE', 'install');

But later drush defines at drush/includes/environment.inc:523:

define('DRUPAL_ROOT', $drupal_root);

and drush/commands/core/site_install.drush.inc:78:

define('MAINTENANCE_MODE', 'install');

And in provision .drush/provision/platform/drupal/install_7.inc:12:

define('MAINTENANCE_MODE', 'install');
adrian’s picture

the redefinition of a global is a notice or warning at best, not an error.

omega8cc’s picture

Same here for both d7 dev and alpha2, with latest Aegir HEAD.

http://skitch.com/omega8cc/n3ikp/picture-3

DanielJohnston’s picture

Subscribing - same error with alpha6 aegir and alpha3 D7.

lloydpearsoniv’s picture

subscribing as well

Anonymous’s picture

Status: Active » Fixed

This has been fixed and has made it into the latest alpha7 release.

Rejoice! At least until the next time they change things behind our backs again :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.