With Barracuda updated to head 2 days ago, and using the versions of remote_import and hosting_remote_import versions listed in http://drupalcode.org/project/octopus.git/blob/HEAD:/aegir/scripts/Aegir... :
aegir@h02:~/.drush/provision$ git clone --branch 6.x-2.x git://github.com/omega8cc/remote_import.git
aegir@h02:~/host_master/002/sites/a02.webducate.com.au/modules$ git clone --branch 6.x-1.x git://github.com/omega8cc/hosting_remote_import.git
I get the following error when trying to import a remote site:
Task starts processing
Running: /var/aegir/drush/drush.php @server_a01webducatecomau provision-remote_import --backend 2>&1
The external command could not be executed due to an application error.
Bootstrap to phase 0.
Drush bootstrap phase : _drush_bootstrap_drush()
Load alias @server_a01webducatecomau
Bootstrap to phase 0.
Found command: provision-remote_import (commandfile=remote_import)
Initializing drush commandfile: db
Initializing drush commandfile: dns
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: example
Initializing drush commandfile: http
Initializing drush commandfile: provision
Load alias @server_master
Loading nginx driver for the http service
Loading nginx driver for the cdn service
Loading nginx driver for the cdn service
Loading hostmaster driver for the remote_import service
Initializing drush commandfile: provision_cdn
Running: ssh -o PasswordAuthentication=no 'aegir'@'a01.webducate.com.au' 'drush @portal.webducate.com.au '\''provision-backup'\'' --backend 2>&1' 2>&1
Bootstrap to phase 0.
Drush bootstrap phase : _drush_bootstrap_drush()
Load alias @portal.webducate.com.au
Loading drushrc "/var/aegir/platforms/webducate-portal-1.2.3/sites/portal.webducate.com.au/drushrc.php" into "site" scope.
Bootstrap to phase 1.
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/var/aegir/platforms/webducate-portal-1.2.3/drushrc.php" into "drupal" scope.
Initialized Drupal 6.15 root directory at /var/aegir/platforms/webducate-portal-1.2.3
Found command: provision-backup (commandfile=provision)
Initializing drush commandfile: db
Initializing drush commandfile: dns
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: example
Initializing drush commandfile: http
Initializing drush commandfile: provision
Load alias @server_localhost
Load alias @server_master
Loading nginx driver for the http service
Loading nginx driver for the cdn service
Loading mysql driver for the db service
Loading nginx driver for the cdn service
Load alias @platform_webducateportal123
Initializing drush commandfile: provision_cdn
Including /var/aegir/.drush/provision/db/backup.provision.inc
Including /var/aegir/.drush/provision/platform/backup.provision.inc
Drush bootstrap phase : _drush_bootstrap_drupal_site()
Initialized Drupal site portal.webducate.com.au at sites/portal.webducate.com.au
Loading drushrc "/var/aegir/platforms/webducate-portal-1.2.3/sites/portal.webducate.com.au/drushrc.php" into "site" scope.
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()
Adding sites directory to /var/aegir/backups/portal.webducate.com.au-20121129.155103.tar.gz
Deleted mysql dump from sites directory
Backed up site up to /var/aegir/backups/portal.webducate.com.au-20121129.155103.tar.gz.
Client backup directory for admin path /var/aegir/clients/admin/backups exists.
Client backup directory for admin ownership of /var/aegir/clients/admin/backups has been changed to aegir.
Client backup directory for admin permissions of /var/aegir/clients/admin/backups have been changed to 750.
Client backup directory for admin path /var/aegir/clients/admin/backups is writable.
Created symlink /var/aegir/clients/admin/backups/portal.webducate.com.au-20121129.155103.tar.gz to /var/aegir/backups/portal.webducate.com.au-20121129.155103.tar.gz
Template loaded: /var/aegir/.drush/provision/Provision/Config/Drushrc/provision_drushrc_site.tpl.php
Changed permissions of /var/aegir/platforms/webducate-portal-1.2.3/sites/portal.webducate.com.au/drushrc.php to 640
Generated config Site Drush configuration file
Changed permissions of /var/aegir/platforms/webducate-portal-1.2.3/sites/portal.webducate.com.au/drushrc.php to 440
Platforms path /var/aegir/platforms exists.
Platforms ownership of /var/aegir/platforms has been changed to aegir.
Platforms permissions of /var/aegir/platforms have been changed to 711.
Platforms path /var/aegir/platforms is writable.
Command dispatch complete
Peak memory usage was 9.3 MB
Load alias @hostmaster
Loading drushrc "/var/aegir/host_master/002/sites/a02.webducate.com.au/drushrc.php" into "site" scope.
Could not find provision alias named: server_localhost
Trying to get property of non-object db.php:12
Could not find provision alias named: platform_webducateportal123
Drush command terminated abnormally due to an unrecoverable error. Error: Call to a member function get_services() on a non-object in /var/aegir/.drush/provision/Provision/Context.php, line 293
Output from failed command : Fatal error: Call to a member function get_services() on a non-object in /var/aegir/.drush/provision/Provision/Context.php on line 293
Changes made in drush_hosting_task have been rolled back.
Command dispatch complete
Peak memory usage was 15.71 MB
I've confirmed that the aegir user is able to ssh to the remote server using key only and that the remote server does not have remote_import installed in it's .drush/provision directory.
Unfortunately the instructions in http://drupalcode.org/project/octopus.git/blob/HEAD:/docs/REMOTE.txt are very octopus specific, if using barracuda could you please give an example of what changes would need to be made to mysql?
I'll happily create documentation once I have it working.
Comments
Comment #1
omega8cc commentedSorry for the delay here, I will try to test this and follow up as soon as possible.
Comment #2
omega8cc commentedComment #3
omega8cc commentedIt should work the same also for Master Instances - there is no reason why it would require different how-to. Just replace
o1withaegirand adjust all paths.FYI:
http://drupal.org/node/1594588#comment-7160544
http://drupal.org/node/1594588#comment-7160638
Comment #3.0
omega8cc commentedupdate