# Error when selecting site from sidebar

**URL:** <https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411>\
**Category:** Support\
**Created:** [May 7, 2018, 12:33am UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411 "2018-05-07T00:33:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 7, 2018, 12:33am UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/1 "2018-05-07T00:33:49Z")

</div>

Hey @clay!

I’m using the pre-release of Local 2.3.0.  
I’ve restarted Local’s machine and restarted Virtualbox.  
I’m on a Mac running 10.13.4

When I try to select some, not all, sites in Locals sidebar I get the following error.

 ![screenshot_01](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/29971adf562d65e8cf54c62c871fc442f2450dfe.png)

This is in my log.

```
May 6, 2018, 5:25 PM PDT - info: [main/index] Existing Pressmatic data does not exist.
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/afragen/Library/Application Support/Local by Flywheel/environments/custom/package.json
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Loading Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-0-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Loading Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-1-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Loading Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/custom-1-2-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Loading Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-0-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Loading Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/EnvironmentLoader] Successfully Loaded Environment: /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/environments/flywheel-1-1-0/out/environment.js
May 6, 2018, 5:25 PM PDT - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Stopped\n', stderr: '' }
May 6, 2018, 5:25 PM PDT - info: [renderer/CheckEnvPage] Check system promise response: 
[undefined, 'machine-halted']
May 6, 2018, 5:25 PM PDT - info: [main/docker-machine] Checking Boot2Docker.iso hash
May 6, 2018, 5:25 PM PDT - info: [main/docker-machine] Running /Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine start local-by-flywheel
May 6, 2018, 5:25 PM PDT - info: [main/docker-machine] Starting "local-by-flywheel"...
May 6, 2018, 5:25 PM PDT - info: [main/docker-machine] (local-by-flywheel) Check network to re-create if needed...
May 6, 2018, 5:25 PM PDT - info: [main/docker-machine] (local-by-flywheel) Waiting for an IP...
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] Machine "local-by-flywheel" was started.
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] Waiting for SSH to be available...
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] Detecting the provisioner...
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
May 6, 2018, 5:26 PM PDT - info: [main/set-docker-env] Getting Docker Machine env.
May 6, 2018, 5:26 PM PDT - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.80.100:2376"
export DOCKER_CERT_PATH="/Users/afragen/.docker/machine/machines/local-by-flywheel"
export DOCKER_MACHINE_NAME="local-by-flywheel"
# Run this command to configure your shell: 
# eval $("/Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" env --shell bash local-by-flywheel)

May 6, 2018, 5:26 PM PDT - info: [main/docker-machine-fdv] NFS Mount Status 
{ mountedPoints: ['/Users', '/Volumes'],
  mountPoints: ['/Users', '/Volumes'] }
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine-fdv] unfsd already running
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] checking IP
May 6, 2018, 5:26 PM PDT - info: [main/set-docker-env] Getting Docker Machine env.
May 6, 2018, 5:26 PM PDT - info: [main/docker-machine] checked IP 192.168.80.100

May 6, 2018, 5:26 PM PDT - info: [main/set-docker-env] Received Docker Machine env. export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.80.100:2376"
export DOCKER_CERT_PATH="/Users/afragen/.docker/machine/machines/local-by-flywheel"
export DOCKER_MACHINE_NAME="local-by-flywheel"
# Run this command to configure your shell: 
# eval $("/Users/afragen/Applications/Local by Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine" env --shell bash local-by-flywheel)

May 6, 2018, 5:26 PM PDT - error: [renderer/app] 
May 6, 2018, 5:26 PM PDT - error: [renderer/ErrorBoundaryDialog] Caught error in <ErrorBoundaryDialog /> 
{ error: {},
  info: { componentStack: '\n in SiteInfoEnvironment\n in ul\n in TableList\n in SiteInfoSetup\n in ErrorBoundaryDialog\n in div\n in SiteInfo\n in ErrorBoundaryDialog\n in div\n in Window\n in MainPage\n in div\n in App\n in RouterContext\n in Router' } }
May 6, 2018, 5:28 PM PDT - warn: [main/EnvironmentUpdater] Error retrieving "custom" from "stable" channel. Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1130:19)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
at TLSSocket.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1045:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
May 6, 2018, 5:28 PM PDT - info: [main/waitForMySQL] Querying MySQL
May 6, 2018, 5:28 PM PDT - info: [renderer/CheckEnvPage] Check system promise response: 
[undefined]
May 6, 2018, 5:29 PM PDT - info: [main/check-system] Check System: Docker Machine:  
{ stdout: 'Running\n', stderr: '' }

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 7, 2018, 7:33pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/2 "2018-05-07T19:33:51Z")

</div>

Hey Andy,

Thanks for the heads up!

This should be fixed in one of the upcoming builds.

Was the selected site created in Local more than a year ago?

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 7, 2018, 11:48pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/3 "2018-05-07T23:48:57Z")

</div>

Glad it’s going to be fixed.

I honestly don’t know the age of the sites affected. I suspect that I have some greater than a year old and some less.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 16, 2018, 6:05pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/4 "2018-05-16T18:05:55Z")

</div>

@clay, so I’ve updated to v2.3.1 and now I get the following error.

 ![screenshot_02](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/5/5156b2c488f1d14758f29746177d10594fa13717.png)

There doesn’t seem to be any way to fix it.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 16, 2018, 6:07pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/5 "2018-05-16T18:07:45Z")

</div>

Can you browse to `~/Library/Application Support/Local by Flywheel` and open `site.json`?

Once you find `mainwp`, let me know what the `enviroment` and `environmentVersion` values are.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 16, 2018, 6:17pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/6 "2018-05-16T18:17:41Z")

</div>

```
"S1fZ1WTlb": {
    "id": "S1fZ1WTlb",
    "path": "~/Local Sites/mainwp",
    "webServer": "nginx",
    "mysql": {
      "database": "local",
      "user": "root",
      "password": "root"
    },
    "container": "966a1a46870ece04bda8a74c3e4c8e571d951641afcb7b0f04312bf294bf3d6e",
    "name": "mainwp",
    "mysqlVersion": "5.6",
    "domain": "mainwp.test",
    "multiSite": "no",
    "phpVersion": "7.2.0",
    "ports": {
      "HTTPS": 4510,
      "HTTP": 4010,
      "MAILCATCHER": 5510,
      "MYSQL": 5010
    },
    "localVersion": "1.4.2",
    "sslSHA1": "28E9B9B8165B71158898E4601B4327FD7B58554B",
    "environment": "custom"
  },

```

That’s the whole entry and there are several other entries that don’t seem to have `environmentVersion`, etc.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 16, 2018, 7:11pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/7 "2018-05-16T19:11:00Z")

</div>

Got it. Try adding `"environmentVersion": "1.2.0"` to that site and then restart Local.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 16, 2018, 9:10pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/8 "2018-05-16T21:10:06Z")

</div>

That worked. Thanks @clay.

I also see this in the log on Local’s startup.

```
May 16, 2018, 1:58 PM PDT - info: [main/EnvironmentLoader] Environment does not have package.json: /Users/afragen/Library/Application Support/Local by Flywheel/environments/custom/package.json

```

Is this a problem?

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 16, 2018, 9:15pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/9 "2018-05-16T21:15:59Z")

</div>

> [@afragen](#):
>
> That worked.

Glad to hear!

> [@afragen](#):
>
> Is this a problem?

Nope, good catch though!

---

<div class="post-metadata">

**Author:** ![fasthost](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@fasthost](https://community.localwp.com/u/fasthost)\
**Post date:** [May 10, 2019, 10:31am UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/10 "2019-05-10T10:31:41Z")

</div>

> [@clay](#):
>
> ~/Library/Application

What is the path on Windows 10 ?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:34pm UTC](https://community.localwp.com/t/error-when-selecting-site-from-sidebar/6411/11 "2020-08-25T18:34:29Z")

</div>


