502 Bad Gateway (nginx/1.16.0) error for one site

What issue or error are you experiencing?

502 Bad Gateway (nginx/1.16.0) error for one site after pulling from Flywheel

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

  1. opened LocalWP (7.1.0+6396)
  2. Pulled from Flywheel
  3. Opened local site after pulling from Flywheel, encountered [502 Bad Gateway (nginx/1.16.0)]. Other local sites work fine.

relevant notes:

  • LocalWP and Flywheel are running the same PHP and Wordpress version.
  • Previously had no issues pulling / pushing, and site works both locally and online.
  • Site has no issues on Flywheel.

System Details

  • Local Version:

  • Operating System (OS) and OS version:
    Mac OS 13.4.1 (c)

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-lightning.log (568.6 KB)

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.

Hi @bsahey!

Have you tried rebooting Local and your machine?

Can you try updating to the latest release? Releases - Local

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

Yes I tried rebooting the laptop.

No I did not try updating to the latest release because the change log of the latest release did not contain fixes that relate to the observed issue.

What is in the latest release that could potentially resolve the reported issue?

A 502 error is fairly generic, so I merely suggested it as the upgrade + quit and reinstall might help resolve whatever is occurring. Generally speaking these types of errors we see are often fixed with reboots (sometimes multiple reboots).

If you could, please try the upgrade and if the issue persists what has changed in the upgrade is some more enhanced logging. So if you’re still having the issue you can go to the Help Center in the app, scroll down to Download Local Log and that will give us a big more data to investigate with all bundled up into a zip.

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

I can try that. To be safe, is there a rollback function in the event the upgrade led to new / other issues that cause a regression for my use cases? Thanks

Yep! We have instructions here on downgrading:

Also you can always back up your sites as well to be safe:

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