I cannot create a website (M3 apple silicon)

Hi guys todays my first day creating a website and I ran into an error.
I clicked on the add site option, with preferred environment, and entered login credentials but got the following error:

Uh-oh! Unable to provision site.
Error: Error: spawn Unknown system error -86

at ChildProcess.spawn (node:internal/child_process:414:11)

at spawn (node:child_process:776:9)

at execFile (node:child_process:351:17)

at t. (node:electron/js2c/node_init:2:2610)

at /Volumes/Install Local/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:583

at new Promise ()

at Object. (/Volumes/Install Local/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:534)

at Generator.next ()

at /Volumes/Install Local/Local.app/Contents/Resources/app.asar/main/_helpers/execFilePromise.js:1:330

at new Promise ()

and then the following pop-up saying “Uh-oh! Could not update the host files. Local ran into a problem while trying to update the host file. Please ensure that the host file is not locked by anti-virus”

So there’s two things I’m new to, the MacOS (v14.3) and then Local (latest version), Wordpress etc.

Screenshot 2024-05-07 at 15.46.45|690x370
local-logs.zip (4.1 KB)

Hi, @Sid_c. Please could you try:

  1. Quitting Local.

  2. Opening a terminal and entering this command:

    softwareupdate --install-rosetta --agree-to-license
    
  3. Opening Local again.

2 Likes

How did this work? What was missing? I was running into the same issue. Could you please explain this?

@abdnafees Local currently requires Rosetta on Apple Silicon to provide support for parts of Local that use Intel binaries (such as nginx and a password prompt utility). We have plans to make Local fully Silicon native but I don’t have a timeline for this just yet. I’m glad the fix worked for you, though!

1 Like

Got it, sounds good.

-We have been waiting for the desired update to the Apple Silicon app for two years. Wouldn’t it be better to remove that fictitious Apple Silicon version and leave the Intel version alone? After all, if we need Rossetta, why two versions?

@kiwinho We’re working to convert all of Local to be Apple Silicon native. PHP, Mailpit, and Electron’s components are already Apple Silicon native, so removing those to build only the pure Intel version would be a step backwards, as well as breaking the upgrade path for existing Apple Silicon users.

The remaining non-native binaries (nginx, MySQL, Apache, the etc/hosts password prompt) are in our queue to tackle next — I’m working on nginx now and test builds are working. This involved setting up compilation pipelines for nginx under Linux, Apple Silicon, and Intel running under Apple Silicon (CI providers are dropping support for Intel machines, so we have to cross-compile nginx for Intel under Apple Silicon).

So support is coming, but in many cases it’s not as simple as just downloading Apple Silicon binaries for everything and shipping those — sometimes only source is provided (nginx) and other times Local needs to make changes to support configuration or extensions (PHP), which means custom pipelines to create native binaries for the 4 architectures Local supports. Thanks for your patience and I’m sorry for the wait.

2 Likes

Does local work on the public beta of Sequoia? (MacOS 15)

I tested on the dev beta and couldn’t get it to connect nor was I able to import via a .zip file.

Hey @DudeThatsErin - Local should work normally on the MacOS 15 Beta but we have seen some users unable to utilize Local Connect. We plan to do more testing in conjunction with the actual public release of MacOS 15 later this year. Being unable to import a zip file might be a separate issue. You could try unzipping your site and manually importing it’s contents into a blank site with the steps here: Manually Import a Local Site

If you’re still having trouble please create a new post and fill out the details of our form.