ENFILE
The error code meaning the whole system, not just one process, has run out of open file slots.
In more detail
It is rarer than EMFILE and points to a problem affecting the entire machine. It usually means descriptors are leaking across many processes or the system-wide limit is set too low.
Related terms
- EMFILE — The error code meaning a process has hit its limit on open file descriptors, printed as "too many open files".
- file descriptor — A small number the operating system gives a process for each open file, socket or pipe, used in every later read or write.
Taught in
- Asynchronous File I/O: node:fs/promises & Handles — Node.js Internals & Backend Services