magestead icon indicating copy to clipboard operation
magestead copied to clipboard

Mounting NFS shared folders...

Open joeainsworth opened this issue 8 years ago • 8 comments

Pretty sure this will be a problem with my local machine. I've tried searching but to no avail.

==> local: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

set -e
mkdir -p /var/www
mount -o vers=3,udp 192.168.47.1:/Users/joe/Code/trader /var/www
if command -v /sbin/init && /sbin/init --version | grep upstart; then
  /sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=/var/www
fi

Stdout from the command:

Stderr from the command:

mount.nfs: requested NFS version or transport protocol is not supported
Installing Magento 2 with Composer

Any ideas?

joeainsworth avatar Sep 09 '16 10:09 joeainsworth

Which host OS are you using? Vagrant and Virtualbox versions?

richdynamix avatar Sep 09 '16 10:09 richdynamix

Hi @richdynamix

I'm using OS X 10.10.5, Vagrant 1.8.5 and VirtualBox 5.1.4.

I have PHP 7.0 with mcrypt and intl extensions installed and enabled.

Thanks Joe

joeainsworth avatar Sep 16 '16 09:09 joeainsworth

I haven't tested this with PHP 7.0 on the host machine yet however I don't think this would be the issue. It is most likely an issue with vagrant and virtual box.

My vagrant version is one less than yours, I will upgrade and retest. Are you having any issues with other VMs?

richdynamix avatar Sep 18 '16 07:09 richdynamix

Not having any other issues. I think I'll try downgrading in this case.

joeainsworth avatar Sep 22 '16 12:09 joeainsworth

There are some known issues with Vagrant 1.8.5. It maybe related. I am currently using 1.8.1 and have been reluctant to upgrade. I am also using VirtualBox 5.0.26. I just updated my PHP to 7.0.11 today. I will be testing Magestead on this in the next few days.

richdynamix avatar Sep 22 '16 13:09 richdynamix

I'm encountering this exact issue.

==> local: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

set -e
mkdir -p /var/www
mount -o vers=3,udp 192.168.56.1:/Projects/04_MAGESTEAD/mysite.com /var/www
if command -v /sbin/init && /sbin/init --version | grep upstart; then
  /sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=/var/www
fi


Stdout from the command:



Stderr from the command:

mount.nfs: requested NFS version or transport protocol is not supported

Vagrant:

$ vagrant version
Installed Version: 1.8.6

Virtualbox:

$ vboxmanage --version
5.1.6r110634

Host OS is OSX 10.12.3

Something I spotted is the IP being spat out here is 192.168.56.1, the IP I entered in the install process (and in magestead.yaml) was 192.168.56.104.

Might be completely barking up the wrong tree, but I noticed the IP in the original post was 192.168.47.1, could this be to do with the IP being chopped at the 0 or after a certain number of characters? Just a thought.

Changing magestead.yaml to 192.168.56.1 didn't help though.

mike-source avatar Mar 01 '17 17:03 mike-source

One other potential issue I came across googling... I am running Docker (was trialling the Magento Devbox) and I found a github issue here where there seemed to be an NFS issue running Vagrant and Docker at the same time: https://github.com/mitchellh/vagrant/issues/5424

Possibly related?

mike-source avatar Mar 01 '17 17:03 mike-source

tried again with default IP and Docker disabled and got identical error as @joeainsworth

so probably not either of the things I suggested... am going to have to abandon Magestead for now but happy to help debug

p.s. if you came here from google and are just trying to get any dev VM working locally for Magento 2, I feel your pain! Give Magento DevBox a try: http://devdocs.magento.com/guides/v2.1/install-gde/docker/docker-over.html

mike-source avatar Mar 01 '17 18:03 mike-source