codekitchen / dinghy

faster, friendlier Docker on OS X. Deprecated.
MIT License
2.12k stars 109 forks source link

NFS problems creating a new Machine with virtualbox/OSX #251

Closed ddaza closed 6 years ago

ddaza commented 7 years ago

Having issues when running dinghy create --provider virtualbox for the first time. It looks like the configuration goes though but it gets stuck on NFS and errors out after a while:

...
...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env dinghy
Starting NFS daemon, this will require sudo
Waiting for NFS daemon...
Mounting NFS /Users/ddaza
mount: RPC: Timed out
mount: mounting 192.168.99.1:/Users/ddaza on /Users/ddaza failed: Bad file descriptor
exit status 110
/usr/local/Cellar/dinghy/4.5.0/cli/dinghy/system.rb:18:in `system': Failure calling `docker-machine ssh dinghy sudo mount -t nfs 192.168.99.1:/Users/ddaza /Users/ddaza -o nfsvers=3,udp,mountport=19900,port=19900,nolock,hard,intr` (System::Failure)
        from /usr/local/Cellar/dinghy/4.5.0/cli/dinghy/machine.rb:126:in `system'
        from /usr/local/Cellar/dinghy/4.5.0/cli/dinghy/machine.rb:98:in `ssh'
        from /usr/local/Cellar/dinghy/4.5.0/cli/dinghy/machine.rb:94:in `mount'
        from /usr/local/Cellar/dinghy/4.5.0/cli/cli.rb:211:in `start_services'
        from /usr/local/Cellar/dinghy/4.5.0/cli/cli.rb:60:in `create'
        from /usr/local/Cellar/dinghy/4.5.0/cli/thor/lib/thor/command.rb:27:in `run'
        from /usr/local/Cellar/dinghy/4.5.0/cli/thor/lib/thor/invocation.rb:126:in `invoke_command'
        from /usr/local/Cellar/dinghy/4.5.0/cli/thor/lib/thor.rb:359:in `dispatch'
        from /usr/local/Cellar/dinghy/4.5.0/cli/thor/lib/thor/base.rb:440:in `start'
        from /usr/local/bin/_dinghy_command:12:in `<main>'

my machine and versions:

ProductName:    Mac OS
ProductVersion: 10.12.
BuildVersion:   16F73
-- dinghy version 
Dinghy 4.5.0
-- docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        unknown-buildtime
 OS/Arch:      darwin/amd64
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
-- docker-machine version
docker-machine version 0.12.2, build 9371605

Thanks for any help!

willnet commented 7 years ago

@ddaza

I encountered same problem. But I solved it by disable firewall software. Why don't you check firewall settings if you use it.

codekitchen commented 6 years ago

I'm sorting through some inactive issues in the tracker. Please re-open if you are still running into this issue after changing the firewall settings.