502 Bad Gateway after updating Local (9.0.5+6706) & macOS Sequoia (15.0.1)

What issue or error are you experiencing?

502 Bad Gateway on anything PHP 8+ after updating to macOS Sequoia (15.0.1) and Local (9.0.5+6706)


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

The 502 bad gateway error occurs on any existing site I had with a PHP version 8.x.x or higher.

Temporary solution for now is to revert sites back to 7.4.30, but this isn’t ideal long term.

The only exception to this is if I create a brand new site, with recommended settings (PHP 8.1.29 | Web server nginx | MySQL Version 8.0.16). This works fine until I migrate an existing website into this fresh installation. At that point the 502 error returns.


System Details

  • Local Version: 9.0.5+6706

  • Operating System (OS) and OS version: macOS Sequoia 15.0.1


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-logs.zip (1.9 MB)


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 @muxbux

Could you try closing Local, and deleting this folder:

Mac: ~/Library/Application Support/Local/lightning-services

Then relaunch Local after that and see if issues persist.

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

Hey @Nick-B

Still no luck - error log attached again.

local-logs1.zip (1.9 MB)

Thanks

Hey @muxbux

If you use the Site Shell function, can you try disabling all plugins or swapping out a theme on a site with this issue? Just to double check it’s not some site level conflict happening. Otherwise my next recommendation is going to be a full uninstall and reinstall with these steps:

  • Export any sites that you have on Local and save them to a folder somewhere on your computer: Backup a Local Site - Local

  • Fully uninstall Local from your computer following the MacOS specific steps here: Uninstall Local - Local

  • Install the latest version of Local on this link: Releases - Local

  • Once installed, please restart the computer.

  • When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

  • Check and see if the issue still persists. If so, please provide us with an updated log: Retrieve Local’s Log File - Local