Hangs on Checking System

Was working fine last week, booted it up today and won’t get past Checking System.

Updated to pre-release, updated virtualbox, uninstalled/reinstalled local

Nothing has helped. Currently getting this error:

Error: [main/index] TypeError: Cannot read property 'forEach' of null at exports.default (\local-by-flywheel\resources\app.asar\helpers\process-exports-vars.js:1:807)
 at _child_process2.(anonymous function).(anonymous function) (\local-by-flywheel\resources\app.asar\main\actions-docker\set-docker-env.js:1:3800)
    at ChildProcess.exithandler (child_process.js:289:5)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:921:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Tried a couple of suggestions in other posts to no avail.

Any suggestions?

Hi @justin.fly,

So sorry for the trouble!

Can you please provide the whole log file? Feel free to private message it to me.

Also, have you tried How can I forcefully restart the Local by Flywheel VM??

Hi @clay,

When I open VM while Local is open, it’s already stopped. If I open it when it’s closed, it’s stopped. If I start Local by Flywheel in VM then open Local or open Local and then start the VM process, it’s all the same outcome. There doesn’t seem to be any combination where Local starts the VM process.

Here is my full logs (note issue started 11 Jun):

local-by-flywheel.log (204.6 KB)

l have the same issue, can you assist

@justin.fly,

Please try the following:

  1. Quit Local if it’s running
  2. Open Terminal
  3. Run VBoxManage controlvm local-by-flywheel poweroff
  4. If the command above fails, run VBoxManage startvm local-by-flywheel --type emergencystop
  5. Run "/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" start local-by-flywheel
  6. Open Local by Flywheel

@Blessing,

Please provide your log file so we can get a better idea of what’s going on.

Sorry for the trouble!

@clay, I’m on Windows - I assume that command is for Mac?

Aha, my bad! I noticed that the log isn’t showing a drive letter like C:\. Where is \local-by-flywheel on your device?

The URL structure gives away some personal details we’d prefer not to share so it was reduced down. The main structure is:

C:\users\user\appdata\roaming\local by flywheel

@clay any word on this?

Got it!


Here are the instructions for Windows:

  1. Quit Local if it’s running
  2. Open Terminal
  3. Run "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm local-by-flywheel poweroff
  4. If the command above fails, run "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm local-by-flywheel --type emergencystop
  5. Run %LocalAppData%\Programs\local-by-flywheel\resources\extraResources\virtual-machine\vendor\docker\windows\docker-machine.exe start local-by-flywheel
  6. Open Local by Flywheel

@clay I get an error running the last command:

Error getting migrated host: invalid character ‘\x00’ looking for beginning of value

@justin.fly,

It looks like the Docker Machine config file may be corrupted. Can you please provide the config.json file in %HomePath%\.docker\machine\machines.

Feel free to private message the file to me instead of posting it publicly.

@clay the config.json file is 196 lines of:

0000 0000 0000 0000 0000 0000 0000 0000

Wow, that’s definitely not valid JSON. I wish I had an idea why that happened with Docker!

If you have backups of your sites or if there are recent SQL dumps in the site’s app/sql folders, I would suggest deleting the Local VM and then let Local reprovision it. Here are the steps:

  1. Close Local
  2. Open VirtualBox
  3. Delete the local-by-flwheel VM
  4. Navigate to %HomePath%\.docker\machine\machines and delete the local-by-flywheel folder
  5. Re-open Local
  6. Click on the “Restore” button for the sites you wish to restore

If this is not an option, let me know and we can work on rebuilding the config.json file.

1 Like

@clay removing the local-by-flywheel VM & folder in the docker directory worked a treat.

Local opened up fine, then I restored the sites with no issues.

Thanks for the help!

1 Like

This is the fix ! For Checking System stuck, Local Starting stuck and Local just waiting for IP. Restoring by deleting the VM files really worked! Thanks!

Terri

It also worked for me. Thanks clay…!!!