unable to create site

What issue or error are you experiencing?

Hello, I installed local on my silicone mac and every time I want to create a site I have an error message that appears and then my site is deleted from the software.


attached is the photo of the error message thank you

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


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


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.

Hi @elimelekh

What if you create a site using NGINX do you have the same problem?

Could you provide some more details to help us take a further look?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

Hello First of all I thank you for your quick response.
when I use the preferred function the Web Server is automatically in nginx and when I want to use custom I can choose the PHP, the database, but the web server remains in loading and I can not make any choice or even create a site in custom.
my os is : sequoia 15.0.1
local version 9.1.0


thanks a lot

Is there anything unique about your connection? Do you have a VPN, hotspot, office network, etc?

no I don’t

Sorry I’m a little confused by your earlier statement. When you use the Preferred selection you’re able to create and start a site? Is it only the Custom option that gives you trouble?

No, the same error message appears when I want to create a site with the preferred selection

It seems like there is either a permissions issue with your device or a connection problem.

Do you have any antivirus, security, or firewall applications that could be blocking Local?

Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.

Is this a personal device or provided by your employer?

Do you use a VPN, hotspot, etc?

I connected via modem on my smartphone and it doesn’t work, I don’t have an antivirus, I had parental controls that I uninstalled and it doesn’t work, I also don’t have a VPN and it’s my personal computer.
I’m really, Sorry.

In order to refresh here and start with a clean slate could you give the below troubleshooting steps a try?

  • Fully uninstall Local from your computer with the MacOS specific steps here: Uninstall Local - Local

  • Install the latest version of Local on this link: Releases - Local

  • Once installed, please restart the computer.

  • When the computer is restarted and turned on, close any applications that automatically run in the background.

  • Check and see if the issue still persists. If so, please provide us with a copy of your Local Log. Details on how to get that are here and then once you have the zip you can just drop it into a comment. Retrieve Local’s Log File - Local

the issue still persists
local-lightning.log (142.1 KB)
local-lightning-verbose.log (368.0 KB)

thank you very mutch

Hi @elimelekh -

I am seeing a number of errors in your log like this:

{“class”:“LightningServicesService”,“code”:“ENOENT”,“errno”:-2,“level”:“error”,“message”:“ENOENT: no such file or directory, scandir ‘%%userDataPath%%/lightning-services/apache-2.4.43+8/bin’”,“path”:“%%userDataPath%%/lightning-services/apache-2.4.43+8/bin”,“stack”:"Error: ENOENT: no such file or directory, scandir ‘%%userDataPath%%/lightning-services/apache-2.4.43+8/bin’\n

Can you use Finder to confirm that ~/Library/Application Support/Local/lightning-services/apache-2.4.43+8 does not exist on your computer?

Local reaches out to our API to get a list of available services. This is failing with these logs:

{“class”:“LightningServicesService”,“code”:“UNABLE_TO_VERIFY_LEAF_SIGNATURE”,“errno”:“UNABLE_TO_VERIFY_LEAF_SIGNATURE”,“level”:“error”,“message”:“request to https://getflywheel.github.io/local-lightning-services/site-services-v2.json failed, reason: unable to verify the first certificate”,“stack”:"FetchError: request to https://getflywheel.github.io/local-lightning-services/site-services-v2.json failed, reason: unable to verify the first certificate\n

Something in the network connection (maybe just the phone hotspot) is preventing that request to our server to be successful. Are you able to try another, preferably WiFi or not through the phone, connection? If not, there are a few networking options you could explore, but they’re fairly technical/involved.

/Library/Application Support/Local/lightning-services/apache-2.4.43+8 does not exist on your computer
and also I have a connection with fiber at home and I had tried with the Modem of my phone to check if it came from the connection , so neither the box of the house nor the phone make the software work

hello
do you have a solution ?

Hi @elimelekh - the issue is somewhere in your network; Local is unable to communicate with the servers that host our lists of available services (PHP, Apache, nginx, etc.).

Here is a link to a couple of Stack Overflow issues that explain adding the necessary certificates - javascript - Unable to verify leaf signature - Stack Overflow
Correct way to solve UNABLE_TO_VERIFY_LEAF_SIGNATURE · node-fetch/node-fetch · Discussion #1702 · GitHub

Unfortunately, I’m not well-versed on these changes myself as they rely on individual networking setups.

Hello, I’m getting back to you because I just ran the local software on a Windows PC with the same Internet connection as my Apple iMac and the software works perfectly on Windows. Do you have any idea why the iMac doesn’t run it? Thank you very much.

Hi @elimelekh

I found another user who ran into some similar errors in MacOS and they contacted Apple Support who suggested they try creating a new admin user for their device, and then testing again and it worked. So maybe you could try the same thing next by creating an entire new user on your device and seeing if the behavior is different?

Hi Nick
I just applied your advice and indeed it works very well and I was able to create sites very quickly but the only problem is that it is not my work account what is possible to do so that the software works on my main account I hope that is not too much to ask and really thank you very much for your assistance

Hi @elimelekh

You might have to check with your employer, maybe they have IT personnel who can take a look. What might be happening is they have some sort of security filter in place or permission set that is preventing the connections Local is trying to make.

You can share these documents with them so that they are able to see what URLs and Ports Local makes use of if they need to make any allowances: