Local Community

Cannot create any new sites

Since updating to v2.4.1 I can’t create any new sites at all.

I’m able to start/stop sites, but creating new sites doesn’t work and each time says there was an error installing WordPress and it couldn’t find the wp-includes/version.php file even though it does exist.

I’m running Local 2.4.1 and macOS Mojave.

Please help!

1 Like

Hi Daniel,

Sorry for the trouble with site creation!

Can you please provide your local-by-flywheel.log file? See How do I retrieve Local's log file? for instructions on how to do so.

This will give us more info into why WordPress is failing to isntall.

Local by Flywheel version: 2.4.1

When I try to add a new site with the preferred environment (PHP 7.2.9, MySQL 5.7) I get this error

Error : Wordpress installation failed!

When using a custom environment (PHP 7.2.0, MySQL 5.6.34) WordPress is installed without a problem.

@keesiemeijer,

Can you please provide your local-by-flywheel.log file? See How do I retrieve Local's log file? for instructions on how to do so.

Also, what operating system are you using?

I’m having the same issue. I’m on Local 2.4.1 on highSierra. Log file attached.

local-by-flywheel.log (97.7 KB)

@redbranchmedia,

Thanks for the log file!

Docker is indicating there isn’t any disk space left on the VM. Can you open Terminal and run the following command? ls -lah ~/.docker/machine/machines/local-by-flywheel

Copy and paste the output of the command in your reply here.

Not sure if I replied in the correct spot, so I’m pasting here too. Thanks!

total 29870528
drwx------ 13 grandcentral staff 416B Sep 26 13:36 .
drwx------ 3 grandcentral staff 96B Jan 30 2017 …
-rw------- 1 grandcentral staff 46M Sep 25 16:02 boot2docker.iso
-rw-r–r-- 1 grandcentral staff 1.0K May 25 13:42 ca.pem
-rw-r–r-- 1 grandcentral staff 1.1K May 25 13:42 cert.pem
-rw------- 1 grandcentral staff 3.0K Sep 26 13:36 config.json
-rw------- 1 grandcentral staff 14G Sep 26 13:58 disk.vmdk
-rw------- 1 grandcentral staff 1.6K Jan 30 2017 id_rsa
-rw------- 1 grandcentral staff 381B Jan 30 2017 id_rsa.pub
-rw------- 1 grandcentral staff 1.6K May 25 13:42 key.pem
drwx------ 6 grandcentral staff 192B Sep 26 13:36 local-by-flywheel
-rw------- 1 grandcentral staff 1.6K May 25 13:42 server-key.pem
-rw-r–r-- 1 grandcentral staff 1.1K May 25 13:42 server.pem

@clay I’m using OSX 10.11.6

Here is the log file

Sep 26, 2018, 9:03 PM GMT+2 - info: [main/index] Shutting Down VM
Sep 26, 2018, 9:03 PM GMT+2 - error: [main/index]  TypeError: Cannot read property 'removeListener' of null
    at Timeout.setTimeout [as _onTimeout] (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main-process.js:2:8358)
    at ontimeout (timers.js:475:11)
    at tryOnTimeout (timers.js:310:5)
    at Timer.listOnTimeout (timers.js:270:5)
Sep 26, 2018, 9:03 PM GMT+2 - warn: [main/index] Unhandled Rejection at: Promise  Promise {
  <rejected> TypeError: Cannot read property 'sender' of undefined
    at removeRemoteListenersAndLogWarning (/Applications/Local by Flywheel.app/Contents/Resources/electron.asar/browser/rpc-server.js:153:35)
    at callIntoRenderer (/Applications/Local by Flywheel.app/Contents/Resources/electron.asar/browser/rpc-server.js:220:13)
    at <anonymous> }  reason:  TypeError: Cannot read property 'sender' of undefined
    at removeRemoteListenersAndLogWarning (/Applications/Local by Flywheel.app/Contents/Resources/electron.asar/browser/rpc-server.js:153:35)
    at callIntoRenderer (/Applications/Local by Flywheel.app/Contents/Resources/electron.asar/browser/rpc-server.js:220:13)
    at <anonymous>
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/username/Library/Application Support/Local by Flywheel/environments/custom/package.json
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/username/Library/Application Support/Local by Flywheel/environments/custom-1-3-0/package.json
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-3-1/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-2-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-0/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Loading Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-3-1/out/environment.js
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
Sep 26, 2018, 9:05 PM GMT+2 - info: [renderer/CheckEnvPage] Check system promise response: 
[ undefined, 'machine-halted' ]
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/docker-machine] Checking Boot2Docker.iso hash
Sep 26, 2018, 9:05 PM 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
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/docker-machine] Starting "local-by-flywheel"...
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
Sep 26, 2018, 9:05 PM GMT+2 - info: [main/docker-machine] (local-by-flywheel) Waiting for an IP...
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] Machine "local-by-flywheel" was started.
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] Waiting for SSH to be available...
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] Detecting the provisioner...
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/set-docker-env] Getting Docker Machine env.
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.75.100:2376"
export DOCKER_CERT_PATH="/Users/username/.docker/machine/machines/local-by-flywheel"
export DOCKER_MACHINE_NAME="local-by-flywheel"
# Run this command to configure your shell: 
# eval $("/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" env --shell bash local-by-flywheel)

Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] checking IP
Sep 26, 2018, 9:06 PM GMT+2 - info: [main/docker-machine] checked IP 192.168.75.100

Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-create-site-container] Creating container directories
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-create-site-container] Creating container with 
{ Image: 'flywheel:1.3.1',
  Tty: true,
  Cmd: 'supervisord',
  ExposedPorts: { '80/tcp': {}, '443/tcp': {}, '3306/tcp': {}, '1080/tcp': {} },
  HostConfig: 
   { Binds: 
      [ '/Users/username/Local Sites/preferredenvironment/app:/app',
        '/Users/username/Local Sites/preferredenvironment/logs/supervisor:/var/log/supervisor',
        '/Users/username/Local Sites/preferredenvironment/logs/mysql:/var/log/mysql',
        '/Users/username/Local Sites/preferredenvironment/logs/nginx:/var/log/nginx',
        '/Users/username/Local Sites/preferredenvironment/logs/php:/var/log/php' ],
     PortBindings: 
      { '80/tcp': [ { HostPort: '4013' } ],
        '443/tcp': [ { HostPort: '4014' } ],
        '3306/tcp': [ { HostPort: '4015' } ],
        '1080/tcp': [ { HostPort: '4016' } ] } } }
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-create-site-container] Created container:  700a19a678543f0088f0b6f8441bce90548d7654fb3cce915f3cd377d48c2f17
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-router] getRouterContainers()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-router] teardown()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-router] Removing router container 6e0dc1c1b0b064f16b5d8331b1dc1979bf03ef7a4f2665980431c1389b44a17b
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] Init WordPressInstaller
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] Starting standardInstall()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] maybeGetLatestVersion()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] checkForLatestVersion()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-router] updateProxyManager()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/hosts-helper] hostsHelper: Updating hosts with 192.168.75.100 false test.test www.test.test develop-wp.test www.develop-wp.test wp-reference.test www.wp-reference.test preferredenvironment.local www.preferredenvironment.local
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] Latest version info 
{ version: '4.9.8',
  download: 'https://downloads.wordpress.org/release/wordpress-4.9.8.zip' }
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/WordPressInstaller] Cached version info 4.9.8
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-router] runContainer()
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-network-manager] removeExistingNetworks
Sep 26, 2018, 9:09 PM GMT+2 - info: [main/docker-network-manager] createNetwork
Sep 26, 2018, 9:10 PM GMT+2 - info: [main/docker-router] reconnectNetwork()
Sep 26, 2018, 9:10 PM GMT+2 - info: [main/hosts-helper] hostsHelper: Updated hosts. 
{ stdout: 'Updating hosts file at  /etc/hosts\nUpdated hosts file at  /etc/hosts\n',
  stderr: '' }
Sep 26, 2018, 9:10 PM GMT+2 - error: [main/WordPressInstaller]  Error
    at /Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:2754
    at Generator.next (<anonymous>)
    at _0x48423e (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1621)
    at Object.wrTIQ (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1168)
    at Object.xrPCq (/Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1420)
    at /Applications/Local by Flywheel.app/Contents/Resources/app.asar/main/actions-sites/wait-for-mysql.js:1:1880
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)
Sep 26, 2018, 9:10 PM GMT+2 - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: '', stderr: '' }
Sep 26, 2018, 9:13 PM GMT+2 - warn: [main/waitForMySQL] waitForMySQL Response: 
{ stdout: '', stderr: '' }

Update on this. I can no longer start Local, even after a full reboot. I get the attached error.

I’ve got the same issue. An error occurs when I try to create a new site and it says it can’t install WordPress. I tried deleting a few old sites to see if it was a space issue, and that didn’t solve it.

local-by-flywheel.log (659.5 KB)

Update! I installed a new site successfully with a custom environment (PHP 7.2 and MySQL 5.6.34). So it seems to be an issue with the preferred environment.

1 Like

Hi all,

Thanks everyone for providing logs, screenshots, and details. It all helps. :slight_smile:

We’ve found the cause of the issue and we’ll be releasing Local 2.4.2/Preferred 1.3.2 to take care of this issue.

I’m so sorry for the frustration caused by this!

2 Likes

Do you have an ETA for the 2.4.2 release?

@vinhost,

2.4.2 is available now. See Local by Flywheel 2.4.2

1 Like

Thanks @clay

I’ve got this error after updating (when adding a site)
53

But after re-starting the app it works as it should.

Thanks again for the update

Hi.
I update to 2.4.2 and I’m having the same issue. I can’t create a new sites because Flywheel says: ‘version.php doesn’t exist’. I’m using a Mac with High Sierra 10.13.6.

Could you help me?

I get the same error message too! I’m also using Mac with high sierra 10.13.6 and updated to 2.4.2

I was also able to get it work by using PHP 7.03 and MySQL 5.560. This is with version 4.4.2

Hope this helps someone.

I got the same problem and was able to find a work around:

  1. I installed with the Preferred environment
  2. I got the error saying the version.php doesn’t exist (even if it really does)
  3. Relaunched Local
  4. When in the Database setup and in Adminer
  5. I created a user for the database (noted the username & password)
  6. I launched the website. First I go a 502 screen. I reloaded the page and then Wordpress showed me a panel with the information it needed to finish the install.
  7. In there you will need the info about the user you just created in the database. Also needed is the database name (local) & the host (localhost)
  8. And voila. Wordpress is now working.
    Hope this helps you guys.

But @twohumans do you agree that this is a ridiculous work around to get LBF functioning again?

That not every update of a software is working flawlessly on every possible device and every possible environment, OK. But it seems LBF is getting to the point of being so unreliable, it’s not worth using anymore.

For what it’s worth: I constantly click on “No update now”. I’ll keep what is working (sort of). It indicates my deep distrust of LBF as it is now.