What issue or error are you experiencing?
Cant create a new site after installing Local on new M2 mac. macOS 13.4<<<<<<<
My Firewall is disabled and I have tried switching router mode to local host.
I get the following error:
Uh-oh! Could not update hosts file
Local ran into a problem when trying to update the hosts file.
Please ensure that the hosts file is not locked by anti-virus.
- Error: Error: spawn Unknown system error -86at ChildProcess.spawn (node:internal/child_process:413:11)at spawn (node:child_process:709:9)at execFile (node:child_process:336:17)at t. (node:electron/js2c/asar_bundle:5:2206)at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:583at new Promise ()at Object. (/Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:534)at Generator.next ()at /Applications/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:330at new Promise ()
System Details
7.1.2+6410
M2 mac. macOS 13.4
Local Logs
{"localVersion":"7.1.2+6410","osPlatform":"darwin","osRelease":"22.5.0","osArch":"arm64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2023-08-29T16:26:09.490Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:27:32.907Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"bf7f7d7cd2c14b288060a777a4871013","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:27:41.339Z"}
{"thread":"main","class":"LightningServicesService","message":"network timeout at: https://getflywheel.github.io/local-lightning-services/site-services-v2.json","type":"request-timeout","level":"error","stack":"FetchError: network timeout at: https://getflywheel.github.io/local-lightning-services/site-services-v2.json\n at Timeout.<anonymous> (%%appPath%%/node_modules/node-fetch/lib/index.js:1484:13)\n at listOnTimeout (node:internal/timers:559:17)\n at process.processTimers (node:internal/timers:502:7)","timestamp":"2023-08-29T16:27:41.345Z"}
{"thread":"main","class":"HostsFileService","error":{},"stdout":{},"stderr":{},"exitCode":{},"level":"error","message":"Could not update hosts.","timestamp":"2023-08-29T16:27:42.254Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:29:34.809Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"45f15e3659834d83a2bc101485f8c87c","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:30:00.499Z"}
{"thread":"main","class":"HostsFileService","error":{},"stdout":{},"stderr":{},"exitCode":{},"level":"error","message":"Could not update hosts.","timestamp":"2023-08-29T16:30:01.343Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:34:28.165Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"7b3e19977f4b4e199b1a9e8553868b42","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:34:29.798Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:34:44.387Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"8a6b199c641e4040b708915da3e51d5a","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:34:45.855Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:35:18.054Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"b8e7113370f04f069e097d1eccbacb2d","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:35:19.696Z"}
{"localVersion":"7.1.2+6410","osPlatform":"darwin","osRelease":"22.5.0","osArch":"arm64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2023-08-29T16:39:41.258Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:39:53.762Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"650efa43381947e18f58147d569f7690","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:39:56.118Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"a1eb8c40c0314971a517561e206a9f28","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:41:54.184Z"}
{"thread":"main","class":"HostsFileService","error":{},"stdout":{},"stderr":{},"exitCode":{},"level":"error","message":"Could not update hosts.","timestamp":"2023-08-29T16:41:55.027Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"8dec2734092f4e9db77ae2b0c79d7cc1","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:42:08.223Z"}
{"thread":"main","class":"HostsFileService","error":{},"stdout":{},"stderr":{},"exitCode":{},"level":"error","message":"Could not update hosts.","timestamp":"2023-08-29T16:42:09.065Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"8d9f68a55b23480bb879ff213437d11c","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:42:31.435Z"}
{"thread":"main","class":"HostsFileService","error":{},"stdout":{},"stderr":{},"exitCode":{},"level":"error","message":"Could not update hosts.","timestamp":"2023-08-29T16:42:32.268Z"}
{"thread":"main","class":"SiteProvisionerService","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:709:9)\n at execFile (node:child_process:336:17)\n at t.<computed> (node:electron/js2c/asar_bundle:5:2206)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:583\n at new Promise (<anonymous>)\n at Object.<anonymous> (%%appPath%%/main/_helpers/execFilePromise.js:1:534)\n at Generator.next (<anonymous>)\n at %%appPath%%/main/_helpers/execFilePromise.js:1:330\n at new Promise (<anonymous>)","level":"error","message":"Unable to provision site.","timestamp":"2023-08-29T16:43:28.127Z"}
{"thread":"main","reason":{"errno":-86,"code":"Unknown system error -86","syscall":"spawn"},"p":{},"eventId":"fc93225ddc504a849b26a6d472169015","level":"warn","message":"Unhandled Rejection.","timestamp":"2023-08-29T16:43:29.638Z"}
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.