Local By flywheel can’t update my etc/ hosts file since last 3rd releases. I have to manually edit my host file to add or remove some domain name. I have a popup opening when i start a site which says “Uh-oh! Could not update hosts file”
“Local ran into a problem when trying to update the hosts file.” Please contact support if this persists". So here i am contacting you to solves this important problem
Note: I’ve already tried to give admin permission to the etc/hosts file and folder. But it didn’t change anything. I’m also using Mamp pro on my machine, Macbook MacOS Sierra 10.12.5
I think there is something to do with this file: update-hosts.js
This issue is related topic missing host entry but its not exactly the same problem i think
Here my latest localByFlywheel local logs file after updating to 2.0.6 and restart the software(see last part of logs) :
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/index] Existing Pressmatic data does not exist.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/check-system] Check System: Docker Machine:
{ stdout: 'Stopped\n', stderr: '' }
Jul 10, 2017, 10:27 AM GMT+2 - info: [renderer/CheckEnvPage] Check system promise response: [ undefined, 'machine-halted' ] machine-halted
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Checking Boot2Docker.iso hash
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Running /Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start local-by-flywheel
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Starting "local-by-flywheel"...
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] (local-by-flywheel) Waiting for an IP...
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Machine "local-by-flywheel" was started.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Waiting for SSH to be available...
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Detecting the provisioner...
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/set-docker-env] Getting Docker Machine env.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/set-docker-env] Received Docker Machine env.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] checking IP
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/set-docker-env] Getting Docker Machine env.
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/docker-machine] checked IP 192.168.75.100
Jul 10, 2017, 10:27 AM GMT+2 - info: [main/set-docker-env] Received Docker Machine env.
Jul 10, 2017, 10:28 AM GMT+2 - info: [main/index] All Local sites are stopped. Shutting down VM.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/index] Existing Pressmatic data does not exist.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/set-docker-env] Getting Docker Machine env.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/set-docker-env] Received Docker Machine env.
Jul 10, 2017, 10:29 AM GMT+2 - info: [renderer/CheckEnvPage] Check system promise response: [ undefined, true ] true
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/startSite] Refreshing NFS mounts
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] getRouterContainers()
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] maybeCreateNetwork
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/hosts-helper] hostsHelper: Updating hosts with 192.168.75.100 ** mysql settings ** end ithemes security - ne pas modifier ou supprimer cette ligne for bp multi network ithemes security config details: 2 rename the wordpress wp-content directory ssl aucoeurdulapin.dev define ( 'bp_root_blog', 2 ); define('bp_enable_multiblog', true); emeraude-emotions.dev inizi.dev mecanographik.socialwik.dev parthema-up.dev phoenix.dev pullrouge.dev socialwik.dev test.socialwik.dev test2local.dev testlocal.dev time2sail2.dev
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] reconnectNetwork()
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] doesNetworkExist
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Network exists.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] teardown()
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] Removing router container f647b6fde097a311d6031d6d8cc53765fcc90af6ecc3c5297968965ae478d02f
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected a570bb278e66e129e0fcb0fb0a4dcc31db7d9481bab5c2151264ea7d00658849.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected fb54d89f30a5f619e68ea42e11cf5a6d568131de035a5a77b063ef05b3380b43.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected d405249590c9d034c3568185ce3b9a6e8e159bc49140f71a3613ae60f44db517.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected b2394694a433985e53d9c7fb839faa2241102c7349ec9417bc3972df92f6862b.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected a90b0371fa1d8e149623cd62a10523573fb2ba81f7f97b02719fc77983d76e37.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected da8ffadb3cac5c015050880bdc742377e34064f4884aa45e038e1b0bf21fbd75.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected a6c907270c0dd14abcbbedb59d467a542fe7a9481eaeef2419f1558367814c0a.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected 0ae6e6c456bcec23d8e270e02e98c335259dd8748b36d44c7860275585656e74.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected 0117419ddbdcf3501df8f5e6ed94fa11d71b01a5905938638c37d2897ad9746f.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] updateProxyManager()
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-router] runContainer()
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/docker-network-manager] Connected 32314af4521abb17223b1aba0279d9687a623a641254241ccd15d218e6a4864e.
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/waitForFile] Waiting for /conf/php/7.0.3/etc/php-fpm.conf 32314af4521abb17223b1aba0279d9687a623a641254241ccd15d218e6a4864e
Jul 10, 2017, 10:29 AM GMT+2 - info: [main/waitForFile] /conf/php/7.0.3/etc/php-fpm.conf exists
Jul 10, 2017, 10:29 AM GMT+2 - info: [environment/custom] Starting php-fpm done
Jul 10, 2017, 10:29 AM GMT+2 - error: [main/hosts-helper] Could not update hosts.
{ stdout: undefined,
stderr: undefined,
error: { code: 2 },
exitCode: 2 }
Thanks for your help,
Regards