BrianGilbert / OSXAegirInstaller

This script installs aegir on OSX using Homebrew
30 stars 10 forks source link

Hostmaster install fails when upgrading #52

Closed mjroeleveld closed 3 years ago

mjroeleveld commented 8 years ago

Hi Brian,

I'm trying to upgrade after I installed El Capitan.

The installation process finished successfully, but the hostmaster install terminated with the following:

Configuring default blocks                                           [status]
Generated config in write(): Drupal sites.php file                   [success]
(/var/aegir/hostmaster-7.x-3.x/sites/sites.php)
Changed permissions of /var/aegir/hostmaster-7.x-3.x/sites/sites.php [success]
to 644
Could not find the alias @hostmaster                                 [error]
Illegal string offset 'site' backend.inc:1030                        [warning]
The command could not be executed successfully (returned: Could not  [error]
find the alias @hostmaster                                
[error]
, code: 1)

Indeed, executing drush sa shows only the following:

@platform_drupal734
@platform_hostmaster
@server_localhost
@server_master 

You have any idea what could've gone wrong?

mjroeleveld commented 8 years ago

In the meantime I installed Aegir with Docker. In combination with Unison (syncs files into the container and back) I now have quite an efficient development environment. Got it working in a pretty short time period and it's completely isolated from my operating system, without having the bloat of a virtual machine. I can even stop the containers when I'm not developing! In my opinion it's a better option than to clutter your Mac with a bunch of dependencies and config files. I used OSXAegirInstaller a long time though, thanks for your efforts on maintaining it!

BrianGilbert commented 8 years ago

I'd love to hear more about how you hooked up unison for that..

Also install should be working now as I've installed on 2 machines in the last week

mjroeleveld commented 8 years ago

I used this to start a Unison container. The Aegir container mounts /mnt/sda1/var/aegir (persistent) on /var/aegir and the Unison container mounts /mnt/sda1/var/aegir/platforms on /unison. Then, on my mac, my project folder contains only the site's themes, modules, libraries and files folders, which I monitor with fswatch for changes (see Unison container repo for an example). If I make changes locally, fswatch notifies Unison which on its turn syncs the changed files.

mjroeleveld commented 8 years ago

This is my docker-compose.yml:

aegir:
  image: aegir
  container_name: aegir
  ports:
    - "80:80"
    - "23:22"
  volumes:
    - /mnt/sda1/var/aegir/var/aegir:/var/aegir
    - /mnt/sda1/var/aegir/var/log/apache2:/var/log/apache2
    - /mnt/sda1/var/aegir/var/lib/mysql:/var/lib/mysql
    - /mnt/sda1/var/aegir/etc/mysql/conf.d:/etc/mysql/conf.d
    - /mnt/sda1/var/aegir/etc/mysql/sites-enabled:/etc/mysql/sites-enabled
  environment:
    - POSTFIX_RELAY_HOST=smtp.gmail.com
    - POSTFIX_RELAY_PORT=587
    - POSTFIX_MAILNAME=aegir.ld
    - POSTFIX_DESTINATION=info@example.com
    - POSTFIX_USER=info@example.com
    - POSTFIX_PASSWD=password_here
    - AEGIR_SITE=aegir
    - AEGIR_FRONTEND_URL=aegir.ld
    - AEGIR_EMAIL=info@example.com
    - AEGIR_DB_PASSWORD=aegir
    - AEGIR_VERSION=7.x-3.2
    - MYSQL_ROOT_PW=root
  hostname: aegir
unison:
  image: leighmcculloch/unison
  environment:
    - UNISON_VERSION=2.40.102
  ports:
    - "5000:5000"
  volumes:
    - /mnt/sda1/var/aegir/var/aegir/platforms:/unison