error: EMFILE, too many open files
-
I pulled the latest code from the repo yesterday and I get "error: EMFILE, too many open files" at startup. Upon looking further there were recommendations for using "graceful-fs" instead of "fs" module. The problems seems to have come back up again. Anyone else have the same issue.
Thanks
-
@skulasekar Have you tried disabling your plugins and themes to ensure it is nodebb itself giving you issues?
./nodebb reset plugins
./nodebb reset themes
-
Thanks for the response @mootzville , this was happening intermittently. Doesn't seem to happen now.
-
I know that this has been for forever since this was posted. But this can still happen.
You can check your current EMFILE limit with "uname -n". Typically this will be set to 1024.
You can raise this temporarily to something much higher like this...
uname -e 20480
That will typically fix things.
-
@scottalanmiller that's weird, we do use graceful-fs which should handle that automatically
https://github.com/NodeBB/NodeBB/blob/cc9d6fd08b29436e134de89d3bf4487479c7ce32/src/file.js#L13
It's possible in done cases this doesn't apply before an operation is executed. When did you encounter an issue?