Closed Bug 1056049 Opened 10 years ago Closed 9 years ago

Vagrant: Document further NFS share troubleshooting steps

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Sylvestre, Assigned: jfrench)

Details

Attachments

(1 file)

Running a Debian jessie (aka testing) with the regular Ubuntu 32 bit version.
I installed NFS on both host + slave.

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

mount -o 'vers=3,udp' 192.168.33.1:'/home/sylvestre/dev/mozilla/treeherder-service' /home/vagrant/treeherder-service

Stdout from the command:



Stderr from the command:

stdin: is not a tty
mount.nfs: requested NFS version or transport protocol is not supported
-----

As mdoglio told me, the following patch fixed my issue:
diff --git a/Vagrantfile b/Vagrantfile
index f0e5d03..32c09a3 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -11,8 +11,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   
   config.vm.network "private_network", ip: "192.168.33.10"
 
-  config.vm.synced_folder ".", "/home/vagrant/treeherder-service", type: "nfs"
-  config.vm.synced_folder "../treeherder-ui", "/home/vagrant/treeherder-ui", type: "nfs"
+  config.vm.synced_folder ".", "/home/vagrant/treeherder-service"
+  config.vm.synced_folder "../treeherder-ui", "/home/vagrant/treeherder-ui"
 
   config.vm.provider "virtualbox" do |vb|
     vb.customize ["modifyvm", :id, "--memory", "1024"]
What version of Vagrant are you using btw?

Also https://github.com/mitchellh/vagrant/issues/1744 seems relevant.

Worst case we could add platform conditionals in the Vagrantfile to not use NFS on debian, but iirc the perf is quite a bit worse, so seems better if we can find the root cause.
I am using vagrant 1.4.3+dfsg1-2 (Debian package).
v1.6.3 is the latest - maybe try that?
(In reply to Ed Morley [:edmorley] from comment #3)
> v1.6.3 is the latest - maybe try that?
Flags: needinfo?(sledru)
Summary: NFS share is failing in the install of treeherder service → Vagrant: NFS share is failing in the install of treeherder service
I am sorry Ed but I am using packages provided in the Debian archive and Vagrant is the 1.4.3 last one available.

More info:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741996
https://tracker.debian.org/pkg/vagrant
Flags: needinfo?(sledru)
There's a Debian package available direct from http://www.vagrantup.com/downloads.html
Well, it is Ubuntu and I usually try to avoid upstream Deb packages since they might not have the same quality as Debian official packages.

But I will give it a try :)
Blocks: 1072681
No longer blocks: 1072681
Component: Treeherder → Treeherder: Docs & Development
Priority: P3 → P4
Not sure if this is still relevant but I ran into the exact same error while setting up vagrant and treeherder-service last night. I'm on Debian Testing as well and my version of Vagrant is 1.6.5. 

I got it working by stopping and re-starting the nfs-kernel-server.service. More specifically, I ran these commands:
systemctl stop nfs-kernel-server.service
systemctl disable nfs-kernel-server.service
systemctl enable nfs-kernel-server.service
systemctl start nfs-kernel-server.service

Got the unlinkely solution from this thread on Arch forums: https://bbs.archlinux.org/viewtopic.php?id=183608 (second last comment). I don't know if it's just me but posting this here so anyone else stuck could get some help. I'm currently running it without any problems and I didn't need to apply the patch involving the removal of nfs from the Vagrantfile.
That's really useful - thank you :-)
Priority: P4 → P3
Summary: Vagrant: NFS share is failing in the install of treeherder service → Vagrant: Document further NFS share troubleshooting steps
Assignee: nobody → tojonmz
Status: NEW → ASSIGNED
Attached file treeherder-ui-PR#530
Please see above PR for review and status.
Attachment #8604853 - Flags: review?(emorley)
Comment on attachment 8604853 [details] [review]
treeherder-ui-PR#530

Thank you :-)
Attachment #8604853 - Flags: review?(emorley) → review+
Marking this bug fixed per above merge, unless anyone has any concerns.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: Treeherder: Docs & Development → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: