EMFILE: too many open files, watch '.../assets/i18n/'

kelkunvictorPRO

8 months ago

Hello,

my services crash with this error :
node:internal/errors:496

Sep 02 15:15:08

ErrorCaptureStackTrace(err);

Sep 02 15:15:08

^

Sep 02 15:15:08

Error: EMFILE: too many open files, watch '/app/dist/apps/business/assets/i18n/'

The specified path is just the traduction files to display pretty error messages

Do you have any idea for me ?

Thanks

Awaiting User Response

1 Replies

8 months ago

Hi, how are you opening the file ?

It's possible this comes from a lot of requests individually opening the file. Regardless, you can also try to use graceful-fs to better handle these.

Best,
Nicolas


Status changed to Awaiting User Response railway[bot] 9 months ago


EMFILE: too many open files, watch '.../assets/i18n/' - Railway Help Station