# I just updated and keep getting the bad gateway 502 error

**URL:** <https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871>\
**Category:** Support\
**Tags:** 502-request-error\
**Created:** [October 15, 2019, 11:52pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871 "2019-10-15T23:52:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![inessenceva](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/inessenceva/32/7887_2.png) [@inessenceva](https://community.localwp.com/u/inessenceva)\
**Post date:** [October 15, 2019, 11:52pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/1 "2019-10-15T23:52:35Z")

</div>

Every time you have an update, I know I will have trouble getting on to my local website just when I need to work. It is always the same 502 Bad Gateway nginx/1.16.0. Can we have updates that don’t disrupt? How can I fix this hopefully now?

---

<div class="post-metadata">

**Author:** ![MarcoCuel](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/marcocuel/32/15375_2.png) [@MarcoCuel](https://community.localwp.com/u/MarcoCuel)\
**Post date:** [November 16, 2020, 4:10pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/2 "2020-11-16T16:10:46Z")

</div>

I am in the same

---

<div class="post-metadata">

**Author:** ![seb2086](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/seb2086/32/11869_2.png) [@seb2086](https://community.localwp.com/u/seb2086)\
**Post date:** [November 21, 2020, 7:20pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/3 "2020-11-21T19:20:16Z")

</div>

I have the same too after updating Local in v5.9.3+5100 , have you resolved this issue ?

---

<div class="post-metadata">

**Author:** ![andremacola](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/andremacola/32/11876_2.png) [@andremacola](https://community.localwp.com/u/andremacola)\
**Post date:** [November 23, 2020, 3:55am UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/4 "2020-11-23T03:55:26Z")

</div>

Same Here. With Big Sur

---

<div class="post-metadata">

**Author:** ![aidanweltner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/aidanweltner/32/11172_2.png) [@aidanweltner](https://community.localwp.com/u/aidanweltner)\
**Post date:** [December 1, 2020, 3:09am UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/5 "2020-12-01T03:09:43Z")

</div>

I have the same issue with Local v5.9.3+5100 and mac Big Sur

---

<div class="post-metadata">

**Author:** ![greghollowell](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/greghollowell/32/11937_2.png) [@greghollowell](https://community.localwp.com/u/greghollowell)\
**Post date:** [December 1, 2020, 12:05pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/6 "2020-12-01T12:05:43Z")

</div>

Same issue here with Local v5.9.3+5100 on mac Big Sur 11.0.1

---

<div class="post-metadata">

**Author:** ![greghollowell](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/greghollowell/32/11937_2.png) [@greghollowell](https://community.localwp.com/u/greghollowell)\
**Post date:** [December 1, 2020, 12:13pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/7 "2020-12-01T12:13:57Z")

</div>

Update: Running smoothly on Big Sur with Local Beta v5.9.2.

> **[Local Beta 5.9.2](https://community.localwp.com/t/local-beta-5-9-2/22757)**
>
> Release Date: November 5th, 2020 Download Local 5.9.2 (Beta) for macOS SHA1: b03977575ebb681f2fa8acd7e8a64ddd1498ec4c Download Local 5.9.2 (Beta) for Windows SHA1: d28ed1070d0f264afa7e02cf574a0f7c324e7a4e Download Local 5.9.2 (Beta) as...

---

<div class="post-metadata">

**Author:** ![czaczawik](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/czaczawik/32/13758_2.png) [@czaczawik](https://community.localwp.com/u/czaczawik)\
**Post date:** [July 30, 2021, 8:40am UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/8 "2021-07-30T08:40:42Z")

</div>

Same here. Second update and again all crashed… 502 error.

---

<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:** [July 30, 2021, 4:47pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/9 "2021-07-30T16:47:40Z")

</div>

Hey @czaczawik, Welcome to the Local Community Forums!

A 502 error basically means that “something” behind Local’s router wasn’t responding. This is a pretty generic error that can be caused by a few different things.

To get a better idea of what broke during the update, 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:** ![czaczawik](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/czaczawik/32/13758_2.png) [@czaczawik](https://community.localwp.com/u/czaczawik)\
**Post date:** [August 6, 2021, 12:52pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/10 "2021-08-06T12:52:29Z")

</div>

Here is my log. I hope someone can solve my problem  
[local-lightning.log](https://community.localwp.com/uploads/short-url/yKIP87VMVy8dTEt7RpVIts8k2UM.log) (659.6 KB)

---

<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:** [August 6, 2021, 4:38pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/11 "2021-08-06T16:38:03Z")

</div>

Interesting, I’ve never seen this error before:

```auto
nginx: [emerg] CreateFile() \"D:/Local WP Serwer/Local Sites/blueprint/logs/nginx/error.log\" failed (3: FormatMessage() error:(15100))

```

I think this is nginx telling us that there’s some sort of permissions error and it can’t create a file at that location. It looks like this site is being stored on a second partition (`D:\`) which makes me wonder if it has different write permissions than the c:\ drive.

If you navigate to that folder and make it writeable, are you able to stop and restart the site?

```auto
D:/Local WP Serwer/Local Sites/blueprint/logs/nginx/

```

One other testing piece, if you create a new site on the `C:\\` partition, do you have a similar issue?

---

<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:** [November 4, 2021, 4:38pm UTC](https://community.localwp.com/t/i-just-updated-and-keep-getting-the-bad-gateway-502-error/14871/12 "2021-11-04T16:38:09Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
