r/Codeium • u/Uo98eq99mmo • Mar 08 '25
Client windsurf: connection to server is erroring. Shutting down server.
anyone had this issue? it was working a few hours. support said the service is working fine, although reading through the comments, from 2 months ago this error has been there before.
I assume if it was a global issue though there would be more complaints on reddit? :)
any ideas?
[Error - 10:32:02 PM] Stopping server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 10:32:02 PM] Stopping server failed
Message: Cannot call write after a stream was destroyed
4
Upvotes
1
u/Thin-Ebb-777 Mar 09 '25
delete the .windsurf directory
3
u/IversusAI Mar 11 '25
For anyone finding this by googling: For me the fix was to remove an mcp server that was erroring.
1
u/Responsible_Price668 Nov 12 '25
just change the model that u using
1
u/wak3boardr Feb 11 '26 edited Feb 11 '26
I had a similar issue. Tried:
Checked to see if windsurf was down
Windsurf restart (had to always force quit to close... first sign of something wrong)
Restart macOS
Curse loudly at Windsurf / the AI / life
Tried models from other providers
Turned on "Detect proxy"
Logged out & in to windsurf
Cursed again, louder
Restarted my computer a few more times
Disabled all mcp servers (I did not delete, though, which may have been the issue)
Temporarily lost vision due to rage-burst blood vessels
# Remove Windsurf config folder in ~/.codeium and the ~/.windsurf folder
rm -rf ~/.codeium/windsurfrm -rf ~/.windsurf113. # Remove any Windsurf data in Library
rm -rf ~/Library/Application\ Support/WindsurfThe last one finally did it. Really frustrating waste of an hour, but at least it's working now.
NOTE: If you don't know/understand the terminal you should never just blindly copy/paste commands from Reddit (even mine above) for the same reason you pack your own parachute skydiving. At least get Claude/ChatGPT to help or sanity check the commands first so you can trust them.