My local sites disappeared after an accidental shutdown

What issue or error are you experiencing?

I been facing a problem of continously downloading SQL after every launch of local but recently while downloading sql my power went out and powering the pc on i saw that all of my sites have disappeared
or more like invisible to me now.

What steps can be taken to replicate the issue?

i tried restarting, configuring with it and even uninstalling and reinstalling the local application but no luck.

Here is the SS


System Details

  • Local Version:
    8.2.1.0
  • Operating System (OS) and OS version:
    Window 10

Version 22H2

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-lightning.log (290.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.

Hello @Ashura -

Sorry you’re running into issues with Local. Local stores your site information (not the site itself) in a file called sites.json

Depending on your OS, this lives at:

Mac/Linux: ~/Library/Application Support/Local/sites.json

Windows: %APPDATA%\Roaming\Local\sites.json

Can you check the path here and see if that file a) exists and b) what the contents are?

Sam

Hey @Ashura - Welcome to the Local Community Forums!

I think I was able to replicate how Local looks in your screenshot. What seems to have happened is that a file in Local’s user config folder was corrupted. To fix this, can you try:

  1. Quit Local
  2. Delete the corrupted file. This is the same location that Sam mentioned, but a different file (site-groups.json):
Mac/Linux: ~/Library/Application Support/Local/site-groups.json
Windows: %APPDATA%\Roaming\Local\site-groups.json
  1. Start Local

Can you give that a try and see if that fixes things?

1 Like