ezsystems / launchpad

CLI tool to bootstrap an eZ Platform project Docker stack | #justcode
https://ezsystems.github.io/launchpad
MIT License
22 stars 27 forks source link

Error while mounting NFS volume #51

Closed Kwadz closed 6 years ago

Kwadz commented 6 years ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Version f62c16d583bb7e483366cf6e5a99aa721c118638
Environment Mac

After executing the ~/ez init command, the containers are well created but the following error appear:

Recreating richardez_engine_1 ... error

ERROR: for richardez_engine_1  Cannot start service engine: error while mounting volume '/var/lib/docker/volumes/richardez_nfsmount/_data': error while mounting volume with options: type='nfs' device=':/Users/richard/dev/aad/ez/' o='addr=host.docker.internal,lock': connection refused

ERROR: for engine  Cannot start service engine: error while mounting volume '/var/lib/docker/volumes/richardez_nfsmount/_data': error while mounting volume with options: type='nfs' device=':/Users/richard/dev/aad/ez/' o='addr=host.docker.internal,lock': connection refused
ERROR: Encountered errors while bringing up the project.

In Process.php line 239:

  The command "docker-compose -p richardez -f /Users/richard/dev/aad/ez/provisioning/dev/docker-compose.yml -f /Users/richard/dev/aad/ez/provis
  ioning/dev/docker-compose-osx.yml up -d" failed.

  Exit Code: 1(General error)

  Working directory: /Users/richard/dev/aad/ez

  Output:
  ================

  Error Output:
  ================

Docker for Mac 18.06.1-ce-mac73 (26764) MacOS 10.13.6

Plopix commented 6 years ago

It sound that it is a configuration issue. could you provide your /etc/exports

nfsd is started: sudo nfsd restart

Kwadz commented 6 years ago

Yes, you're right. I just needed to start nfsd that was stopped đŸ˜• Hope this issue will help others in the same situation. Thanks

Plopix commented 6 years ago

anytime @Kwadz ! Glad it works now ;-) Launchpad is supposed to do the nfsd restart so something went off somewhere! https://github.com/ezsystems/launchpad/blob/master/src/Core/OSX/Optimizer/NFSTrait.php#L95

lolautruche commented 5 years ago

Hello

I have a very similar issue:

ERROR: for engine  Cannot start service engine: error while mounting volume '/var/lib/docker/volumes/lolautruchefoo_nfsmount/_data': error while mounting volume with options: type='nfs' device=':/Users/lolautruche/workspace/foo/' o='addr=host.docker.internal,lock': permission denied
ERROR: Encountered errors while bringing up the project.

No matter what, it always fail...

flovntp commented 5 years ago

Just for others on Mac, if you still get the error, please remove from /etc/exports all lines that are not linked to ezlaunchpad and restart nfsd.