Posted by mzytaruk on September 7, 2010 at 8:28pm
When you create a platform, does it have to be on the same server as the aegir installation? We are trying to import a platform on a remote server to manage the sites on it using aegir, but when verifying the platform, aegir keeps saying
The directory /ebs/platforms/pressflow-6.15-R2811 does not contain a valid Drupal installation
Drupal sites directory /ebs/platforms/pressflow-6.15-R2811/sites is not writable by the provisioning script
- despite the permissions being fine (the remote server was previously setup with an aegir instance of it's own and was working fine using the aegir user). Aegir doesn't seem to even be looking at the remote server.
Comments
dont think so
AFAIK it isn't possible, I was looking for the same 'feature' and ran into the same problem. I guess the idea is to manage all platforms on the aegir server and push them to remote servers whenever a site is pushed to a remote server needing this platform
webserver then platform
I have it working.
I create a webserver and then I create a platform and select the correct webserver radio button on that form. Ensure that the following is working for the new webserver:
Attiks is right
It was working for me, but only coincidentally. I had first tested creating a platform on the hostmaster server. Then I created a platform with the same Publish Path (/var/aegir/platforms/dev/drupal-6.19) on a remote webserver and that worked, but as soon as I tried to create a remote platform that I hadn't first created on the hostmaster vm I got
The directory /var/aegir/platforms/dev/ucb-20100728_00-6.17 does not contain [error]a valid Drupal installation
Fix is to create that platform on the hostmaster server, first using the same publish path that you plan to use on the remote webserver. Is this covered in some documentation that I missed? Or should it be added to http://git.aegirproject.org/?p=provision.git;a=blob_plain;f=docs/INSTALL...?
You can see the rsyncs happening like so:
[app_aegir@prod-040-cms drupal-6.19]$ /var/aegir/drush/drush.php @platform_prod12cmsDEVdrupal619 provision-verify -vLoad alias @server_prod12cmsistberkeleyedu [notice]
Load alias @server_master [notice]
Loading mysql driver for the db service [notice]
Loading apache driver for the http service [notice]
Loading apache driver for the http service [notice]
Initialized Drupal 6.19 root directory at [notice]
/var/aegir/platforms/dev/drupal-6.19
Drupal sites directory /var/aegir/platforms/dev/drupal-6.19/sites is [message]
writable by the provisioning script
Undefined variable: sites provision_drupal.drush.inc:330 [notice]
This platform is running drupal 6.19 [notice]
Found 33 modules in base [notice]
Found 6 themes in base [notice]
Found install profile default [notice]
Template loaded: /var/aegir/.drush/provision/http/apache/platform.tpl.php [notice]
Generated config platform configuration file [message]
Executing: rsync -e 'ssh ' -azv --exclude=".svn" --stats --progress [notice]
--relative --omit-dir-times --delete
'/var/aegir/config/server_prod12cmsistberkeleyedu/apache/platform.d/platform_prod12cmsDEVdrupal619.conf'
'app_aegir@prod-12-cms.ist.berkeley.edu:/'
/var/aegir/config/server_prod12cmsistberkeleyedu/apache/platform.d/platform_prod12cmsDEVdrupal619.conf [notice]
has been synced to remote server prod-12-cms.ist.berkeley.edu.
Executing: ssh -o PasswordAuthentication=no [notice]
'app_aegir@prod-12-cms.ist.berkeley.edu' 'sudo /usr/sbin/apachectl graceful'
apache on prod-12-cms.ist.berkeley.edu has been restarted [notice]
Template loaded: /var/aegir/.drush/provision/provision_drushrc.tpl.php [notice]
Changed permissions of /var/aegir/platforms/dev/drupal-6.19/drushrc.php to [message]
600
Generated config Platform Drush configuration file [message]
Changed permissions of /var/aegir/platforms/dev/drupal-6.19/drushrc.php to [message]
400
Executing: rsync -e 'ssh ' -azv --exclude=".svn" --include="sites/all" [notice]
--exclude="sites/*" --stats --progress --relative --omit-dir-times --delete
'/var/aegir/platforms/dev/drupal-6.19'
'app_aegir@prod-12-cms.ist.berkeley.edu:/'
/var/aegir/platforms/dev/drupal-6.19 has been synced to remote server [notice]
prod-12-cms.ist.berkeley.edu.
Command dispatch complete
I ran into this problem
I ran into this problem yesterday. Same error (The directory /xyx does not contain a valid Drupal installation).
The way I got around it was to create the platform on the Aegir server, then edit the platform, and select the radio button for the remote server. On saving the node, the platform was rsynced to the remote server.
--
Tom
www.systemseed.com - drupal development. drupal training. drupal support.
When you tried this, did you
When you tried this, did you already have any sites on the remote platform? If so, did you have to install them all on the aegir server first?