richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

Mounting NFS shared folders... #68

Open joeainsworth opened 8 years ago

joeainsworth commented 8 years ago

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?

richdynamix commented 8 years ago

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

joeainsworth commented 7 years ago

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

richdynamix commented 7 years ago

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?

joeainsworth commented 7 years ago

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

richdynamix commented 7 years ago

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.

mike-source commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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