Bad Gateway 502 Error again

Issue Summary

I have got the BAD GATEWAY error yet again

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular? ALL SITES

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser? NO

Cannot create new site - get this error:-

Error: Error: ENOENT: no such file or directory, scandir ‘/Users/paulw/Library/Application Support/Local/lightning-services/php-8.0.22+6/bin’
at Object.readdirSync (fs.js:1021:3)
at Object.e.readdirSync (electron/js2c/asar_bundle.js:5:10478)
at LightningServicesService.getPlatformFromService (/Applications/
at LightningServicesService.getRegisteredServices (/Applications/
at LightningServicesService. (/Applications/
at ()
at o (/Applications/
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)


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!

Doing this :- ~/Library/Application Support/Local/lightning-services
Deleting Lightning services makes no difference

System Details

  • Which version of Local is being used? LATEST VERSION

  • What Operating System (OS) and OS version is being used?
    Mac High Sierra

It looks like on EVERY site Wordpress is NOT loading???

THanks in advance

Hi @benselby It seemed like you were able to resolve this in your other thread by removing lightning-services and downgrading PHP. Is that not working now or were you trying something else?

Hi @Nick-B - thanks for the message. I am still on v6.4.3-6116 & have got most sites running perfectly now on PHP v8. Seems to be stable now. But cannot go above PHP v8 else I get Bad Gateway. Will keep you updated!

1 Like

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