droxit / roxcomposer

This is the droxit microservice framework repository.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

Log observer crashes when too many files are being watched #122

Closed heller-droxit closed 5 years ago

heller-droxit commented 5 years ago

The following error is thrown when too many files are being watched (see Stackoverflow):

fs.js:1384
    throw error;
    ^

Error: watch ../logs/roxconnector.log ENOSPC
    at _errnoException (util.js:1022:11)
    at FSWatcher.start (fs.js:1382:19)
    at Object.fs.watch (fs.js:1408:11)
    at fs.stat ([...]/roxcomposer/build/roxcomposer-demo-0.4.1.dev2+getroxcomposerlogs27/api-server/plugins/log_observer.js:95:23)
    at FSReqWrap.oncomplete (fs.js:153:5)

This error (and other read related errors) have been caught and logged. More specific error handling could be complicated.