installed aegir yesterday (yeahh!!) linode, ubuntu 11.04. all went well, installed first platform d7, built two sites, awesome.
today though tried to install a d6 site and it wouldnt go. i had, perhaps coincidentally put the wrong path into aegir d6.24 when i actually uploaded d6.26. first error then was:

The directory /var/aegir/platforms/drupal-6.24 does not contain a valid Drupal installation
Drush could not bootstrap this platform. Please check the platform directory exists and is readable.

figured this out, and tried to delete the error platform. error for delete attempt was:

The directory /var/aegir/platforms/drupal-6.24 does not contain a valid Drupal installation
/var/aegir/config/server_master/apache/platform.d/platform_drupal624.conf could not be removed from remote server aegir. Changes might not be available until this has been done. (error: Host key verification failed.)
apache on aegir could not be restarted. Changes might not be available until this has been done. (error: Host key verification failed.)

and created a new platform node with the right path then error from aegir panel is:

Could not rsync from '/var/aegir/config/server_master/apache/platform.d/platform_drupal626.conf' to 'aegir@aegir:/'
/var/aegir/config/server_master/apache/platform.d/platform_drupal626.conf could not be synced to remote server aegir. Changes might not be available until this has been done. (error: Warning: Permanently added 'aegir,xx.xxx.xx.xx' (ECDSA) to the list of known hosts. Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7])
apache on aegir could not be restarted. Changes might not be available until this has been done. (error: Permission denied (publickey,password).)

this happened, perhaps also coincidentally after i tried to connect sftp to the install with fireftp as root. tried running the aegir tasks as aegir via ssh and got essentially the same errors. finally, i just realised my first platform (d7) was uploaded to /aegir and not to /aegir/platforms. (i used drush and assumed it would know where to put uploads, like it does for modules)
posting all this because i am really new to everything about this process, and not sure which might be significant.
thanks
p.s. posted on aegir community site as well.

Comments

anarcat’s picture

Status: Active » Postponed (maintainer needs more info)

It looks like you have a DNS problem:

Could not sync to ... 'aegir@aegir:/'

.. it is trying to sync data to the aegir server as a remote server. This is because Aegir has determined it is not a local server. This is done in the function provision_is_local_host(), which needs that hostname to refer to your loopback address (127.0.0.1) or FQDN.

Please provide the following information:

* output of hostname -f
* output of hostname
* contents of /etc/hosts
* output of ip a

jacobson’s picture

If anyone stumbles on this thread, here's a bit of clarification.

If you get the rsync error described at the top of this thread, the solution may be to edit the /etc/hosts file on your Aegir server to make sure that the hostname 'aegir' is pointing either to 127.0.0.1 or to the fully qualified domain name (FQDN) of your Aegir server. The effect of this is to allow Aegir to believe that your Aegir server is local and not remote.

ergonlogic’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

The 1.x branch of Aegir is deprecated. Please re-open if you can re-produce this issue on the latest 2.x or later branches.

dbassendine’s picture

I had this issue on a 2.x BOA stack where the server's internal hostname did not match the server hostname held by Aegir, when it is not 'localhost' or 127.0.0.1.

Refer to the code comment at http://api.aegirproject.org/api/aegir/provision2%21provision.inc/functio... for a fix:

// In order for this to work right, you must use 'localhost' or '127.0.0.1'
  // or the machine returned by 'uname -n' for your 'remote-host' entry in
  // your site alias.  Note that sometimes 'uname -n' does not return the
  // correct value.  To fix it, put the correct hostname in /etc/hostname
  // and then run 'hostname -F /etc/hostname'.

For example if the platform's server is "boa.example.com", then the hostname of the server you are running Aegir on should be set to "boa.example.com". In this case you would edit /etc/hostname, set it to "boa.example.com", then run "hostname -F /etc/hostname".

Hope this helps someone!