Missing hosts entry in 9.1.1-Windows

Local ran into a problem when trying to update the hosts file.

Please ensure that the hosts file is not locked by anti-virus.


I’ve turned off al windows defender features, and its the only anti-virus app i have.
I’ve removed Read-Only option from hosts file.
I’ve reinstalled Local.
Restarted my computer.
Also tried to change the line (172.0.0.1 example.local) with (example.com) as i saw in a topic, but the thing is there was no (example.com) line in my hosts file.


  • Local Version: 9.1.1

  • Operating System (OS) and OS version: Windows 10


Hi @Shrief07

We have a Windows Troubleshooting guide below that goes over some common items worth checking. For example, make sure you’re running Local as an admin user.

Are you running other developer applications simultaneously? That might also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.

Yes already did run Local as admin
And still the same.

Already checked most of the topics here and did all mentioned solutions but as i mentioned above nothing worked

You should be getting a second pop up after this one

Like the screenshot here:

If you’re not seeing the popup check to make sure it’s not showing up on another screen or is hidden behind another item. You might also have to go in and check your notification settings are on so the pop up comes through.

I don’t see any popups and all notifications are on,
I tried again to delete all local files and uninstall it, turned off windows defender, and then installed Local again, when i created a website it gave an error that WordPress couldn’t be installed for my website, and the same error popped up again.
Please any other advise i tried all solutions on internet and nothing useful.

It still seems like something is blocking access on your device. You should be seeing that second Pop up to allow Local to proceed.

Can you share your full Local Log here with us? There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the Download Local Logs button from the Support tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.

Retrieving Local’s Log File

there you go, please see attached local log, just downloaded it the way you shared.

local-logs.zip (18.1 KB)

I noticed in your log this error:

{"class":"workerFork","code":"ENOENT","errno":-4058,"level":"error","message":"ENOENT: no such file or directory, open 'C:\\Users\\AHMED~1\\AppData\\Local\\Temp\\tmp-10816-dJx5PPvyA8gp-.json'","path":"C:\\Users\\AHMED~1\\AppData\\Local\\Temp\\tmp-10816-dJx5PPvyA8gp-.json","stack":"Error: ENOENT: no such file or directory, open 'C:\\Users\\AHMED~1\\AppData\\Local\\Temp\\tmp-10816-dJx5PPvyA8gp-.json'\n    at Object.openSync (node:fs:603:3)\n    at Object.func [as openSync] (node:electron/js2c/node_init:2:2214)\n    at Object.fileSync (%%appPath%%\\node_modules\\tmp\\lib\\tmp.js:171:15)\n    at workerFork (%%appPath%%\\main\\_helpers\\workerFork.js:1:1023)\n    at X509CertService.<anonymous> (%%appPath%%\\main\\router\\X509CertService.js:1:3709)\n    at Generator.next (<anonymous>)\n    at %%appPath%%\\main\\router\\X509CertService.js:1:330\n    at new Promise (<anonymous>)\n    at __awaiter (%%appPath%%\\main\\router\\X509CertService.js:1:75)\n    at X509CertService.generateCert (%%appPath%%\\main\\router\\X509CertService.js:1:3635)","syscall":"open","thread":"main","timestamp":"2024-12-03T18:34:00.290Z"}

You might be running into a known but with special characters for Windows users because of the ~ in your username. Can you try creating a new user without this?

Known Windows Issues

Thank you, it worked now :raised_hand:t2:

1 Like

Great! Thank you for following up @Shrief07. Happy Developing :green_heart: