joomlatools / joomlatools-vagrant

Vagrant box for Joomla development.
https://www.joomlatools.com/developer/tools/vagrant/
Mozilla Public License 2.0
141 stars 37 forks source link

Requested NFS version or transport protocol is not supported #132

Closed JurgenG closed 5 years ago

JurgenG commented 6 years ago

Describe your environment

Describe the problem:

In the first launch of the Vagrant box, the install fails with the error

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp,rw,tcp,nolock,noacl,async 33.33.33.1:/home/jurgen/vagrant/joomla.box/www /var/www

Stdout from the command:

Stderr from the command:

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

I solved the issue by manually starting the nfs service (sudo service nfs start) but I can imagine a test for this would be in place and the service should be launched by the installer.

Steps to reproduce:

  1. vagrant init joomlatools/box and then vagrant up
  2. wait...

Observed Results:

See above

Expected Results:

The vagrant box would work just fine

Relevant Code:

  // TODO(you): code here to reproduce the problem

Possibly relevant

I'm already running other webservers in /var/www

stevenrombauts commented 6 years ago

@JurgenG Thanks for this report and the solution! None of us currently works with Ubuntu 18.08 so can't verify this right away.

Could you please tell me if the nfs service was installed by default or not? Did you have to install it first, or just start it? On subsequent runs (after rebooting, for example), do you still need to start it manually?

We can add this to the README and FAQ for starters.

tassosm commented 5 years ago

I am also facing this issue on Ubuntu 18.04.2 LTS with vagrant 2.2.4

The issue started after some updates got installed today.

I also solved it by running sudo service nfs-kernel-server start

stevenrombauts commented 5 years ago

Thanks for pointing this out. We've added the Ubuntu requirement to the set up instructions: https://www.joomlatools.com/developer/tools/vagrant/getting-started#installation