Can't open Local after Mac restart

Had some hanging apps so I had to restart my Mac. Now Flywheel by Local won’t open.

Had the same error messages as were found before the solution in this thread: Power up failed - Can't restart Local

Unfortunately, that terminal command won’t work, and I’m getting this message when I execute the vmware-vdiskmanager:

Bad CPU type in executable

@byjc,

Sorry about this!

Can you please provide your local-by-flywheel.log file? See How do I retrieve Local's log file?

Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/johnchandler/Library/Application Support/Local by Flywheel/environments/custom-1-3-0/package.json
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-2/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-2/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-2/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-2/out/environment.js
Jan 16, 2020, 11:41 AM MST - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
Jan 16, 2020, 11:41 AM MST - info: [renderer/CheckEnvPage] Check system promise response: 
[ undefined, 'machine-halted' ]
Jan 16, 2020, 11:41 AM MST - info: [main/docker-machine] Checking Boot2Docker.iso hash
Jan 16, 2020, 11:41 AM MST - info: [main/docker-machine] Running  /Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start local-by-flywheel
Jan 16, 2020, 11:41 AM MST - info: [main/docker-machine] Starting "local-by-flywheel"...
Jan 16, 2020, 11:41 AM MST - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] Unable to start the VM: /usr/local/bin/VBoxManage startvm local-by-flywheel --type headless failed:
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] VBoxManage: error: Could not open the medium '/Users/johnchandler/.docker/machine/machines/local-by-flywheel/disk.vmdk'.
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] VBoxManage: error: VMDK: inconsistency between grain table and backup grain table in '/Users/johnchandler/.docker/machine/machines/local-by-flywheel/disk.vmdk' (VERR_VD_VMDK_INVALID_HEADER).
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] VBoxManage: error: VD: error VERR_VD_VMDK_INVALID_HEADER opening image file '/Users/johnchandler/.docker/machine/machines/local-by-flywheel/disk.vmdk' (VERR_VD_VMDK_INVALID_HEADER)
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MediumWrap, interface IMedium
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine]  
Jan 16, 2020, 11:41 AM MST - warn: [main/docker-machine] Details: 00:00:00.056973 Power up failed (vrc=VINF_SUCCESS, rc=NS_ERROR_FAILURE (0X80004005))

Thanks!

I just updated the instructions in my reply here to work with Catalina: Power up failed - Can't restart Local

Thanks…got it running again. Now I’m getting this error when I click on each individual site:

“Uh-oh! The requested site ID does not exist in Local.”

Okay…it refreshed itself and not’s is creating site containers as needed it looks like.

Glad to hear the repair helped.

As far as the site ID issues go, I would try restarting Local entirely. If that still doesn’t help, can you send the logs one more time?

Now I’m seeing a new behavior –

When I first open it it starts up and shows all of my sites and they are all off. And then it seems to refresh and show about 7-8 of them running, and then this error keeps loading in the log every second:

Jan 16, 2020, 1:55 PM MST - warn: [main/docker-machine-fdv] unfsd stderr: bind: Address already in use
Couldn’t bind to udp port 60983

And it can’t seem to complete the process of creating a new site. Here’s the log related to that:

Jan 16, 2020, 2:15 PM MST - info: [main/docker-create-site-container] Creating container directories
Jan 16, 2020, 2:15 PM MST - info: [main/docker-create-site-container] Creating container with 
{ Image: 'custom:1.3',
  Tty: true,
  Cmd: '/etc/scripts/sleep.sh',
  ExposedPorts:
   { '80/tcp': {}, '443/tcp': {}, '3306/tcp': {}, '1080/tcp': {} },
  HostConfig:
   { Binds:
      [ '/Users/johnchandler/Local Sites/prisma/app:/app',
        '/Users/johnchandler/Local Sites/prisma/logs/nginx:/var/log/nginx',
        '/Users/johnchandler/Local Sites/prisma/logs/apache:/var/log/apache2',
        '/Users/johnchandler/Local Sites/prisma/logs/php:/var/log/php',
        '/Users/johnchandler/Local Sites/prisma/logs/mysql:/var/log/mysql',
        '/Users/johnchandler/Local Sites/prisma/conf/nginx:/etc/nginx/wordpress',
        '/Users/johnchandler/Local Sites/prisma/conf/php:/conf/php',
        '/Users/johnchandler/Local Sites/prisma/conf/apache:/etc/apache2' ],
     PortBindings:
      { '80/tcp': [ { HostPort: '4004' } ],
        '443/tcp': [ { HostPort: '4005' } ],
        '3306/tcp': [ { HostPort: '4006' } ],
        '1080/tcp': [ { HostPort: '4007' } ] } } }
Jan 16, 2020, 2:15 PM MST - info: [main/docker-create-site-container] Created container:  bd0f1ad2d4bf28f52a55fd9a0ea74cc7709df00dd39560adb98859adeb909606
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - error: [main/addSite]  
{ message:
   '(HTTP code 500) server error - all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: error while dialing: dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused" ',
  stack:
   'Error: (HTTP code 500) server error - all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: error while dialing: dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused" \n    at /Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/docker-modem/lib/modem.js:239:17\n    at getCause (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/docker-modem/lib/modem.js:269:7)\n    at Modem.buildPayload (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/docker-modem/lib/modem.js:238:5)\n    at IncomingMessage.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/node_modules/docker-modem/lib/modem.js:214:14)\n    at IncomingMessage.emit (events.js:187:15)\n    at IncomingMessage.EventEmitter.emit (domain.js:442:20)\n    at endReadableNT (_stream_readable.js:1092:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)',
  reason: 'server error',
  statusCode: 500,
  json:
   { message:
      'all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: error while dialing: dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused"' } }
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - info: [main/SiteEnvironmentInterimUpdater] wp-cli.phar is currently no such container. Updating to 2.2.0.
Jan 16, 2020, 2:15 PM MST - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: 'no such container', stderr: '' }
Jan 16, 2020, 2:15 PM MST - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: 'no such container', stderr: '' }
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: 'no such container', stderr: '' }
Jan 16, 2020, 2:15 PM MST - warn: [main/SiteModel] wpInstalled not returning "installed" 
{ message: '',
  stack:
   'Error\n    at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n    at Generator.next (<anonymous>)\n    at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n    at process._tickCallback (internal/process/next_tick.js:68:7)' }
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983
Jan 16, 2020, 2:15 PM MST - info: [main/stopSite] Stopping site: running mydumper
Jan 16, 2020, 2:15 PM MST - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: 'no such container', stderr: '' }
Jan 16, 2020, 2:15 PM MST - error: [main/exportDB]  
{ message: '',
  stack:
   'Error\n    at Object.<anonymous> (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2800)\n    at Generator.next (<anonymous>)\n    at _0x3cbc6e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1126)\n    at process._tickCallback (internal/process/next_tick.js:68:7)' }
Jan 16, 2020, 2:15 PM MST - info: [main/stopSite] Stopping site: stopping container e80a604a2f0db50d265c36f990381147ca0e513f404c4b2f1d76337921900bd4
Jan 16, 2020, 2:15 PM MST - warn: [main/docker-machine-fdv] unfsd stderr:  bind: Address already in use
Couldn't bind to udp port 60983

Based on the error you pointed out, you could try running killall unfsd to ensure that the NFS server for Faster Docker Volumes is fully shut down and that there aren’t any lingering processes.

Alternatively, you could try disabling Faster Docker Volumes from Preferences » Advanced.

Finally, I highly recommend making the switch to Local Lightning for any new sites :slight_smile:

Thanks, wasn’t even aware of Local Lightning, so yes, giving that a try for this new project I’m starting.

Unfortunately, still no luck with the issues I’m describing above. Seems like somehow none of the databases are readable, so I don’t even have the means to export these sites and migrate them to Lightning.

Open to any ideas, though

Got it.

Can you try creating a site one more time now that you’ve ran killall unfsd or disabled FDV? Once you do that, please send over the logs again so we can take a peek.

I have faith we can get to the bottom of this! Especially since the VMWare utility was able to repair the disk.

Thanks. I just went ahead and migrated/rebuilt everything in Lightning. Between repos and live sites, nothing was lost other than time. :frowning:

Glad to hear you’re up and running again!

I’m incredibly sorry for the trouble with VirtualBox and the loss of time. Going forward, you should see vastly improved stability and performance with Lightning.