# (solved) Error provisioning site on fresh install / new laptop

**URL:** <https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489>\
**Category:** Archived Support\
**Tags:** installation, mac\
**Created:** [February 22, 2024, 5:09am UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489 "2024-02-22T05:09:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_sh](https://avatars.discourse-cdn.com/v4/letter/_/6bbea6/32.png) [@\_sh](https://community.localwp.com/u/_sh)\
**Post date:** [February 22, 2024, 5:09am UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/1 "2024-02-22T05:09:14Z")

</div>

Trying to create a new site after a fresh install on a brand new M3 MacBook Pro (Sonoma 14.1).

I get this error:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/0/1/01aeffdd26314e51229012fdca002af792ef353b.png)

And then after clicking OK I get this error after the app enters the ‘deleting’ state:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/6/e/6ef6388751fa12877a0856a219a25d0f9c990ec8.png)

Any insights are appreciated. Thanks.

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

Creating a new site, and hitting all of the defaults (preferred + default location). Happens 100% of the time.

* * *

### System Details

- **Local Version:**  
Version 8.2.1+6583

- **Operating System (OS) and OS version:**  
MacOS Sonoma 14.1

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

```auto
{"class":"SiteProvisionerService","level":"info","message":"Creating site folders...","thread":"main","timestamp":"2024-02-22T05:24:09.119Z"}
{"class":"SiteProvisionerService","level":"info","message":"Copying service config templates...","thread":"main","timestamp":"2024-02-22T05:24:09.121Z"}
{"class":"ConfigTemplatesService","level":"info","message":"Compiling service configs...","thread":"main","timestamp":"2024-02-22T05:24:09.129Z"}
{"dataPath":"%%site.runData%%/mysql/data","level":"info","message":"Initializing MySQL datadir...","service":{},"serviceBinVersion":{},"thread":"main","timestamp":"2024-02-22T05:24:09.143Z"}
{"class":"SiteProvisionerService","level":"error","message":"Unable to provision site.","stack":"Error: spawn Unknown system error -86\n at ChildProcess.spawn (node:internal/child_process:413:11)\n at spawn (node:child_process:783:9)\n at execFile (node:child_process:359:17)\n at t.<computed> (node:electron/js2c/asar_bundle:2:2265)\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>)","thread":"main","timestamp":"2024-02-22T05:24:09.144Z"}
{"class":"DeleteSiteService","level":"debug","message":"Trashing","thread":"main","timestamp":"2024-02-22T05:24:11.278Z"}
{"eventId":"1c5f34e022514af09a53170e31680c80","level":"warn","message":"Unhandled Rejection.","p":{},"reason":{"code":"Unknown system error -86","errno":-86,"syscall":"spawn"},"thread":"main","timestamp":"2024-02-22T05:24:11.278Z"}
{"class":"DeleteSiteService","level":"debug","message":"Trashed","thread":"main","timestamp":"2024-02-22T05:24:11.281Z"}
{"class":"DeleteSiteService","level":"info","message":"Deleting %%site.runData%%","thread":"main","timestamp":"2024-02-22T05:24:11.281Z"}
{"class":"HostsFileService","level":"debug","message":"maybeUpdate","sites":{},"thread":"main","timestamp":"2024-02-22T05:24:12.040Z"}
{"class":"HostsFileService","level":"debug","message":"Updating hosts","thread":"main","timestamp":"2024-02-22T05:24:12.041Z"}
{"class":"HostsFileService","level":"info","message":"Updating hosts with","thread":"main","timestamp":"2024-02-22T05:24:12.042Z"}
{"class":"HostsFileService","level":"debug","message":"Updating hosts with command","thread":"main","timestamp":"2024-02-22T05:24:12.042Z","updateCommand":"/Applications/Local.app/Contents/MacOS/Local","updateCommandArgs":["%%appPath%%/main/dns/workers/updateHostsFileWorker.js"]}
{"class":"HostsFileService","error":{},"exitCode":{},"level":"error","message":"Could not update hosts.","stderr":{},"stdout":{},"thread":"main","timestamp":"2024-02-22T05:24:12.087Z"}

```

* * *

_ **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.

---

<div class="post-metadata">

**Author:** ![\_sh](https://avatars.discourse-cdn.com/v4/letter/_/6bbea6/32.png) [@\_sh](https://community.localwp.com/u/_sh)\
**Post date:** [February 22, 2024, 6:01am UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/2 "2024-02-22T06:01:42Z")

</div>

Solved it. Looks like I needed Rosetta installed. Thanks.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 22, 2024, 3:52pm UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/3 "2024-02-22T15:52:35Z")

</div>

Good catch @_sh! For those checking, Rosetta 2 is required for Local’s Apple Silicon build due to the Nginx and MySQL Lighting Services compiled on the Intel architecture. We do plan to have a Local release out in the future that will drop this dependency but for now it is necessary.

You can install Rosetta by opening up a terminal window and using this command:

`softwareupdate --install-rosetta`

Others have found this doc to be helpful:

> **[How to Install Rosetta 2 on Apple Silicon Macs](https://osxdaily.com/2020/12/04/how-install-rosetta-2-apple-silicon-mac/)**
>
> Rosetta 2 is necessary if you want to be able to run older non-native Intel x86 apps on new Apple Silicon Macs, like the M1 MacBook Pro, MacBook Air, or Mac mini. Curiously, Rosetta 2 is not instal…

---

<div class="post-metadata">

**Author:** ![\_sh](https://avatars.discourse-cdn.com/v4/letter/_/6bbea6/32.png) [@\_sh](https://community.localwp.com/u/_sh)\
**Post date:** [February 22, 2024, 5:06pm UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/4 "2024-02-22T17:06:14Z")

</div>

Thanks again. That particular OSX Daily article is spammy with advertisements. Would be great to see a more official/less spammy set of instructions for installing Rosetta 2.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 22, 2024, 6:07pm UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/5 "2024-02-22T18:07:13Z")

</div>

Sorry about that. Really just using the command should work and has for most. Hopefully we won’t have a need for either soon 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [February 24, 2024, 6:07am UTC](https://community.localwp.com/t/solved-error-provisioning-site-on-fresh-install-new-laptop/41489/6 "2024-02-24T06:07:21Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
