ENOSPC error—which is commonly surfaced as “no space left on device.”
Symptoms
You may see the following in Windsurf output logs:file_watcherAddTrackedWorkspaceAddDirectoriesRecursive
- Windsurf opens normally
- The language server exits immediately after starting
- Language-server-dependent features (e.g., Cascade, autocomplete) do not work
Diagnosis
1) Check your current inotify limits
Run the following commands:2) Check how many inotify instances are currently in use
max_user_instances, new inotify users (like the language server) may fail to initialize.
Solution
Increase the inotify limits. You can apply changes temporarily (until reboot) or permanently.Temporary fix (until reboot)
Permanent fix (survives reboot)
When to use which value
fs.inotify.max_user_watches=524288
Recommended for large repositories or monorepos. Each watched file/directory consumes kernel memory (often ~1 KB per watch on 64-bit systems), so 524288 watches can use roughly ~512 MB of kernel memory.fs.inotify.max_user_instances=1024
Recommended if you run multiple applications that create inotify instances (multiple IDE windows, containers, file sync tools, etc.). The default of 128 can be exhausted quickly in development environments.