On OSX, the first time I run aeger-up-initialize, it fails to mount the NFS shared folder. The information it confirms to add to my drushrc.php is all fine, I'm running as a regular user... I'm not sure what else to check.

The rest of the script doesn't work, since the NFS mount fails. The VM is running OK, I can see the "It works!" default page when navigating to it in my browser. If I try drush aus, it doesn't have my private key so I get asked for a password. I've never seen this working, but I presume that these are both things that happen after NFS init. :)

I can run my own vagrant boxes just fine... But this is just too cool to pass up! :)

Comments

helmo’s picture

Setting up NFS requires sudo access. Does your regular user have privileges for that?

ohthehugemanatee’s picture

yep. No problems with sudo.

ohthehugemanatee’s picture

Note: it also fails if I run the drush command itself within sudo.

ohthehugemanatee’s picture

So I edited the vagrantfile to be verbose and offer debug information, and I ran the drush command with --debug ... and here's what I get

$ drush aegir-up-initialize foobar -y --debug
Bootstrap to phase 0. [0.01 sec, 3.37 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.57 MB] [bootstrap]
Loading drushrc "/Users/ohthehugemanatee/.drushrc.php" into "user" scope. [0.01 sec, 3.57 MB]                                                                        [bootstrap]
Cache HIT cid: 5.4-commandfiles-0-5b314d29784a541d7e95a6e5bfa7c8ff [0.01 sec, 3.59 MB]                                                                           [debug]
Executing: which vagrant
  /usr/bin/vagrant
Bootstrap to phase 0. [0.07 sec, 8.07 MB]                                                                                                                    [bootstrap]
Bootstrap to phase 0. [0.08 sec, 8.07 MB]                                                                                                                    [bootstrap]
Found command: aegir-up-initialize (commandfile=aegirup) [0.08 sec, 8.07 MB]                                                                                 [bootstrap]
Function: aegirup_drush_init() [0.11 sec, 8.1 MB]                                                                                                                [debug]
WORKSPACE_ROOT: /Users/ohthehugemanatee/aegir-up/ [0.11 sec, 8.1 MB]                                                                                                     [debug]
Function: drush_aegirup_aegir_up_initialize() [0.11 sec, 8.29 MB]                                                                                                [debug]
$user_settings: Array                                                                                                                                            [debug]
(
    [aegirup_username] => ohthehugemanatee
    [aegirup_home] => /Users/ohthehugemanatee
    [aegirup_uid] => 501
    [aegirup_gid] => 20
    [aegirup_workspace_root] => /Users/ohthehugemanatee/aegir-up/
    [aegirup_git_name] => ohthehugemanatee Vertesi
    [aegirup_git_email] => ohthehugemanatee@vertesi.com
    [aegirup_dotfiles.profile] => /Users/ohthehugemanatee/.profile
    [aegirup_dotfiles.bashrc] => /Users/ohthehugemanatee/.bashrc
    [aegirup_dotfiles.vimrc] => /Users/ohthehugemanatee/.vimrc
    [aegirup_ssh_keyspublic] => /Users/ohthehugemanatee/.ssh/id_rsa.pub
    [aegirup_ssh_keysprivate] => /Users/ohthehugemanatee/.ssh/id_rsa
    [config-file] => /Users/ohthehugemanatee/.drushrc.php
    [context-path] => /Users/ohthehugemanatee/.drushrc.php
)
 [0.11 sec, 8.3 MB]
This script will create a new workspace at /Users/ohthehugemanatee/aegir-up/foobar.
It will use the 'dev-aegir' blueprint.
Function: _aegir_up_list_workspaces() [0.11 sec, 8.3 MB]                                                                                                         [debug]
WORKSPACE_ROOT: /Users/ohthehugemanatee/aegir-up/ [0.11 sec, 8.3 MB]                                                                                                     [debug]
Function: _aegir_up_list_workspaces() [0.11 sec, 8.3 MB]                                                                                                         [debug]
$file: . [0.11 sec, 8.3 MB]                                                                                                                                      [debug]
Function: _aegir_up_list_workspaces() [0.11 sec, 8.3 MB]                                                                                                         [debug]
$file: .. [0.11 sec, 8.3 MB]                                                                                                                                     [debug]
Function: _aegir_up_next_available_subnet() [0.11 sec, 8.3 MB]                                                                                                   [debug]
Workspaces: 0: Array                                                                                                                                             [debug]
(
)
 [0.11 sec, 8.3 MB]
Function: drush_aegirup_aegir_up_initialize() [0.11 sec, 8.3 MB]                                                                                                 [debug]
Subnet: : 10 [0.11 sec, 8.31 MB]                                                                                                                                 [debug]
Do you want to proceed with initializing the workspace? (y/n): y
Function: _aegir_up_list_workspaces() [0.11 sec, 8.31 MB]                                                                                                        [debug]
WORKSPACE_ROOT: /Users/ohthehugemanatee/aegir-up/ [0.12 sec, 8.31 MB]                                                                                                    [debug]
Function: _aegir_up_list_workspaces() [0.12 sec, 8.31 MB]                                                                                                        [debug]
$file: . [0.12 sec, 8.31 MB]                                                                                                                                     [debug]
Function: _aegir_up_list_workspaces() [0.12 sec, 8.31 MB]                                                                                                        [debug]
$file: .. [0.12 sec, 8.31 MB]                                                                                                                                    [debug]
Function: _aegir_up_next_available_subnet() [0.12 sec, 8.31 MB]                                                                                                  [debug]
Workspaces: 0: Array                                                                                                                                             [debug]
(
)
 [0.12 sec, 8.32 MB]
Calling _drush_recursive_copy(/Users/ohthehugemanatee/.drush/aegir-up/lib/blueprints/dev-aegir, /Users/ohthehugemanatee/aegir-up/foobar/) [0.12 sec, 8.31 MB]                     [debug]
Calling _drush_recursive_copy(/Users/ohthehugemanatee/.drush/aegir-up/lib/blueprints/.config, /Users/ohthehugemanatee/aegir-up/foobar/.config) [0.13 sec, 8.31 MB]                [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.32 MB]                                                                                                [debug]
$dotfiles_dir: /Users/ohthehugemanatee/aegir-up/foobar/.config/files [0.13 sec, 8.32 MB]                                                                                  [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.32 MB]                                                                                                [debug]
$dotfile: .profile [0.13 sec, 8.32 MB]                                                                                                                           [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.32 MB]                                                                                                [debug]
: /Users/ohthehugemanatee/.profile [0.13 sec, 8.33 MB]                                                                                                                   [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.33 MB]                                                                                                [debug]
$dotfile: .bashrc [0.13 sec, 8.33 MB]                                                                                                                            [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.33 MB]                                                                                                [debug]
: /Users/ohthehugemanatee/.bashrc [0.13 sec, 8.33 MB]                                                                                                                    [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.33 MB]                                                                                                [debug]
$dotfile: .vimrc [0.13 sec, 8.33 MB]                                                                                                                             [debug]
Function: drush_aegirup_aegir_up_initialize() [0.13 sec, 8.33 MB]                                                                                                [debug]
: /Users/ohthehugemanatee/.vimrc [0.13 sec, 8.33 MB]                                                                                                                     [debug]
Enter your password to add an entry for 'foobar' to your hosts file, or press CTRL-c to leave it as is.
Executing: echo "192.168.10.10    "foobar".aegir.local" | sudo tee -a /etc/hosts
Calling proc_open(echo "192.168.10.10    "foobar".aegir.local" | sudo tee -a /etc/hosts);
192.168.10.10    foobar.aegir.local
Executing: cd /Users/ohthehugemanatee/aegir-up/foobar && vagrant up
Calling proc_open(cd /Users/ohthehugemanatee/aegir-up/foobar && vagrant up);
/Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/hosts/bsd.rb:32: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
[hm] Importing base box 'debian-LAMP-2012-03-29'...
<strong>[hm] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.1.8
VirtualBox Version: 4.1.18</strong>
[hm] Matching MAC address for NAT networking...
[hm] Clearing any previously set forwarded ports...
[hm] Forwarding ports...
[hm] -- 22 => 2222 (adapter 1)
[vagrant] Pruning invalid NFS exports. Administrator privileges will be required...
[hm] Exporting NFS shared folders...
[vagrant] Preparing to edit /etc/exports. Administrator privileges will be required...
[hm] Creating shared folders metadata...
[hm] Clearing any previously set network interfaces...
[hm] Preparing network interfaces based on configuration...
[hm] Running any VM customizations...
[hm] Booting VM...
[hm] Waiting for VM to boot. This can take a few minutes.
[hm] VM booted and ready for use!
[hm] Configuring and enabling network interfaces...
[hm] Setting host name...
[hm] Mounting shared folders...
[hm] -- v-root: /vagrant
[hm] -- v-pp-m0: /tmp/vagrant-puppet/modules-0
[hm] -- manifests: /tmp/vagrant-puppet/manifests
[hm] -- v-pp-m1: /tmp/vagrant-puppet/modules-1
[hm] Mounting NFS shared folders...
<strong>Mounting NFS shared folders failed. This is most often caused by the NFS
client software not being installed on the guest machine. Please verify
that the NFS client software is properly installed, and consult any resources
specific to the linux distro you're using for more information on how to
do this.</strong>
Executing: cd /Users/ohthehugemanatee/aegir-up/foobar && git init && git add . && git commit -m'Initial commit.'
Calling proc_open(cd /Users/ohthehugemanatee/aegir-up/foobar && git init && git add . && git commit -m'Initial commit.');
Initialized empty Git repository in /users/ohthehugemanatee/aegir-up/foobar/.git/
[master (root-commit) 36059f6] Initial commit.
 4 files changed, 192 insertions(+), 0 deletions(-)
 create mode 100644 makefiles/custom-aegir.make
 create mode 100644 manifests/hm.pp
 create mode 100644 manifests/hs.pp
 create mode 100644 settings.rb
Your workspace was successfully initialized.
The root for your workspace is /Users/ohthehugemanatee/aegir-up/foobar
Undefined variable: subnet aegirup.drush.inc:312 [145.92 sec, 8.33 MB]                                                                                          [notice]
The subnet for your workspace has been set to 192.168..0, and an initial entry in your /etc/hosts file written.
You can now: * Alter Aegir-up's behaviour by editing /Users/ohthehugemanatee/aegir-up/foobar/settings.rb.
             * Redefine the VM(s) by editing the Puppet manifest(s) in /Users/ohthehugemanatee/aegir-up/foobar/manifests.
             * Add additional Puppet modules by copying them to /Users/ohthehugemanatee/aegir-up/foobar/modules.
Command dispatch complete [145.92 sec, 8.28 MB]                                                                                                                 [notice]
Peak memory usage was 9.39 MB [145.92 sec, 8.28 MB]    

The only obvious issue is the Guest Additions version, but that's a property of the Guest VM supplied with aegir-up (to my understanding).

I can see that it's successfully editing my /etc/exports to create the NFS export. Unfortunately I can't SSH in because all that seems to be set up after the NFS mount, or I'd try mounting NFS manually. Can you advise on a good way to get into the VM to test this?

ergonlogic’s picture

As per the README (http://drupalcode.org/project/aegir-up.git/blob/refs/heads/7.x-0.x:/READ...), you need an NFS-server installed on your local system. Are you certain that you have one installed?

Can you advise on a good way to get into the VM to test this?

In the directory with the Vagrantfile, you should be able to run 'vagrant ssh' to connect.

ergonlogic’s picture

Status: Active » Closed (cannot reproduce)

3+ months of no activity; closing.