Using platforms on remote sites with 0.4-beta12

Events happening in the community are now at Drupal community events on www.drupal.org.
mzytaruk's picture

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

attiks's picture

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

bwood's picture

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:

    (requirements http://groups.drupal.org/node/90564#comment-285269)
    1) you install the packages  (apache is installed)
    2) make symlink to /etc/httpd/conf.d (see install.txt)
    3) create aegir user
    4) add aegir user to visudo for apache2ctl
        sudo grep aegir /etc/sudoers
    5) add aegir user to the www-data group.
        groups aegir
    6) verify aegir user can ssh passwordless from hostmaster to new server
                    as the aegir user:
                    ssh dev1.example.com #should not prompt for password.

Attiks is right

bwood's picture

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 -v
Load 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

mrfelton's picture

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

mzytaruk's picture

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?

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: