Can't start version 2.1.2 - maybe a docker issue

The only version I can run is 2.0.1 (and even then, I can’t get to the site because I get the “This site can’t be reached” error).

I thought things would work well by going 2.1.2 - no luck - the local machine just doesn’t start.

Here’s the log, which has errors related to docker:

Nov 16, 2017, 8:45 PM MST - info: [main/index] Existing Pressmatic data does not exist.
Nov 16, 2017, 8:45 PM MST - debug: [main/check-system] Check System: Checking for VirtualBox
Nov 16, 2017, 8:45 PM MST - debug: [main/check-system] Check System: VirtualBox:  5.2.0r118431
 
Nov 16, 2017, 8:45 PM MST - debug: [updater] Checking for updates...
Nov 16, 2017, 8:45 PM MST - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
Nov 16, 2017, 8:45 PM MST - debug: [renderer/RendererAddonLoader] Renderer Add-on not enabled: local-addon-intellij-xdebug
Nov 16, 2017, 8:45 PM MST - info: [renderer/CheckEnvPage] Check system promise response: 
[ undefined, 'machine-halted' ]
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Checking Boot2Docker.iso hash
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Running  /private/var/folders/k8/7mx555588xl2qf006s6ws78r0000gp/T/AppTranslocation/6F15B6FE-BA5A-4D32-8746-3A870F44D721/d/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start local-by-flywheel
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Starting "local-by-flywheel"...
Nov 16, 2017, 8:45 PM MST - debug: [updater] Check for updates result 
{ release: null }
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] (local-by-flywheel) Waiting for an IP...
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Machine "local-by-flywheel" was started.
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Waiting for SSH to be available...
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Detecting the provisioner...
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine] Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Nov 16, 2017, 8:45 PM MST - info: [main/set-docker-env] Getting Docker Machine env.
Nov 16, 2017, 8:45 PM MST - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.75.100:2376"
export DOCKER_CERT_PATH="/Users/jimbrett/.docker/machine/machines/local-by-flywheel"
export DOCKER_MACHINE_NAME="local-by-flywheel"
# Run this command to configure your shell: 
# eval $("/private/var/folders/k8/7mx555588xl2qf006s6ws78r0000gp/T/AppTranslocation/6F15B6FE-BA5A-4D32-8746-3A870F44D721/d/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" env --shell bash local-by-flywheel)

Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine-nfs] NFS Mount Status 
{ error: null,
  stdout: 'tmpfs on / type tmpfs (rw,relatime,size=917692k)\nproc on /proc type proc (rw,relatime)\nsysfs on /sys type sysfs (rw,relatime)\ndevpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)\ntmpfs on /dev/shm type tmpfs (rw,relatime)\nfusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)\n/dev/sda1 on /mnt/sda1 type ext4 (rw,relatime,data=ordered)\ncgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)\ncgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)\ncgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)\ncgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)\ncgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)\ncgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)\ncgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)\ncgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)\ncgroup on /sys/fs/cgroup/net_cls type cgroup (rw,relatime,net_cls)\ncgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)\ncgroup on /sys/fs/cgroup/net_prio type cgroup (rw,relatime,net_prio)\ncgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)\ncgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)\nUsers on /Users type vboxsf (rw,nodev,relatime)\n/dev/sda1 on /mnt/sda1/var/lib/docker/aufs type ext4 (rw,relatime,data=ordered)\n',
  stderr: '',
  hasUsers: null }
Nov 16, 2017, 8:45 PM MST - info: [main/docker-machine-nfs] Enabling Docker Machine NFS
Nov 16, 2017, 8:45 PM MST - warn: [main/index] Unhandled Rejection at: Promise  Promise {
  <rejected> { error: 
   { Error: Command failed: sh "/private/var/folders/k8/7mx555588xl2qf006s6ws78r0000gp/T/AppTranslocation/6F15B6FE-BA5A-4D32-8746-3A870F44D721/d/Local by Flywheel.app/Contents/Resources/extraResources/shell-scripts/nfs-configure-mac.sh" "192.168.75.100" "502" "20"
   exports:3: /Users conflicts with existing export /
   
       at /private/var/folders/k8/7mx555588xl2qf006s6ws78r0000gp/T/AppTranslocation/6F15B6FE-BA5A-4D32-8746-3A870F44D721/d/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/sudo-prompt/index.js:329:27
       at tryToString (fs.js:449:3)
       at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:436:12) code: 1 },
  stdout: undefined,
  stderr: undefined,
  exitCode: 1 } }  reason:  
{ error: { code: 1 },
  stdout: undefined,
  stderr: undefined,
  exitCode: 1 }
Nov 16, 2017, 8:52 PM MST - info: [main/index] All Local sites are stopped. Shutting down VM.

Hi @jmbimagery,

It looks like there’s an NFS conflict with your existing VM setup (most likely Vagrant).

There are a few ways you can go about fixing this:

  1. Edit your /etc/exports file and remove any lines that currently exist in it. Then relaunch Local.
  2. Disable Faster Docker Volumes in Local. Please see my instructions in this specific post on how to do that: Can't start Flywheel

Just a heads up, Local 2.2 will no longer use macOS’s built-in NFS so it’ll get rid of this issue entirely. Until it’s released, one of the solutions above should get you sorted out!

I cleared out /etc/exports using vim and restarted Local - that worked!

I tried adding nfs.json containing { disabled: true } before without success, so that’s why I went with the /etc/exports route.

Also, stopped/started Local a couple of times to ensure that things work.

Thanks!

1 Like