-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify NFS mount fails #22
Comments
Excellent! Fixed in last pull request #19. |
Hi @gdemad. I believe I was on the latest pull request. Can you try tearing down your docker-machine, starting a new one and try running again? In my original report I stated:
Which based on your message "NFS already mounted". Looks like you are on the second run through. |
Hi @box-jhuffaker. Sorry, yes, looks like on the second run. Thx. |
@gdemad No problem, thanks for confirming! |
Few things, I spent the morning debugging this. I somehow got to a point where it eventually wouldn't ever mount the drive on one of my VMs (I cleared /etc/exports and re created and things came together). But generally if I keep restarting the VM it will eventually mount it. (I verify by running the df command like the script). I'm not sure if there's a race between nfsd and restarts or some other issue. |
I tried moving the restart into the verify loop, but it didn't fix my problem. Which debunks my theory about restarts. |
I should note: I'm on OSX El Capitan |
I tried moving the nfsd restart into the verify loop. Still not working. |
I tried screwing around. Adding an nfsd update... moving boot local to /opt/bootlocal.sh (which seems to be the preferred location on boot2docker 1.9.1 which docker-machine 0.5.1a seems go come with. Also explicitly cleard ~/.docker/machine/cache to remove the boot2docker.iso and caused a re-download. Basically I'm shooting blindly at things. I'm happy to try things for people that can actually aim fixes, as my machine is reproing. |
I notice this in /var/log/bootlocal.log: I'm not sure what state my nfsd was when I started the VM. But this verifies that the bootlocal.sh is in the right place. |
Possible workaround: I try open new terminal session and see message: Error running connection boilerplate: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs name'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
|
I assume this is just because it's the second run. If you remove the
|
Hey guys, I upgraded to latest docker engine, with latest docker machine, latest virtualbox on OS X El Capitan and it all works without issues ... $ dm create --driver virtualbox tst
Running pre-create checks...
Creating machine...
(tst) OUT | Creating VirtualBox VM...
(tst) OUT | Creating SSH key...
(tst) OUT | Starting VirtualBox VM...
(tst) OUT | Starting VM...
Waiting for machine to be running, this may take a few minutes...
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning created instance...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
To see how to connect Docker to this machine, run: docker-machine env tst $ docker-machine-nfs tst
[INFO] machine presence ... OK
[INFO] machine running ... OK
[INFO] Lookup mandatory properties ... OK
- Machine IP: 192.168.99.101
- Network ID: vboxnet4
- NFSHost IP: 192.168.99.1
[INFO] Configure NFS ...
!!! Sudo will be necessary for editing /etc/exports !!!
Password:
OK
[INFO] Configure Docker Machine ... OK
[INFO] Restart Docker Machine ... OK
[INFO] Verify NFS mount ... OK
--------------------------------------------
The docker-machine 'tst'
is now mounted with NFS!
ENJOY high speed mounts :D
-------------------------------------------- Are you sure the docker-machine-nfs script is up to date on your machine? |
Really, after upgrade docker engine, see nice work! ➜ ~ docker -v
Docker version 1.9.1, build a34a1d5
➜ ~ docker-machine -v
docker-machine version 0.5.1 (7e8e38e)
|
@gdemad and it still doesn't work? |
@tonivdv no, It works fine! 👍 Can be closed this issue. Thx, |
Okay great :) |
Broken for me... Macbook pro, retina. jhuffaker@mbp-003138 ~ $ docker -v
[INFO] machine presence ... OK
[INFO] Configure NFS ... !!! Sudo will be necessary for editing /etc/exports !!! Cannot detect the NFS mount :( |
Here's /etc/exports: "/Users" 192.168.99.112 -alldirs -mapall=563785388:1221986466 |
Here's the tst bootlocal log: |
I ran this manually from the command line: Just seems to hang. |
boot2docker info: |
I'm starting to think my VM just can't reach my host laptop for some reason. |
It just takes a while. Both bootlocal.log and my manually run mount command ended with: |
@box-jhuffaker Did you already reboot your mac? When nfsd was hanging this somehow unblocked the situation and never happened again. |
Oh I really haven't! I'll throw in a reboot and get back to you. jhuffaker@mbp-003138 ~ $ uptime On Mon, Nov 30, 2015 at 7:11 AM, Toni Van de Voorde <
|
A restart fixed it, thanks for the tip and all of your work on this script. Glad I got a pretty good root cause in the end. |
@box-jhuffaker glad it works. Cheers |
Rebooting fixed the issue for me as well, @huggsboson. |
Glad to hear that, @nhooey. |
Reboot not worked for me =/
The
Additional info:
|
Second (!) run of
|
@nenemoianemoi Ok thanks for sharing. I guess I will have to put those 20s until docker-machine answers my question about a potential bug on their side. Cheers |
Just ran in to this issue, the |
I also had this issue and the reason was "Block incoming connections" for nfsd in |
Mmmm.. I still have same issue. Is this supposed to work with the new docker-machine?
|
Hi @brahama , I've got same machine version and I've got no issues at all ...
|
I ran into this issue today =/
€dit: I was able to get it running. The /etc/hosts file on the host machine was missing |
In the newest version (as of today, though ) using the 1.9.0a packages I'm getting a verifying NFS mount error on first run through. Though it works on the second invocation.
Here's the output of docker-machine-nfs default:
[INFO] machine presence ... OK
[INFO] machine running ... OK
[INFO] Lookup mandatory properties ... OK
[INFO] Configure NFS ...
!!! Sudo will be necessary for editing /etc/exports !!!
Password:
OK
[INFO] Configure Docker Machine ... OK
[INFO] Restart Docker Machine ... OK
[INFO] Verify NFS mount ... FAIL
Cannot detect the NFS mount :(
The text was updated successfully, but these errors were encountered: