Missing hosts entry error

Hi, I just downloaded Local from your website. Installation worked fine, but now when I want to launch my new website It says “Missing hosts entry. This site may be inaccessible”. And like everyone else the “Fix It” button doesn’t work. I tried every tips i could find on the forum but the error is still here.

Some help would be appreciate…

Fawleur

1 Like

Same for me on macOS Sierra, my log file looks like…

May 1, 2017, 10:41 AM GMT+2 - info: [main/WordPressInstaller] Writing salts to wp-config.php
May 1, 2017, 10:41 AM GMT+2 - info: [main/WordPressInstaller] Writing HTTPS Fix to wp-config.php
May 1, 2017, 10:41 AM GMT+2 - info: [main/verify-wp-cli] Verifying WP-CLI for 5fa40f5af641371e73016c6b372c4a44350f07ed10e9aa21a4cb9d5868f94f21.
May 1, 2017, 10:44 AM GMT+2 - info: [main/hosts-helper] hostsHelper: maybeUpdate
May 1, 2017, 10:44 AM GMT+2 - info: [main/hosts-helper] hostsHelper: Updating hosts
May 1, 2017, 10:44 AM GMT+2 - info: [main/hosts-helper] hostsHelper: Updating hosts with ELECTRON_RUN_AS_NODE=1 "/Applications/Local by Flywheel.app/Contents/MacOS/Local by Flywheel" "/Applications/Local by Flywheel.app/Contents/Resources/app.asar.unpacked/main/provisioning/update-hosts.js" 192.168.75.100 test.dev

But it’s still not working.
Thanks!

Same here on Windows.

Here’s the log:

May 26, 2017, 2:48 AM CDT - info: [main/hosts-helper] hostsHelper: Updating hosts with "C:\Users\abbie\AppData\Local\Programs\local-by-flywheel\resources\extraResources\node\node-windows.exe" "C:\Users\abbie\AppData\Local\Programs\local-by-flywheel\resources\app.asar.unpacked\main\provisioning\update-hosts.js" 192.168.95.100 
May 26, 2017, 2:48 AM CDT - info: [main/hosts-helper] hostsHelper: Updated hosts. Updating hosts file at  C:\windows\System32\drivers\etc\hosts

May 26, 2017, 2:48 AM CDT - info: [main/docker-create-site-container] Creating container with 
{ Image: 'flywheel:1.0',
  Cmd: 'supervisord',
  Tty: true,
  ExposedPorts: { '80/tcp': {}, '443/tcp': {}, '3306/tcp': {}, '1080/tcp': {} },
  HostConfig: 
   { Binds: 
      [ '/c/Users/abbie/Local Sites/in-balance-business-coaching/app:/app',
        '/c/Users/abbie/Local Sites/in-balance-business-coaching/logs/supervisor:/var/log/supervisor',
        '/c/Users/abbie/Local Sites/in-balance-business-coaching/logs/mysql:/var/log/mysql',
        '/c/Users/abbie/Local Sites/in-balance-business-coaching/logs/nginx:/var/log/nginx',
        '/c/Users/abbie/Local Sites/in-balance-business-coaching/logs/php/5.6.20:/var/log/php/5.6.20' ],
     PortBindings: 
      { '80/tcp': [ { HostPort: '4000' } ],
        '443/tcp': [ { HostPort: '4001' } ],
        '3306/tcp': [ { HostPort: '4002' } ],
        '1080/tcp': [ { HostPort: '4003' } ] } } }
May 26, 2017, 2:48 AM CDT - info: [main/docker-create-site-container] Created container:  f47ff54744b72a6d816b5f4620c6395a834a190117bab479d12b2691ff8eb735
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Init WordPressInstaller 
{ site: 
   { name: 'In Balance Business Coaching',
     domain: 'in-balance-business-coaching.dev',
     path: 'C:\\Users\\abbie\\Local Sites\\in-balance-business-coaching',
     environment: 'flywheel',
     phpVersion: '7.0.3',
     mysqlVersion: '5.5',
     webServer: 'nginx',
     devMode: false,
     adminUsername: 'sadmin',
     adminPassword: 'xxx',
     adminEmail: 'abbie.friesen@gmail.com',
     multiSite: 'no',
     id: 'H1g1ALBZb',
     localVersion: '2.0.0',
     container: 'f47ff54744b72a6d816b5f4620c6395a834a190117bab479d12b2691ff8eb735',
     mysql: { database: 'local', user: 'root', password: 'root' },
     ports: { HTTP: 4000, HTTPS: 4001, MYSQL: 4002, MAILCATCHER: 4003 },
     environmentVersion: '1.0' },
  wpCredentials: 
   { adminUsername: 'sadmin',
     adminPassword: 'xxx',
     adminEmail: 'abbie.friesen@gmail.com' },
  atomicInstall: true,
  includedWPPath: 'C:\\Users\\abbie\\AppData\\Local\\Programs\\local-by-flywheel\\resources\\extraResources\\virtual-machine\\vendor\\wordpress\\',
  cachedWPVersion: null }
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Starting standardInstall()
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] maybeGetLatestVersion()
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] checkForLatestVersion()
May 26, 2017, 2:48 AM CDT - info: [main/docker-router] updateProxyManager()
May 26, 2017, 2:48 AM CDT - info: [main/docker-network-manager] maybeCreateNetwork
May 26, 2017, 2:48 AM CDT - info: [main/hosts-helper] hostsHelper: Updating hosts with "C:\Users\abbie\AppData\Local\Programs\local-by-flywheel\resources\extraResources\node\node-windows.exe" "C:\Users\abbie\AppData\Local\Programs\local-by-flywheel\resources\app.asar.unpacked\main\provisioning\update-hosts.js" 192.168.95.100 in-balance-business-coaching.dev
May 26, 2017, 2:48 AM CDT - info: [main/docker-router] getRouterContainer()
May 26, 2017, 2:48 AM CDT - info: [main/docker-router] reconnectNetwork()
May 26, 2017, 2:48 AM CDT - info: [main/docker-network-manager] doesNetworkExist
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Latest version info 
{ version: '4.7.5',
  download: 'https://downloads.wordpress.org/release/wordpress-4.7.5.zip' }
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Cached version info
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] copy() C:\Users\abbie\AppData\Local\Programs\local-by-flywheel\resources\extraResources\virtual-machine\vendor\wordpress\ C:\Users\abbie\Local Sites\in-balance-business-coaching\app
May 26, 2017, 2:48 AM CDT - info: [main/docker-router] runContainer()
May 26, 2017, 2:48 AM CDT - info: [main/docker-network-manager] Network exists.
May 26, 2017, 2:48 AM CDT - info: [main/docker-network-manager] Connected f47ff54744b72a6d816b5f4620c6395a834a190117bab479d12b2691ff8eb735.
May 26, 2017, 2:48 AM CDT - info: [main/hosts-helper] hostsHelper: Updated hosts. Updating hosts file at  C:\windows\System32\drivers\etc\hosts

May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Running install-wp.sh
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] install-wp.sh output 
{ stdout: 'mysqld is alive\nwp-blog-header.php exists. configuring and installing.\nSuccess: Generated \'wp-config.php\' file.\nSuccess: WordPress installed successfully.\nDeleted \'akismet\' plugin.\nSuccess: Deleted 1 of 1 plugins.\nDeleted \'hello\' plugin.\nSuccess: Deleted 1 of 1 plugins.',
  stderr: 'sh: 1: -t: not found' }
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Writing salts to wp-config.php
May 26, 2017, 2:48 AM CDT - info: [main/WordPressInstaller] Writing HTTPS Fix to wp-config.php

Check your firewall or just switch it off for a minute. Once its added it wont give the error again.

Hi, I know this article hasn’t been active in a while but I’m encountering the exact same problem on mac OS 10.13.6

“Warning ! Missing hosts entry. This site may be inaccessible”. Indeed it is ! “Site inaccessible ! Impossible to find server’s IP address” (host IP address ? I’m translating from French, please bare with me). Oh and the “Fix it” button doesn’t work either.

I’m new at this so I’m having a hard time finding answers online that I can actually understand !

Thanks in advance for your time !

Just updated to newest version on OSX Sierra and same problem with hosts file and fix it does nothing