# 502 Bad Gateway nginx/1.26.1 

**URL:** <https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969>\
**Category:** Support\
**Tags:** hosts-file\
**Created:** [October 11, 2024, 1:10pm UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969 "2024-10-11T13:10:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Belike](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Belike](https://community.localwp.com/u/Belike)\
**Post date:** [October 11, 2024, 1:10pm UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/1 "2024-10-11T13:10:57Z")

</div>

### What issue or error are you experiencing?

## [Uncategorized](https://community.localwp.com/c/support/uncategorized/24)oct 2024 - I am trying to create a new site. When i click start site and then view site or admin i get an error message in my browser: 502 bad gateway nginx/1.16.0 under the database tab i have all these msg

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 11, 2024, 1:24pm UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/2 "2024-10-11T13:24:30Z")

</div>

Hi @Belike

We would be happy to assist with your Local troubleshooting! Could you provide some more details to help us take a further look?

- What is your OS?

- What version of Local are you on?

- Please attach a copy of your [Local Logs](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/#download-local-logs)

Keep us posted and we’d be happy to help further!

---

<div class="post-metadata">

**Author:** ![Belike](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Belike](https://community.localwp.com/u/Belike)\
**Post date:** [October 12, 2024, 8:08am UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/3 "2024-10-12T08:08:43Z")

</div>

> [@Nick-B](#):
>
> We would be happy to assist with your Local troubleshooting! Could you provide some more details to help us take a further look?
> 
> - What is your OS?
> - What version of Local are you on?
> - Please attach a copy of your [Local Logs](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/#download-local-logs)
> 
> Keep us posted and we’d be happy to help further!

It looks like you’re reaching out for troubleshooting help with Local. To assist you effectively, you can follow this template:

* * *

**Troubleshooting Request**

1. **Operating System** : [, Windows 10,]

2. **Version of Local** : [Local 9.1.0]

---

<div class="post-metadata">

**Author:** ![Belike](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@Belike](https://community.localwp.com/u/Belike)\
**Post date:** [October 12, 2024, 8:14am UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/4 "2024-10-12T08:14:26Z")

</div>

[local-lightning-verbose1.log](https://community.localwp.com/uploads/short-url/xl6CwrMZLBjdgQNfjFfrSCAoKqP.log) (1.0 MB)  
[local-details.json](https://community.localwp.com/uploads/short-url/7u9fOaemsUYJ5OUrNBfDOk3oLaQ.json) (925 Bytes)  
[local-lightning0.log](https://community.localwp.com/uploads/short-url/vbHsIge0chNDopMWQESWQLBP0lV.log) (1.0 MB)  
[local-lightning-verbose0.log](https://community.localwp.com/uploads/short-url/lin2lBp2s2jGtMAOFOyluh3ifAS.log) (740.5 KB)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 12, 2024, 1:03pm UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/5 "2024-10-12T13:03:02Z")

</div>

Hi @Belike

There are a few things you can check here to see if they resolve this:

- Do you have any antivirus, security, or firewall applications that could be blocking Local? If so, can you try temporarily disabling them or see if they have a setting that will “allow” Local to proceed?
- Can you check if your Hosts File is read only? [Help! I’m running into an EPERM error with the hosts file on Windows](https://community.localwp.com/t/help-im-running-into-an-eperm-error-with-the-hosts-file-on-windows/3508)
- Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.

---

<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:** [January 10, 2025, 1:03pm UTC](https://community.localwp.com/t/502-bad-gateway-nginx-1-26-1/44969/6 "2025-01-10T13:03:25Z")

</div>

Closed on January 10, 2025, 1:03pm UTC

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