Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ENOSPC: System limit for number of file watchers reached #1810

Open
janusqa opened this issue Nov 15, 2022 · 0 comments
Open

Error: ENOSPC: System limit for number of file watchers reached #1810

janusqa opened this issue Nov 15, 2022 · 0 comments

Comments

@janusqa
Copy link

janusqa commented Nov 15, 2022

Environment

  • Platform: Ubuntu 20.04.5 LTS
  • Docker Version: Docker version 20.10.21, build baeda1f
  • Node.js Version: v14.21.1
  • Image Tag: node:14-buster-slim

Expected Behavior

When running npm run dev the following error appears

[1] [0] internal/fs/watchers.js:251
[1] [0]     throw error;
[1] [0]     ^
[1] [0] 
[1] [0] Error: ENOSPC: System limit for number of file watchers reached, watch '/home/node/gb/src/packages/editor/node_modules/date-fns/esm/millisecondsToSeconds'
[1] [0]     at FSWatcher.<computed> (internal/fs/watchers.js:243:19)
[1] [0]     at Object.watch (fs.js:1587:34)
[1] [0]     at /home/node/gb/src/node_modules/node-watch/lib/watch.js:407:22
[1] [0]     at hasNativeRecursive (/home/node/gb/src/node_modules/node-watch/lib/has-native-recursive.js:61:12)
[1] [0]     at Watcher.watchDirectory (/home/node/gb/src/node_modules/node-watch/lib/watch.js:396:3)
[1] [0]     at /home/node/gb/src/node_modules/node-watch/lib/watch.js:423:16
[1] [0]     at /home/node/gb/src/node_modules/node-watch/lib/watch.js:161:35
[1] [0]     at Array.forEach (<anonymous>)
[1] [0]     at /home/node/gb/src/node_modules/node-watch/lib/watch.js:159:13
[1] [0]     at FSReqCallback.oncomplete (fs.js:180:23) {
[1] [0]   errno: -28,
[1] [0]   syscall: 'watch',
[1] [0]   code: 'ENOSPC',
[1] [0]   path: '/home/node/gb/src/packages/editor/node_modules/date-fns/esm/millisecondsToSeconds',
[1] [0]   filename: '/home/node/gb/src/packages/editor/node_modules/date-fns/esm/millisecondsToSeconds'
[1] [0] }
[1] [0] node ./bin/packages/watch.js exited with code 1
[1] [1] 

Possible Solution

https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached

Steps to Reproduce

https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached
Due to not having access to sysctl in docker image unable to make this work.

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@janusqa and others