# Error, could not load sites ... Failed to fetch

**URL:** <https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357>\
**Category:** Support\
**Tags:** windows, could-not-load-sites\
**Created:** [December 12, 2020, 9:40pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357 "2020-12-12T21:40:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin.wedepohl](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/martin.wedepohl/32/12027_2.png) [@martin.wedepohl](https://community.localwp.com/u/martin.wedepohl)\
**Post date:** [December 12, 2020, 9:40pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/1 "2020-12-12T21:40:46Z")

</div>

### Issue Summary

Unstalled Local and installed version 5.9.4+5115 and am unable to see any sites in the Local Sites tab.

#### 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?

#### Replication

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/e/e77fe5dc9582bdeb1d0e2bde6b73a9a5bc9e5080.png)

#### System Details

- Which version of Local is being used?

- What Operating System (OS) and OS version is being used?

- Attach the Local Log. See this Community Forum post for instructions on how to do so:

```auto
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mysql-5.7.28+4\\lib\\main.js","timestamp":"2020-12-12T21:38:46.737Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mysql-5.7.28+4\\lib\\main.js","timestamp":"2020-12-12T21:38:46.873Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have package.json: %%userDataPath%%\\lightning-services\\php-5.6.39+6\\package.json","level":"info","timestamp":"2020-12-12T21:38:46.875Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%\\lightning-services\\mailhog-1.0.0+3\\lib\\main.js","timestamp":"2020-12-12T21:38:46.878Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%\\lightning-services\\mailhog-1.0.0+3\\lib\\main.js","timestamp":"2020-12-12T21:38:46.884Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","timestamp":"2020-12-12T21:38:46.887Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","timestamp":"2020-12-12T21:38:47.023Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%\\lightning-services\\mysql-8.0.16+5\\lib\\main.js","timestamp":"2020-12-12T21:38:47.025Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%\\lightning-services\\mysql-8.0.16+5\\lib\\main.js","timestamp":"2020-12-12T21:38:47.177Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%\\lightning-services\\nginx-1.16.0+4\\lib\\main.js","timestamp":"2020-12-12T21:38:47.181Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%\\lightning-services\\nginx-1.16.0+4\\lib\\main.js","timestamp":"2020-12-12T21:38:47.313Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%resourcesPath%%\\lightning-services\\php-7.3.5+10\\lib\\main.js","timestamp":"2020-12-12T21:38:47.315Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%resourcesPath%%\\lightning-services\\php-7.3.5+10\\lib\\main.js","timestamp":"2020-12-12T21:38:47.446Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%appPath%%\\node_modules\\@getflywheel\\local-addon-broken-link-checker\\lib\\main.js","timestamp":"2020-12-12T21:38:47.448Z"}
{"thread":"main","class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%appPath%%\\node_modules\\@getflywheel\\local-addon-broken-link-checker\\lib\\main.js","timestamp":"2020-12-12T21:38:47.449Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\local-browsersync\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.451Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\local-browsersync-client\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.452Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\local-components\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.452Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localcert\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.453Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localtunnel\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.453Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\memoize-one-ts\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.454Z"}
{"thread":"main","class":"AddonLoaderService","message":"Add-on does not have \"main\" or \"renderer\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\replacestream\\package.json","level":"info","timestamp":"2020-12-12T21:38:47.454Z"}
{"thread":"main","name":"DeprecationWarning","code":"DEP0005","level":"info","message":"Warning:Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.","stack":"DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\n at showFlaggedDeprecation (buffer.js:174:11)\n at new Buffer (buffer.js:257:3)\n at encoder (%%appPath%%\\node_modules\\superagent\\lib\\node\\index.js:499:12)\n at RequestBase._auth (%%appPath%%\\node_modules\\superagent\\lib\\request-base.js:431:44)\n at Request.auth (%%appPath%%\\node_modules\\superagent\\lib\\node\\index.js:502:15)\n at Analytics.flush (%%appPath%%\\node_modules\\analytics-node\\lib\\index.js:152:6)\n at listOnTimeout (internal/timers.js:531:17)\n at processTimers (internal/timers.js:475:7)","timestamp":"2020-12-12T21:38:58.125Z"}

```

---

<div class="post-metadata">

**Author:** ![martin.wedepohl](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/martin.wedepohl/32/12027_2.png) [@martin.wedepohl](https://community.localwp.com/u/martin.wedepohl)\
**Post date:** [December 12, 2020, 11:06pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/2 "2020-12-12T23:06:07Z")

</div>

Solution to getting the sites to show up again … downgraded to 5.9.0 and my sites appear

---

<div class="post-metadata">

**Author:** ![martin.wedepohl](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/martin.wedepohl/32/12027_2.png) [@martin.wedepohl](https://community.localwp.com/u/martin.wedepohl)\
**Post date:** [December 12, 2020, 11:14pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/3 "2020-12-12T23:14:09Z")

</div>

Upgraded to 5.9.3+5100 and it still works …

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 21, 2020, 4:16pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/4 "2020-12-21T16:16:26Z")

</div>

I’m having the same issue on 2 Windows machines. These are new installs. I can create sites and access them through a browser, but Local Sites does not populate. Windows 10 Pro on both machines.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 21, 2020, 5:54pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/5 "2020-12-21T17:54:39Z")

</div>

Thank you for providing this info and taking the time to post here in the forums!

I’ve never seen Local in that sort of a state. Does this still happen with the latest (currently 5.9.6) version of Local?

- [https://localwp.com/releases/](https://localwp.com/releases/)

From the screenshot, I can sort of imagine that Local is having trouble reading the `sites.json` file within it’s configuration directory.

Do you have any sort of antivirus software installed that might be preventing Local from reading files within the `%AppData%\Local` directory?

![Shared with CloudApp](https://p-DgFRdw9.t2.n0.cdn.getcloudapp.com/items/p9urQg4X/06cbcf9a-a476-49a3-a433-ee4c16154981.png?source=social&v=107a8f65567a58aa5b7ad33c5508c38c)

Also, is there anything that might be different from the defaults in terms of how Local was installed? For example, was Local installed to a different partition?

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 21, 2020, 7:55pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/6 "2020-12-21T19:55:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/6/60048cf50a4b9fbdcfa2e628b867dde307499964.png)

Only windows firewall. I disabled - same results.

I created a test site from the defaults and I see it in sites.json file.

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 21, 2020, 7:56pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/7 "2020-12-21T19:56:49Z")

</div>

Running version 5.9.7+5156

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 21, 2020, 8:18pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/8 "2020-12-21T20:18:12Z")

</div>

Ben,

As a test, I uninstalled and installed 5.9.3 and the sites are listed!

Uninstalled 5.9.3 and reinstalled 5.9.7, and the sites are gone again.

Installed 5.9.3 over 5.9.7 and the site list is back. Installed 5.9.7 over 5.9.3 and error fetching.

5.9.4 does not show the site list.

Russ

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 22, 2020, 6:45pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/9 "2020-12-22T18:45:46Z")

</div>

A post was split to a new topic: [Unable to see my site](https://community.localwp.com/community/t/unable-to-see-my-site/23538)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 22, 2020, 6:50pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/10 "2020-12-22T18:50:46Z")

</div>

That’s really interesting and thanks for the screenshot – the file permissions look correct.

Can you please provide your Local Log? See this Community Forum post for instructions on how to do so:

- [How do I retrieve Local’s Log?](https://localwp.com/community/t/how-do-i-retrieve-locals-log-file/3720)

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 22, 2020, 7:26pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/11 "2020-12-22T19:26:04Z")

</div>

[local-lightning - Copy.zip](https://community.localwp.com/uploads/short-url/cgu5FeEVMCL8sX8rz7g9HqTrDbL.zip) (7.6 KB)

Let me know if this is not the correct file.

Russ

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 22, 2020, 8:59pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/12 "2020-12-22T20:59:38Z")

</div>

Thanks! This is the right log. I’m not seeing anything obviously broken here.

You mention that this is happening with two different machines – do each of those Local windows have the same error as what is in the original post? Specifically, I’m wondering if your machines are reporting the same error:

```auto
Error, could not load sites.
Failed to fetch

```

If you can, could you take a screenshot of the Local window for us to compare as well?

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 23, 2020, 10:34am UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/13 "2020-12-23T10:34:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/1/1b3b9917bf61cbdb53bac42b00c10b75bb66418d.png)

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/f/f8f532804548912cac3ef00a6168172122e464f1.png)

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 23, 2020, 10:35am UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/14 "2020-12-23T10:35:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/4f15a4a8e4ef87b25e7dff6dc913c75a65becf67.png)

![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/3/3054399593e6ad9ed367450e2c99a39ce7baa83c.png)

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 23, 2020, 7:14pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/15 "2020-12-23T19:14:54Z")

</div>

Thanks for those screenshots @grokwhy – I think I’ve zeroed in on recreation steps which should help with getting a fix created, though I don’t have an exact ETA for when that will be released.

I think there are two options:

1. Downgrade to Local 5.9.3
2. Find whatever is listening on port 4000 and stop that before launching Local

Since you are running Windows, you should be able to work through #2 by using these commands within a `cmd` prompt:

```auto
netstat -nao | find "4000"
taskkill /F /pid <whatever-process-id-is-found>

```

To help visualize, this screenshot has a fake “dev server” listening on port 4000. I’m able to use `taskkill` to kill it and get Local to work again:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/4/49fd826bd31e39bf7e074f23611355f53b306ef3.jpeg)

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 23, 2020, 7:17pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/16 "2020-12-23T19:17:00Z")

</div>

Thanks, I’ll look into this.

Russ

---

<div class="post-metadata">

**Author:** ![grokwhy](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grokwhy](https://community.localwp.com/u/grokwhy)\
**Post date:** [December 29, 2020, 9:14pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/18 "2020-12-29T21:14:46Z")

</div>

Ben,

I determined the service running on port 4000 was the NoMachine app. After disabling the service and installing the latest 5.9.7 I now see the site list.

Thanks!  
Russ

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [December 30, 2020, 5:07pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/19 "2020-12-30T17:07:39Z")

</div>

Nice!

The team’s still working on a fix so that you won’t have to find and kill a process that’s running on port 4000, but it’s coming along and should be released soon!

---

<div class="post-metadata">

**Author:** ![martin.wedepohl](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/martin.wedepohl/32/12027_2.png) [@martin.wedepohl](https://community.localwp.com/u/martin.wedepohl)\
**Post date:** [December 30, 2020, 6:13pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/20 "2020-12-30T18:13:52Z")

</div>

Good to know … I’m running NoMachine as well to contact a few Linux machines I have on site. I will try disabling it or see if I can have it run on a port other than 4000.

---

<div class="post-metadata">

**Author:** ![mindcauldron](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mindcauldron](https://community.localwp.com/u/mindcauldron)\
**Post date:** [December 31, 2020, 2:00pm UTC](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357/21 "2020-12-31T14:00:34Z")

</div>

I can confirm.

**Installing Local v5.9.3 on top of latest installation recovered my site list, with NoMachine working well.** (it is linked in a comment above)

Installing Local v5.9.7 (latest at time of writing) on top of v5.9.3 gave this same error as the original post “Error, could not load sites. Failed to fetch.”

When I disable NoMachine, and restart Local v5.9.7, everything works again as normal.

I hope Local elects to use a different port for this service, as I use NoMachine extensively as a remote working tool.

Take care folks!

[Next page](https://community.localwp.com/t/error-could-not-load-sites-failed-to-fetch/23357.md?page=2)
