Local Bad Gateway 502 error

When I want to open WP-admin for my Local website, I am getting a 502 Bad Gateway Error. What could be the solution for this?

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

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    No, I will get this error


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!

System Details

  • Which version of Local is being used?
    Version 6.7.0+6354

  • What Operating System (OS) and OS version is being used?
    Windown 11

  • Attach the Local Log. See this Help Doc for instructions on how to do so:
    local-lightning.log (48.1 KB)

I hope someone is able to help me;)


Hi there @JornBoone - welcome to the Local community! :wave:

Do you have anti-virus software installed on your computer that may be causing issues?

Here is some information and troubleshooting steps you can try related to anti-virus + Windows:

Let’s start there!


Hey Sam!

Thanks for your answer, but I don’t think this is the solution for me :frowning:

I’m using the Windows 11 Microsoft Defender Antivirus, but as you can see Local has no restrictions.

Also for Windows Defender Firewall (sorry, my windows system is in dutch)

Or could there be other settings which can be the cause of the problem?

Best regards, Jorn

Hi @JornBoone -

Got it - thanks!

Have you already been using Local and this behavior just started happening? Did you recently update Local?


Hi Sam!

I have been using Local for 2 months, but it has been a while since I’ve opened the app. Today I wanted to work on one of my websites and that’s when I found out about the problem.

First, I tried to update Local, but the problem was still there. So, both before and after the update, I had the 502 problem with Local.


@sambrockway maybe this could help you?

Is there any more information what I can give?

I also cannot export a website, cause my laptop will give me this error

I tried to find anything on my virusscanner, but there is nothing strange there…

Hope you can find someting!


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