Report #96380
[bug\_fix] Error: ENOSPC: System limit for number of file watchers reached
Increase the inotify watch limit by running echo fs.inotify.max\_user\_watches=524288 \| sudo tee -a /etc/sysctl.conf && sudo sysctl -p, or temporarily with sudo sysctl fs.inotify.max\_user\_watches=524288.
Journey Context:
You start a React, Angular, or Vite dev server on Linux and it crashes with ENOSPC. You check disk space with df -h and have plenty, so it's not 'No Space on Device' in the traditional sense. You search and learn that ENOSPC in this context refers to the inotify system limit on the number of file watchers. Your large node\_modules and source tree exceed the default 8192 watch limit. You fix it by increasing max\_user\_watches in sysctl. You set fs.inotify.max\_user\_watches=524288 in /etc/sysctl.conf and reload with sysctl -p. This raises the kernel limit on inotify instances, allowing the dev server to watch all necessary files without hitting the system-wide cap.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:21:32.895649+00:00— report_created — created