When I start the Local app, the user interface shows several of my Local websites have already started without any action on my part. This occurs upon starting the Local app and is repeatable.
Also, whenever I start any single Local website, the Local UI shows several other Local websites starting (automatically) at the same time without any action on my part.
However, the Local websites that are appearing to start (automatically) when I start any one website are NOT really starting at all. It is just the Local UI is showing these websites as
being in a āStartedā state but in reality they are not running.
It looks like some kind of Local UI bug. Itās very annoying trying to figure out which Local websites are actually āStartedā versus those the Local UI is erroneously presenting as in a āStartedā state.
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
Whenever any one Local website is started, several other Local websites also start (automatically). However, these other Local websites only appear to be in a āStartedā state in the Local UI. In reality, they are not actually in a āStartedā state.
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
Yes, no problem.
Replication
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!
I have a short video that shows very clearly exactly what is happening but I am unable to upload videos to this site.
Here is a link to view the video:
System Details
Which version of Local is being used?
Version 6.7.2+6375
What Operating System (OS) and OS version is being used?
macOS Catalina Version 10.15.7
Attach the Local Log. See this Help Doc for instructions on how to do so: local-logs.zip (677.6 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.
@webworx Be very careful editing that file. Shut down the Local app before editing it, and make sure to take a backup copy beforehand. Once you have made the change to remove the errant data (which can only really be determined by looking at the sites.json file for something out of place), then restart the Local app and try again.
One question, to possibly help developers get this fixed: Were the sites in question created by cloning another site?
Thanks for sharing that this is happening to you, too.
I am curious about @burtās response - do you happen to know if the sites youāre experiencing that behavior with were cloned sites? Or cloned from a blueprint?
Thereās this thread that could be related if thatās the case:
@sambrockway This issue surfaced on Windows a couple of years ago and was resolved by changes made in 6.3.0 ā cloned sites had extraneous data in the sites.json file that caused them to appear as running when they werenāt. Obviously I donāt have access to any source here, but I suspect that there is something specific to Mac that may need a similar patch applied to address that platform.
Thanks everyone,
For what itās worth, I did not experience this problem (Iām on macOS Catalina) until after cloning a few sites, not āBlueprintsā but actual clones.
In my case, I just exported the errant sites then deleted them, then imported the exported sites back into Local and Iām good-to-go so far.
Key takeaway here is that I will refrain from cloning and blueprinting new sites until this bug (or undocumented āfeatureā) has been fixed.
Thanks again all for very helpful feedback and suggestions, much appreciated.
Thank you @burt for your continued help in bubbling this up and assisting other users. Iāll check with the team on this for a potential future resolution.
Yes, a big shoutout and thank you to @burt for being so helpful in tracking this down and helping others resolve it.
Weāre still trying to chase down consistent reproduction steps, but weāve moved these reports into a larger bug report here in the forums and created a ticket for the engineering team to look into. For now, it seems like the issue is contained to macOS and somehow related to cloning and blueprintsā¦ Iāll be trying to nail down something consistent. If anyone has leads on steps you can take to make this happen repeatedly, please let us know!
Local shows site(s) as running when they are not. Attached screen shot shows one site with green dot, but sometimes the site below the top one also shows a green dot so that it appears 2 sites are running. But in fact, there are no sites running. Confuses things.
Troubleshooting Questions
Does this happen for all sites in Local, or just one in particular?
Uncertain, but definitely more than a couple.
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
N/A
Replication
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!
See Screen shot.
System Details
Which version of Local is being used?
Local 6.7.2+6375
What Operating System (OS) and OS version is being used?
MacOS 12.6.6 (Monterey)
Attach the Local Log. See this Help Doc for instructions on how to do so:
Attached.
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. local-logs.zip (233.1 KB)
It seems like youāre running into a similar issue as some other users. There is a thread with some more detail here most recently for context. Iām checking with the team on this now to get this looked into further:
This is not a new issue, as Iāve been seen it for at least 6 months. A search here found only older posts, but I did not find one with a resolution.
Iāve attached a bit more info: screen shot showing 2 sites supposedly running, but neither of them are. I have also seen up to 3 sites in this mode/status.
Hi @NdnaJnz - Apologies, I wasnāt trying to insinuate this was a ānewā issue but merely linking the latest post related. Iāve shared all the related posts with the team and they are going to look into this further. We may end up merging all of the posts into one large āBugā thread. Stay tuned!
Hi @NdnaJnz - there is a known fix; the bug is due to erroneous data in your sites.json file. You can follow along in this thread on how to fix it. It involves opening that file, and deleting the āstatus: runningā line for the sites affected.
Iām going to merge this to a bigger bugs post and Iāve created a ticket for the engineering team to look in to.
@abroes
You can find sites.json here on macOS:
~/Library/Application Support/Local/sites.json. <=== This is an invisible directory
NOTE: On my system, there is both a visible and an invisible directory. Itās the invisible one that contains the path shown above.
Once youāve located the file, you can open it in Visual Studio Code or similar editor. If youāre using VSC then youāll need to use the ā§ā„F command to format the json document in a way thatās suitable for editing.
Then, do a search in the sites.json document on the word āstatusā. This will likely reveal the following attributes:
"__typename": "Site",
"status": "running",
Youāll want to delete both of these attributes per @austinwendt advice above.
Also, youāll probably find a set of these attributes corresponding to every site that you have in Local that is exhibiting the unwanted behavior, i.e. always showing a āStartedā stated in the Local UI.
In my case I had (3) such sites. Once these (6) attributes were removed, Local was launched and is now functioning normally, i.e. no more sites showing as started in the UI.
NOTES:
Be sure to backup your sites.json file prior to making any edits
Be sure to close down Local prior to making any edits to sites.json
Kudos to @austinwendt ā¦thank you!..your solution is working as far as I can tell
@webworx thank you so much for the detailed instructions, that was exactly what I needed and it works like a charm now! So glad to be finally rid of this annoying issue. I appreciate it!