Cannot launch site/environment that worked yesterday

What issue or error are you experiencing?

Uh-Oh! Unable to Start Site.

TypeError: Cannot convert undefined or null to object

at Object.entries ()

at PortsService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:107:62)

at Generator.next ()

at /Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:8:71

at new Promise ()

at __awaiter (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:4:12)

at PortsService.checkAndReplaceUnavailablePorts (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:101:16)

at SiteProcessManagerService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:272:57)

at Generator.next ()

at fulfilled (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:5:58)


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

When attempting to launch one particular site - the site worked fine yesterday and before the most recent Local update. Other sites seem to launch fine.


System Details

  • Local Version:

9.2.5+6810

  • Operating System (OS) and OS version:

Mac 15.5 (24F74)


Local Logs

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

local-lightning.log (994.8 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.

1 Like

I’m also unable to backup the database since the site won’t launch.

Sorry that you ran into this, @AaronECP. Have you rebooted since the update?

We’ve seen similar issues in the past solved by restarting:

I have restarted and just logged out, back in, then restarted again. The issue persists.

Is there a way to manually back up the database without starting the server or using AdminerNeo? If so, I could just create a completely new environment. I have all the template files saved on Git, but unfortunately, I didn’t back up the database last night.

@AaronECP If you create a new, blank site in Local can you access that okay? If you can, then you could try reimporting the site getting the errors. The steps would look like this:

  • Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
  • Once you have those copied, completely delete the site from Local
  • Restart Local/your machine
  • Reimport the site back into Local. You can refer here on how to Restore from only Local site files

I was able to use ‘clone site’ which copied not only the files but the database as well. This new environment seems to function normally.

1 Like

Okay glad to hear it @AaronECP! Thank you for following up :green_heart:

This error happens almost daily on sites that worked fine the day before.
I keep a zip backup and just recreate them, but that’s not an ideal solution.
I tried resetting the app, download the latest etc. The only thing changed since yesterday was creating a backup using UpdraftPlus.
Frustrating,
M

Hi @migo3!

When you’re done working in Local do you Stop all of your sites and then quit the app? Or do you just close it out? If you’re doing the latter you could try ensuring everything is Stopped before quitting which can sometimes help with this kind of error.

If you’re still having trouble can you share a full Local Log with us here to look at? Retrieving Local’s Log File

Thanks for the reply,
I usually Stop all the sites before quitting. I will send a log file once it happens again.
Thanks

1 Like

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

Sounds good @migo3!