Eperm over and over again - hosts

Issue Summary

like many others, I am having the EPERM issue, can’t right to hosts. This is windows 10. I first get the message that "local is requesting administrative priviledges to modify /etc/hosts. Then the EPERM message… Please ensure that hosts is not set to read-only and that no anti-virus is running. I’ve covered both of those issues. Virtually no one that has ever created this topic ended up with the post being resolved. So, outside of the two problems already suggested, what else is likely to be the cause?

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?

  • Which version of Local is being used?
    6.3.0 +5756

  • What Operating System (OS) and OS version is being used?
    windows 10

  • Attach the Local Log.

{“localVersion”:“6.3.0+5756”,“osPlatform”:“win32”,“osRelease”:“10.0.19043”,“windowsEdition”:“Microsoft Windows 10 Pro”,“linuxEdition”:null,“level”:“warn”,“message”:“Electron Event ready”,“timestamp”:“2022-03-06T12:44:09.732Z”}
{“thread”:“main”,“class”:“Process”,“process”:“httpd”,“level”:“warn”,“message”:“AH00558: httpd.exe: Could not reliably determine the server’s fully qualified domain name, using ::1. Set the ‘ServerName’ directive globally to suppress this message”,“timestamp”:“2022-03-06T12:54:05.851Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T12:54:04.976925Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\lightning-services\mysql-8.0.16+6\bin\win64\bin\mysqld.exe (mysqld 8.0.16) starting as process 17536”,“timestamp”:“2022-03-06T12:54:07.228Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T12:54:04.978486Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2022-03-06T12:54:07.228Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T12:54:07.168973Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2022-03-06T12:54:07.229Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T12:54:07.230386Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\lightning-services\mysql-8.0.16+6\bin\win64\bin\mysqld.exe: ready for connections. Version: ‘8.0.16’ socket: ‘’ port: 10004 MySQL Community Server - GPL.”,“timestamp”:“2022-03-06T12:54:07.230Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T12:54:08.034Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“stack”:“Error: Command failed: “%%userDataPath%%\lightning-services\php-7.3.5+10\bin\win64\php.exe” “%%resourcesPath%%\bin\wp-cli\wp-cli.phar” --path=“C:\Users\gary0\Local Sites\thefloridastateassemblynet\app\public” --require=”%%resourcesPath%%\bin\wp-cli\local-wpcli-error-reporting.php" --skip-plugins --skip-themes “core” “install” --url=http://thefloridastateassemblynet.local --title=“thefloridastateassembly.net” --admin_user=gary pfeffer --admin_password=[REDACTED] --admin_email=dev-email@flywheel.local\nError: Too many positional arguments: pfeffer\n\n at ChildProcess.exithandler (child_process.js:317:12)\n at ChildProcess.emit (events.js:315:20)\n at ChildProcess.EventEmitter.emit (domain.js:467:12)\n at maybeClose (internal/child_process.js:1048:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)",“level”:“error”,“message”:“Error installing WordPress”,“timestamp”:“2022-03-06T12:54:36.748Z”}
{“thread”:“main”,“class”:“WordPressInstaller”,“stack”:“Error: Command failed: “%%userDataPath%%\lightning-services\php-7.3.5+10\bin\win64\php.exe” “%%resourcesPath%%\bin\wp-cli\wp-cli.phar” --path=“C:\Users\gary0\Local Sites\thefloridastateassemblynet\app\public” --require=”%%resourcesPath%%\bin\wp-cli\local-wpcli-error-reporting.php" --skip-plugins --skip-themes “core” “install” --url=http://thefloridastateassemblynet.local --title=“thefloridastateassembly.net” --admin_user=gary pfeffer --admin_password=[REDACTED] --admin_email=dev-email@flywheel.local\nError: Too many positional arguments: pfeffer\n\n at ChildProcess.exithandler (child_process.js:317:12)\n at ChildProcess.emit (events.js:315:20)\n at ChildProcess.EventEmitter.emit (domain.js:467:12)\n at maybeClose (internal/child_process.js:1048:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)",“level”:“error”,“message”:“Error installing WordPress”,“timestamp”:“2022-03-06T12:54:36.748Z”}
{“thread”:“main”,“reason”:{“killed”:false,“code”:1,“signal”:null,“cmd”:""%%userDataPath%%\lightning-services\php-7.3.5+10\bin\win64\php.exe" “%%resourcesPath%%\bin\wp-cli\wp-cli.phar” --path=“C:\Users\gary0\Local Sites\thefloridastateassemblynet\app\public” --require="%%resourcesPath%%\bin\wp-cli\local-wpcli-error-reporting.php" --skip-plugins --skip-themes “core” “install” --url=http://thefloridastateassemblynet.local --title=“thefloridastateassembly.net” --admin_user=gary pfeffer --admin_password=[REDACTED] --admin_email=dev-email@flywheel.local"},“p”:{},“eventId”:“e4cc63b3ae2d40c1bef44fd808bd6618”,“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2022-03-06T12:59:10.319Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T12:59:37.665Z”}
{“thread”:“main”,“reason”:{},“p”:{},“eventId”:“fa7ecfbfbb2749319cf067012942bdee”,“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2022-03-06T12:59:40.993Z”}
{“thread”:“main”,“reason”:{},“p”:{},“eventId”:“df0764f2dbd44bed8f5c2f07430b9780”,“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2022-03-06T12:59:40.997Z”}
{“thread”:“main”,“reason”:{},“p”:{},“eventId”:“ba240dd8e7e34965950f7aca430d5d0d”,“level”:“warn”,“message”:“Unhandled Rejection.”,“timestamp”:“2022-03-06T12:59:41.084Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T13:01:06.258105Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\lightning-services\mysql-8.0.16+6\bin\win64\bin\mysqld.exe (mysqld 8.0.16) starting as process 23148”,“timestamp”:“2022-03-06T13:01:08.471Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T13:01:06.259762Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“timestamp”:“2022-03-06T13:01:08.472Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T13:01:08.376404Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“timestamp”:“2022-03-06T13:01:08.472Z”}
{“thread”:“main”,“class”:“Process”,“process”:“mysql”,“level”:“warn”,“message”:“2022-03-06T13:01:08.472145Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\lightning-services\mysql-8.0.16+6\bin\win64\bin\mysqld.exe: ready for connections. Version: ‘8.0.16’ socket: ‘’ port: 10005 MySQL Community Server - GPL.”,“timestamp”:“2022-03-06T13:01:08.473Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:01:09.053Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:11:06.259Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:11:13.636Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:20:33.482Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:23:12.748Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:29:46.142Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:30:16.688Z”}
{“thread”:“main”,“class”:“HostsFileService”,“error”:{“code”:100},“stdout”:{},“stderr”:{},“exitCode”:100,“level”:“error”,“message”:“Could not update hosts.”,“timestamp”:“2022-03-06T13:30:42.986Z”}

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.

Ok. PLEASE MAKE AN FAQ FOR THIS.
Kapersky has a shit ton of security toggles. The one that matters is to turn off “system watcher”.

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