Local appears to be mixing 2 sites?

Issue Summary

2 sites seem to be mixed up when browsing to them.
One always returns 502 in https and error log looks like it is using wrong ports

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    All sites after the one

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Not after the first one

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!
Created the first site which works.
Second site gave 502 and router error log:

2021/10/19 20:33:27 [error] 15168#29556: *221 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: svekaschoten.local, request: “GET / HTTP/2.0”, upstream: “http://127.0.0.1:10005/”, host: “qframe.local
2021/10/19 20:33:29 [error] 15168#29556: *221 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: svekaschoten.local, request: “GET /favicon.ico HTTP/2.0”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “qframe.local”, referrer: “https://qframe.local/

Third site (clone of first to make sure i didn’t mess up)

2021/10/19 21:03:41 [error] 15168#29556: *318 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: svekaschoten.local, request: “GET / HTTP/2.0”, upstream: “http://127.0.0.1:10005/”, host: “test.local
2021/10/19 21:03:43 [error] 15168#29556: *318 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: svekaschoten.local, request: “GET /favicon.ico HTTP/2.0”, upstream: “http://127.0.0.1:10005/favicon.ico”, host: “test.local”, referrer: “https://test.local/

sites.json (2.2 KB)
As you can see SvekaSchoten (first site) has port 10005
Qframe (second site) has port 10011
test (third site) has 10017

System Details

  • Which version of Local is being used?
    6.1.5+5536

  • What Operating System (OS) and OS version is being used?
    Windows 10 Pro Version 20H2 OS build 19042.1288

  • Attach the Local Log. See this Community Forum post for instructions on how to do so:
    local-lightning.log (156.0 KB)
    locals-router-error.log (9.2 KB)

Are these secondary sites just plain WordPress sites, or do they have additional plugins or themes installed?

If you quit and restart Local (and maybe restart the computer), that should close down Local’s Router. If you do that and start the sites again, are they still showing the 502 errors?

I created them today and wasn’t able to open them. so nothing installed.
I’ll try a reboot but it was a fresh start (created the first site 2 days ago).

It appears the reboot has helped.
And i’m now able to run all 3 sites!
I’ll keep an eye out if it happens again or if it was a fluke.
If I manage a couple more i’ll mark your answer as the solution.

1 Like

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