Major issues with Local 6.4.0

What the f…k just happened? Local 6.4.0 stopped working at all. First websites couldn’t be started. Switching to localhost from domain routing didn’t help. After restart Local crashed and refused to start again. I have spent hours to re-install and set up all websites from scratch. Luckily I had recent backups of all databases. Just upgraded to Local 6.4.0 and running macOS 12.3.1.

Error: No open ports found in between 10055 and 65535
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:200:25
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:473:16
at replenish (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1006:25)
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1016:9
at eachLimit$1 (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:3196:24)
at Object.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1046:16)
at Object.exports.getPort (/Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:145:17)
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:178:26
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:473:16
at iterateeCallback (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:988:17)
Error: No open ports found in between 10000 and 65535
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:200:25
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:473:16
at replenish (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1006:25)
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1016:9
at eachLimit$1 (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:3196:24)
at Object.<anonymous> (/Applications/Local.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:1046:16)
at Object.exports.getPort (/Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:145:17)
at /Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:224:13
at new Promise (<anonymous>)
at Object.exports.getPortPromise (/Applications/Local.app/Contents/Resources/app.asar/node_modules/portfinder/lib/portfinder.js:223:10)

Hi @emmtre - can you attach your Local log so that I can check out what Local was doing before/after that error? https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/

An option is to use localwp.com/releases to redownload version 6.3.1 while we help troubleshoot.

Many thanx @austinwendt for your quick response. After Local 6.4.0 crashed I tried with both 6.3.1 and 6.3.0 without success. Local refused to start again with any version after the first crash. I also tried to restore the whole Local folder in Application Support from a recent backup. But since nothing worked I re-installed 6.4.0 and configured all websites from scratch. So I happened to overwrite the router log. And the local lightning log is flooded with the same messages. But nothing from the actual application crash. I also checked the console log but no crash or spin reports for Local. Right now I’m running Local 6.4.0 and it seems to be working after the re-installation. Besides the SSL problem from 6.3.1 that still persist.

{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.436Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to [::]:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.437Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:443 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.437Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.437Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to [::]:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.437Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:443 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.438Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.438Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to [::]:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.438Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:443 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.438Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.439Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to [::]:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.439Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:443 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.439Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.677Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to [::]:80 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.678Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] bind() to 0.0.0.0:443 failed (48: Address already in use)","timestamp":"2022-04-19T20:04:57.678Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [emerg] still could not bind()","timestamp":"2022-04-19T20:04:58.183Z"}
{"thread":"main","class":"SiteProcessManagerService","stack":"Error: No open ports found in between 10000 and 65535\n    at %%appPath%%/node_modules/portfinder/lib/portfinder.js:200:25\n    at %%appPath%%/node_modules/async/dist/async.js:473:16\n    at replenish (%%appPath%%/node_modules/async/dist/async.js:1006:25)\n    at %%appPath%%/node_modules/async/dist/async.js:1016:9\n    at eachLimit$1 (%%appPath%%/node_modules/async/dist/async.js:3196:24)\n    at Object.<anonymous> (%%appPath%%/node_modules/async/dist/async.js:1046:16)\n    at Object.exports.getPort (%%appPath%%/node_modules/portfinder/lib/portfinder.js:145:17)\n    at %%appPath%%/node_modules/portfinder/lib/portfinder.js:224:13\n    at new Promise (<anonymous>)\n    at Object.exports.getPortPromise (%%appPath%%/node_modules/portfinder/lib/portfinder.js:223:10)","level":"error","message":"Unable to start site.","timestamp":"2022-04-19T20:05:06.814Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:44:33.873Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:44:47.914Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:45:00.445Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:51:53.584Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:52:11.425Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:52:25.670Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:52:44.645Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:54:22.017Z"}
{"localVersion":"6.3.0+5756","osPlatform":"darwin","osRelease":"21.4.0","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T20:54:59.339Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T21:44:09.224Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T21:46:01.715Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T21:53:02.208Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T21:54:28.295Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T22:03:03.193Z"}
{"localVersion":"6.4.0+5927","osPlatform":"darwin","osRelease":"21.4.0","osArch":"x64","windowsEdition":null,"linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2022-04-19T22:06:42.684Z"}

No problem, I try to watch close on release days :slightly_smiling_face:

I’m glad you were able to resolve the issue, but I’m still perplexed as to why it happened. This wasn’t an error we had seen in our testing or Beta phases. Can you tell me what your workflow was like when you started today?

Were you developing in Local already today, and then updated in the middle (sites started/actively developing, etc)? Or did you start fresh for the day with an update?

Once the Local update completed to 6.4, what actions did you take in Local? Did you start a single site and see the message, or did you select multiple sites and start multiple of them at once? Just trying to repro! I assume you have error reporting turned off in your Settings, as I haven’t seen that error from your log come through. Bad news - harder to track down. Good news - hasn’t happened to any other users who do send those logs to us… but would like to prevent it from happening, your “fix” didn’t sound fun.

Oh COME ON.

@austinwendt First I worked on a couple of sites with Local 6.3.0 without any problem. Updated some plugins and checked the sites. Usually I close the Local app when not working on any sites. Then I saw there was an update available and I updated manually to 6.4.0 (downloaded the disk image and replaced the app). I started a site with 6.4.0 just to check out what’s new and changed the theme from light to dark and back again. Then I selected multiple sites and control clicked to start them. And then I got the error message in the screenshot above “Uh-oh! Unable to start site”. I closed the app and tried several times with the same error message. I restarted the computer and tried to switch to use localhost and started a single site but I couldn’t browse the site or log in to admin. So I switched back to domain routing and manage to start a single site again. But then when I was trying to start some more sites the Local app crashed. From that moment I never managed to start any version of Local again. It looked like the app started and the icon in the dock started to bounce for a couple of seconds but the app never started and the main window didn’t display. And I never got any error messages. I tried with both 6.3.0 and 6.3.1 but the app just refused to start. I also tried to restore the Local folder in Application Support from a recent backup. But since I was stuck I decided to trash the Local folder in Application Support and the app started upp fine again. So had no choice but to start all over again and import the database backups for all sites. Hope this will help you to understand what happened.

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