I'm not sure if this is our "bug", or rather compatibility issue introduced by Drush folks in recent release, but the result is that it is not possible to install or upgrade Aegir or do anything with sites (like migration etc.)

On Aegir install the errors are as below:

copy(/data/disk/o4/config/includes/nginx_advanced_include.conf): failed to open stream: No such file or directory                     [warning]
provision.file.inc:38 [1.81 sec, 9.79 MB]
copy(/data/disk/o4/config/includes/nginx_simple_include.conf): failed to open stream: No such file or directory                       [warning]
provision.file.inc:38 [1.81 sec, 9.79 MB]
copy(/data/disk/o4/config/includes/fastcgi_params.conf): failed to open stream: No such file or directory provision.file.inc:38       [warning]
[1.81 sec, 9.79 MB]
copy(/data/disk/o4/config/includes/fastcgi_ssl_params.conf): failed to open stream: No such file or directory provision.file.inc:38   [warning]
[1.81 sec, 9.8 MB]
copy(/data/disk/o4/config/includes/upload_progress_test.conf): failed to open stream: No such file or directory                       [warning]
provision.file.inc:38 [1.81 sec, 9.8 MB]
Bootstrap to phase 5. [48.67 sec, 10.8 MB]                                                                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [48.67 sec, 10.8 MB]                                                         [bootstrap]
Loading drushrc "/data/disk/o4/aegir/distro/001/drushrc.php" into "drupal" scope. [48.67 sec, 10.8 MB]                              [bootstrap]
Initialized Drupal 6.22 root directory at /data/disk/o4/aegir/distro/001 [48.67 sec, 10.8 MB]                                          [notice]
The drush command '@self provision-install-backend' could not be found. [48.67 sec, 10.81 MB]                                           [error]
Could not find a Drupal settings.php file at ./sites/default/settings.php. [48.67 sec, 10.81 MB]                                        [error]
Undefined index:  login_link install.provision.inc:60 [48.67 sec, 10.81 MB]                                                            [notice]
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.22
  Site URI          : o4.linode.us.host8.biz
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /usr/local/lib/php.ini
  Drush version     : 4.5
  Drush configuration: /data/disk/o4/aegir/distro/001/sites/o4.linode.us.host8.biz/drushrc.php
/data/disk/o4/aegir/distro/001/drushrc.php
  Drush alias files : /data/disk/o4/.drush/hostmaster.alias.drushrc.php /data/disk/o4/.drush/server_master.alias.drushrc.php
/data/disk/o4/.drush/platform_hostmaster.alias.drushrc.php
  Drupal root       : /data/disk/o4/aegir/distro/001
  Site path         : sites/o4.linode.us.host8.biz
  Modules path      : sites/o4.linode.us.host8.biz/modules
  Themes path       : sites/o4.linode.us.host8.biz/themes
  %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.
 [48.67 sec, 10.81 MB]

On Aegir upgrade the errors are:

Deploying site from /data/disk/o1/backups/o1.linode.us.host8.biz-20110815.151949.tar.gz [56.09 sec, 15.14 MB]                         [message]
Failed to extract the contents of /data/disk/o1/backups/o1.linode.us.host8.biz-20110815.151949.tar.gz to  (The target directory         [error]
could not be written to) [56.09 sec, 15.14 MB]
Changes made in drush_provision_drupal_pre_provision_deploy have been rolled back. [56.09 sec, 15.14 MB]                             [rollback]
Changes made in drush_db_pre_provision_deploy have been rolled back. [56.09 sec, 15.14 MB]                                           [rollback]

On site migration the errors are:

Deploying site from /data/disk/o1/backups/crm4.o1.linode.us.host8.biz-20110815.163408.tar.gz
Failed to extract the contents of /data/disk/o1/backups/crm4.o1.linode.us.host8.biz-20110815.163408.tar.gz to (The target directory could not be written to)
Changes made in drush_provision_drupal_pre_provision_deploy have been rolled back.
Changes made in drush_db_pre_provision_deploy have been rolled back.

Comments

omega8cc’s picture

omega8cc’s picture

Here is a full debug output from failed install: https://gist.github.com/1148222

What is a sign of another context(?) or API issue - it attempts to create not expected config/self directory:

Provision configuration path /data/disk/o5/config/self has been created. [3.17 sec, 9.31 MB]                                          [message]
Provision configuration ownership of /data/disk/o5/config/self has been changed to o5. [3.17 sec, 9.31 MB]                            [message]
Provision configuration permissions of /data/disk/o5/config/self have been changed to 711. [3.17 sec, 9.31 MB]                        [message]
Provision configuration path /data/disk/o5/config/self is writable. [3.17 sec, 9.31 MB]                                               [message]

The result is like below:

linode:~# tree /data/disk/o5/config
/data/disk/o5/config
|-- nginx.conf -> /data/disk/o5/config/self/nginx.conf
|-- self
|   |-- nginx
|   |   |-- platform.d
|   |   |-- post.d
|   |   |-- pre.d
|   |   `-- vhost.d
|   `-- nginx.conf
`-- server_master
    `-- nginx
        `-- vhost.d

9 directories, 2 files
linode:~# 
omega8cc’s picture

omega8cc’s picture

anarcat’s picture

Status: Active » Needs review

This should make it work on 4.5, but break 4.4... we need a better patch, but i'd like to see this tested before going further.

http://drupalcode.org/project/provision.git/patch/6537cb816271c300ceddda...

anarcat’s picture

Status: Needs review » Needs work

That commit actually broke head and was therefore reverted:

http://ci.aegirproject.org/job/aegir%207.x-2.x%20install/lastFailedBuild...

... but maybe that's because head doesn't use drush 4.5...

Anonymous’s picture

The Jenkins script fetches Drush 4.4. Do you want me to update that for the 7.x tests?

omega8cc’s picture

Status: Needs work » Needs review

This patch works for both Drush 4.5 and 4.4: http://drupalcode.org/sandbox/omega8cc/1111100.git/commit/0c99944

However, we have another critical: #1256372: Drupal 7.7 site install fails with Drush 4.5.

anarcat’s picture

Status: Needs review » Patch (to be ported)

merged in 2.x, waiting for jenkins green before 1.x

anarcat’s picture

Status: Patch (to be ported) » Fixed

merged.

Status: Fixed » Closed (fixed)

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

  • Commit 0c4d648 on 7.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x authored by omega8cc, committed by anarcat:
    Issue #1250068 - Add support for Drush 4.5
    
    
  • Commit 52af844 on 6.x-1.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x authored by omega8cc, committed by anarcat:
    Issue #1250068 - Add support for Drush 4.5