# Updating Plugins

**URL:** <https://community.localwp.com/t/updating-plugins/6233>\
**Category:** Support\
**Created:** [April 23, 2018, 11:38am UTC](https://community.localwp.com/t/updating-plugins/6233 "2018-04-23T11:38:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElodieG](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@ElodieG](https://community.localwp.com/u/ElodieG)\
**Post date:** [April 23, 2018, 11:38am UTC](https://community.localwp.com/t/updating-plugins/6233/1 "2018-04-23T11:38:38Z")

</div>

Having no luck updating my plugins in Local:

```auto
Update Failed: Local Router Error blockquote { margin: 10% 25%; width: 50%; } body {font-family: arial,sans-serif} img { border:none; } Local Router Error Our apologies for the inconvenience. The Local router is not able to connect to the site you requested. We suggest you try the following: Restart Site - Go to the Local by Flywheel app and restart the site you are attempting to access. Contact us - If the issue persists please contact us.

```

---

<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:** [April 23, 2018, 2:31pm UTC](https://community.localwp.com/t/updating-plugins/6233/2 "2018-04-23T14:31:29Z")

</div>

@ElodieG,

Is this site running the Preferred or Custom environment?

Also, is this happening when updating multiple plugins at a time or is it still happening even when updating one plugin at a time?

---

<div class="post-metadata">

**Author:** ![ElodieG](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@ElodieG](https://community.localwp.com/u/ElodieG)\
**Post date:** [April 23, 2018, 4:08pm UTC](https://community.localwp.com/t/updating-plugins/6233/3 "2018-04-23T16:08:25Z")

</div>

Hi Clay:

The site is running Preferred. This happens for single and multiple plugins.

Elodie

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 7:01pm UTC](https://community.localwp.com/t/updating-plugins/6233/4 "2018-04-23T19:01:24Z")

</div>

I’m experiencing this same issue, running Preferred and for single or multiple plugins, or adding a new plugin, or updating wordpress. Related, everything (frontend and backend pages) began running much much slower (sometimes 30sec) the same time updates broke.

---

<div class="post-metadata">

**Author:** ![ElodieG](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@ElodieG](https://community.localwp.com/u/ElodieG)\
**Post date:** [April 23, 2018, 7:04pm UTC](https://community.localwp.com/t/updating-plugins/6233/5 "2018-04-23T19:04:11Z")

</div>

Yes, also tried to upload a theme plugin to a new build on Local and it timed out with the following message:

PCLZIP\_ERR\_BAD\_FORMAT (-10) : Unable to find End of Central Dir Record signature

Wonder is it all related?

---

<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:** [April 23, 2018, 7:19pm UTC](https://community.localwp.com/t/updating-plugins/6233/6 "2018-04-23T19:19:49Z")

</div>

@ElodieG Every time I’ve seen this error it’s an authentication issue.

---

<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:** [April 23, 2018, 7:58pm UTC](https://community.localwp.com/t/updating-plugins/6233/7 "2018-04-23T19:58:37Z")

</div>

> [@afragen](#):
>
> Every time I’ve seen this error it’s an authentication issue.

Interesting. Authentication with WordPress, permissions, or something else?

* * *

@nkraus @ElodieG,

Can you both try the steps in this article? [Help! My Local site cannot establish a connection to WordPress.org - Local Classic FAQs - Local Community](https://local.getflywheel.com/community/t/help-my-local-site-cannot-establish-a-connection-to-wordpress-org/3272?u=clay)

---

<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:** [April 23, 2018, 8:15pm UTC](https://community.localwp.com/t/updating-plugins/6233/8 "2018-04-23T20:15:03Z")

</div>

@clay I only ever saw it when trying to update from a Bitbucket private repository.

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 8:46pm UTC](https://community.localwp.com/t/updating-plugins/6233/9 "2018-04-23T20:46:16Z")

</div>

@clay , I followed those steps and still got the same error trying to update the plugins.

---

<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:** [April 23, 2018, 8:47pm UTC](https://community.localwp.com/t/updating-plugins/6233/10 "2018-04-23T20:47:49Z")

</div>

@nkraus,

Got it. Thanks for giving it a try!

Can you please zip up the `logs` folder (adjacent to `app` folder) for that Local site and upload it here? Feel free to private message me the archive in case it’s not a throwaway dev site.

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 8:51pm UTC](https://community.localwp.com/t/updating-plugins/6233/11 "2018-04-23T20:51:07Z")

</div>

@clay here you go, hope it helps!  
[logs.zip](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/28ee4ab5e651bfff50a919116b02dec40ec33a7e.zip) (194.6 KB)

---

<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:** [April 23, 2018, 9:17pm UTC](https://community.localwp.com/t/updating-plugins/6233/12 "2018-04-23T21:17:37Z")

</div>

@nkraus

Thanks! I appreciate it!

I have one more bit of information for you to gather if you’re up for it:

_(Note: This will only work on macOS. If you need instructions for Windows let me know.)_

1. Open Terminal and run the following **(leave this Terminal window open)**:

```auto
/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker ps | grep nginx | awk '{print $1 "\t"}' | xargs -I '{}' /Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker exec {} tail -f /var/log/nginx/error.log

```

1. Attempt an upgrade in WordPress that normally causes an error
2. Check the Terminal window for errors.
3. Copy and paste any errors you see here.
4. Feel free to close the Terminal window 🙂

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 9:21pm UTC](https://community.localwp.com/t/updating-plugins/6233/13 "2018-04-23T21:21:07Z")

</div>

@clay I received this when running that command “Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”

---

<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:** [April 23, 2018, 9:40pm UTC](https://community.localwp.com/t/updating-plugins/6233/14 "2018-04-23T21:40:43Z")

</div>

Agh, I’m sorry! I forgot a step. Here are the new instructions.

1. Make sure Local is open and a site is running
2. Open Terminal and run the following:

```auto
eval $(/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine env local-by-flywheel)

```

1. Run the following and **leave this Terminal window open**.

```auto
/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker ps | grep nginx | awk '{print $1 "\t"}' | xargs -I '{}' /Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker exec {} tail -f /var/log/nginx/error.log

```

1. Attempt an upgrade in WordPress that normally causes an error
2. Check the Terminal window for errors.
3. Copy and paste any errors you see here.
4. Feel free to close the Terminal window 🙂

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 9:49pm UTC](https://community.localwp.com/t/updating-plugins/6233/15 "2018-04-23T21:49:46Z")

</div>

@clay

```auto
2018/04/23 21:48:39 [error] 5#0: *115 upstream prematurely closed connection while reading response header from upstream, client: 192.168.95.1, server: gsbcolorado.test, request: "GET /wp-admin/update.php?action=update-selected&plugins=woocommerce%2Fwoocommerce.php%2Cwoocommerce-discounts-plus%2Findex.php&_wpnonce=918875a3e8 HTTP/1.1", upstream: "http://192.168.95.100:4000/wp-admin/update.php?action=update-selected&plugins=woocommerce%2Fwoocommerce.php%2Cwoocommerce-discounts-plus%2Findex.php&_wpnonce=918875a3e8", host: "gsbcolorado.test", referrer: "http://gsbcolorado.test/wp-admin/update-core.php?action=do-plugin-upgrade"

```

---

<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:** [April 23, 2018, 9:58pm UTC](https://community.localwp.com/t/updating-plugins/6233/16 "2018-04-23T21:58:14Z")

</div>

@nkraus,

Thanks again.

How soon do you see the router error after starting the WordPress/theme/plugin update(s)?

---

<div class="post-metadata">

**Author:** ![nkraus](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nkraus](https://community.localwp.com/u/nkraus)\
**Post date:** [April 23, 2018, 10:05pm UTC](https://community.localwp.com/t/updating-plugins/6233/17 "2018-04-23T22:05:51Z")

</div>

@clay it took about 30 seconds to go from the updates page to [http://gsbcolorado.test/wp-admin/update-core.php?action=do-plugin-upgrade](http://gsbcolorado.test/wp-admin/update-core.php?action=do-plugin-upgrade) (which is about how long pages take to load) and then it died at 1:25

---

<div class="post-metadata">

**Author:** ![ElodieG](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@ElodieG](https://community.localwp.com/u/ElodieG)\
**Post date:** [April 24, 2018, 1:29pm UTC](https://community.localwp.com/t/updating-plugins/6233/18 "2018-04-24T13:29:31Z")

</div>

![30](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/5/557d1ceae9b04cc1d0f803d6bf4e092d97227a19.png)

Hi Clay:

I am not a regular cmd user! I am on a mac. Copied and pasted your instructions into the Terminal and here is the result. Still having the update issue?

---

<div class="post-metadata">

**Author:** ![ElodieG](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@ElodieG](https://community.localwp.com/u/ElodieG)\
**Post date:** [April 24, 2018, 5:22pm UTC](https://community.localwp.com/t/updating-plugins/6233/19 "2018-04-24T17:22:26Z")

</div>

@clay this matter seems to be resolved. Managed to update all the plugins. The only thing I did of note was log out of one of my websites?

---

<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/updating-plugins/6233/20 "2020-08-25T18:34:24Z")

</div>

Closed on August 25, 2020, 6:34pm UTC


