# Error creating new website on local. 502 Bad gateway

**URL:** <https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739>\
**Category:** Support\
**Created:** [July 15, 2024, 1:19pm UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739 "2024-07-15T13:19:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazim](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kazim](https://community.localwp.com/u/kazim)\
**Post date:** [July 15, 2024, 1:19pm UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739/1 "2024-07-15T13:19:42Z")

</div>

### What issue or error are you experiencing?

## i am trying to create a new website first time , when i dose open it ,i dose receive the message 502 bad gateway. and i can’t succeed , anyone can help me please?

### 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:** ![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 15, 2024, 2:54pm UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739/2 "2024-07-15T14:54:11Z")

</div>

Hey @kazim – Welcome to the Local community!

It’s hard to know for sure what’s going on. Can you provide a little more detail about the machine and Local?

- What version of Local is installed?
- What kind of computer do you have?
- What OS and OS version are you using?

Can provide the Local Logs? You can get a zip of those logs by clicking the “Download Local Log” button from the “Support” tab of Local. See this help doc for more information:

> **[Retrieve Local’s Log File](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)**
>
> A big part of troubleshooting errors, on any website or application, is the log file. This file contains a record of actions or errors that have occurred when a process is done. When reaching out for…

---

<div class="post-metadata">

**Author:** ![kazim](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kazim](https://community.localwp.com/u/kazim)\
**Post date:** [July 16, 2024, 5:09am UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739/3 "2024-07-16T05:09:29Z")

</div>

Sir! Ben. Turner  
Tanks for Guidance These are details you asked  
 ![Screenshot 2024-07-16 095125](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/e/c/eced07188cafe1055061971f403c9e28ad8ccfa6.png)  
12th Gen Intel(R) Core™ i3-12100 3.30 GHz  
32.0 GB (31.8 GB usable)  
64-bit operating system, x64-based processor  
Windows 11 Pro  
Version 23H2  
OS BUILD 22631.3880  
local log

```auto
2024/07/14 19:51:33 [alert] 17084#7188: OpenEvent("ngx_master_11128") failed (2: The system cannot find the file specified)

```

```auto
{"class":"addIpcAsyncListener","level":"warn","message":"Duplicate callback appears to be getting added to connectManifestWpeService:create","stringifiedCallback":"(e,t,i,n,s,r,a,o)=>this.create(e,t,i,n,s,r,a,o)","thread":"main","timestamp":"2024-07-12T04:21:49.558Z"}
{"level":"info","message":"Finished maybeCopyBundledServices in 0.005s","thread":"main","timestamp":"2024-07-12T04:22:09.853Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.858Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.861Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.862Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.886Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.886Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.911Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\nginx-1.16.0+7\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.912Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\nginx-1.16.0+7\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:22:09.941Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have package.json: %%userDataPath%%\\lightning-services\\php-8.1.29+0\\package.json","thread":"main","timestamp":"2024-07-12T04:22:09.942Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\local-components\\package.json","thread":"main","timestamp":"2024-07-12T04:22:09.942Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localcert\\package.json","thread":"main","timestamp":"2024-07-12T04:22:09.943Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localtunnel\\package.json","thread":"main","timestamp":"2024-07-12T04:22:09.943Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"main\" or \"renderer\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\replacestream\\package.json","thread":"main","timestamp":"2024-07-12T04:22:09.944Z"}
{"class":"GraphQLService","level":"verbose","message":"GraphQL server ready at http://127.0.0.1:4000/graphql","thread":"main","timestamp":"2024-07-12T04:22:09.996Z"}
{"class":"GraphQLService","level":"verbose","message":"GraphQL subscriptions ready at ws://127.0.0.1:4000/graphql","thread":"main","timestamp":"2024-07-12T04:22:09.996Z"}
{"level":"warn","linuxEdition":null,"localVersion":"9.0.5+6706","message":"Electron Event ready","osArch":"x64","osPlatform":"win32","osRelease":"10.0.22631","timestamp":"2024-07-12T04:22:14.465Z","windowsEdition":"Microsoft Windows 11 Pro"}
{"class":"Updater","level":"info","message":"Checking for updates for: win32-ia32-production","thread":"main","timestamp":"2024-07-12T04:22:24.950Z"}
{"eventId":"ee0a42ad1a2d4f4aaa4492c7632aaffc","level":"warn","message":"Unhandled Rejection.","p":{},"reason":{"message":"network timeout at: https://cdn.localwp.com/stable/updates.json","type":"request-timeout"},"thread":"main","timestamp":"2024-07-12T04:22:26.461Z"}
{"level":"info","message":"Electron Event second-instance","timestamp":"2024-07-12T04:29:12.655Z"}
{"class":"addIpcAsyncListener","level":"warn","message":"Duplicate callback appears to be getting added to connectManifestWpeService:create","stringifiedCallback":"(e,t,i,n,s,r,a,o)=>this.create(e,t,i,n,s,r,a,o)","thread":"main","timestamp":"2024-07-12T04:29:12.649Z"}
{"level":"info","message":"Finished maybeCopyBundledServices in 0.002s","thread":"main","timestamp":"2024-07-12T04:29:12.743Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.745Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.747Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.747Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mariadb-10.4.10+4\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.773Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.773Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\mysql-8.0.16+6\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.799Z"}
{"class":"AddonLoaderService","level":"info","message":"Loading Add-on: %%userDataPath%%\\lightning-services\\nginx-1.16.0+7\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.799Z"}
{"class":"AddonLoaderService","level":"info","message":"Successfully Loaded Add-on: %%userDataPath%%\\lightning-services\\nginx-1.16.0+7\\lib\\main.js","thread":"main","timestamp":"2024-07-12T04:29:12.827Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have package.json: %%userDataPath%%\\lightning-services\\php-8.1.29+0\\package.json","thread":"main","timestamp":"2024-07-12T04:29:12.827Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\local-components\\package.json","thread":"main","timestamp":"2024-07-12T04:29:12.828Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localcert\\package.json","thread":"main","timestamp":"2024-07-12T04:29:12.829Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"productName\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\localtunnel\\package.json","thread":"main","timestamp":"2024-07-12T04:29:12.829Z"}
{"class":"AddonLoaderService","level":"info","message":"Add-on does not have \"main\" or \"renderer\" specified in package.json: %%appPath%%\\node_modules\\@getflywheel\\replacestream\\package.json","thread":"main","timestamp":"2024-07-12T04:29:12.829Z"}
{"class":"GraphQLService","level":"verbose","message":"GraphQL server ready at http://127.0.0.1:52131/graphql","thread":"main","timestamp":"2024-07-12T04:29:12.875Z"}

```

[local-logs.zip](https://community.localwp.com/uploads/short-url/P7ci58bIqZssC5qc4MyeY3XCkd.zip) (50.3 KB)

 ![Screenshot 2024-07-16 105636](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/4/a4284ca5d9e676ed011e69f80bdbdece70d6378b.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:** [July 16, 2024, 4:18pm UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739/4 "2024-07-16T16:18:03Z")

</div>

I don’t see any big issues in the Local log, but the router log looks interesting:

> [@kazim](#):
>
> ```auto
> 2024/07/14 19:51:33 [alert] 17084#7188: OpenEvent("ngx_master_11128") failed (2: The system cannot find the file specified)
> 
> ```

If you try to create another site in Local, is that site created and accessible?

If not, can you take a screenshot of what the browser window for us to get a better idea of the kind of error the site is showing?

Additionally, can you provide an updated version of the Local log after creating the second site?

---

<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:** [July 18, 2024, 4:26am UTC](https://community.localwp.com/t/error-creating-new-website-on-local-502-bad-gateway/43739/5 "2024-07-18T04:26:34Z")

</div>

Closed on July 18, 2024, 4:26am UTC

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