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.
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.
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
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
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