Closed symwell closed 1 year ago
Note the file watched was lighting/__pycache__
. Should probably add __pycache__
in the list of ignored files.
Got the same error with the scanner
$ yarn run scanner scan --watch --appmap-dir ~/tmp/too_many_open_files
Using scanner configuration file /home/test/src/appmap-js/packages/scanner/built/sampleConfig/default.yml
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/test/tmp/too_many_open_files/requests3/1670264573_5802293_http_www_example_com_password_resets.appmap.json'
at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
at Object.watch (node:fs:2315:34)
at createFsWatchInstance (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:119:15)
at setFsWatchListener (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:166:15)
at NodeFsHandler._watchWithNodeFs (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:331:14)
at NodeFsHandler._handleFile (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:395:23)
at NodeFsHandler._addToNodeFs (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:637:21)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/home/test/src/appmap-js/node_modules/chokidar/index.js:647:10)
at NodeFsHandler._addToNodeFs (/home/test/src/appmap-js/node_modules/chokidar/lib/nodefs-handler.js:645:18) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/home/test/tmp/too_many_open_files/requests3/1670264573_5802293_http_www_example_com_password_resets.appmap.json',
filename: '/home/test/tmp/too_many_open_files/requests3/1670264573_5802293_http_www_example_com_password_resets.appmap.json'
}
Node.js v18.8.0
:tada: This issue has been resolved in version @appland/appmap-v3.53.1 :tada:
The release is available on:
@appland/appmap-v3.53.1
@appland/appmap-v3.53.1
Your semantic-release bot :package::rocket:
Tracking as a separate issue this error first described in https://github.com/getappmap/appmap-js/issues/881.
I was able to reproduce it as described here. This occurs from watching too many files and a limit in the kernel. This limit can't be changed without root privileges.
kern.num_files: 7506
fs.inotify.max_user_watches = 65536