This looks like an old bug which was fixed a while ago. The general issue is that Local is trying to get a list of sites from it’s GraphQL endpoint, but for some reason, that endpoint isn’t available.
I am seeing some odd lines in the Local log that makes me feel like something within the DNS of this computer isn’t resolving correctly:
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2021-07-31T05:50:26.484336Z 0 [Note] Server hostname (bind-address): '127.0.0.1'; port: 10028","timestamp":"2021-07-31T05:50:26.641Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2021-07-31T05:50:26.485117Z 0 [Note] - '127.0.0.1' resolves to '127.0.0.1';","timestamp":"2021-07-31T05:50:26.641Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2021-07-31T05:50:26.485215Z 0 [Note] Server socket created on IP: '127.0.0.1'.","timestamp":"2021-07-31T05:50:26.641Z"}
Note the part that says:
Server hostname (bind-address): '127.0.0.1'; port: 10028
- '127.0.0.1' resolves to '127.0.0.1'
Server socket created on IP: '127.0.0.1'
From that error, it’s almost like the computer is trying to call itself by its IP address and not by localhost.
Can you try the steps outlined in this reply and see if there’s something already listening on the port that Local uses:
Also, can you let us know if you have any antivirus software installed, or other network configuration settings?
Both of these things make sense in terms of why they resolve the issue – basically, Local was listening on port 4000, but then for some reason, the port wasn’t released correctly until manually killing the old process (like what mehedi did) or the computer restarted (what riodejaneiro did)
I wonder why Local isn’t able to fully close and release that port 4000?
When you closed Local, how did you do it? Was it using the little “x” in the upper left corner of the Local app, or did you use the quit command from the “Menu > Local > Quit”?
Were there any other processes running, like maybe a live link that was open, or a site wasn’t fully done being created?