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: EMFILE: too many open files, watch #4

Open
dadiorchen opened this issue Apr 24, 2023 · 3 comments
Open

Error: EMFILE: too many open files, watch #4

dadiorchen opened this issue Apr 24, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@dadiorchen
Copy link
Contributor

After npm start, get:

Logs for your project will appear below. Press Ctrl+C to exit.
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)
Emitted 'error' event on NodeWatcher instance at:
    at FSWatcher._checkedEmitError (/Users/deanchen/work/greenstand/treetracker-web-map-core-demo/node_modules/metr
o-file-map/src/watchers/NodeWatcher.js:134:12)
    at FSWatcher.emit (node:events:390:28)
    at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:210:12) {
  errno: -24,
  syscall: 'watch',
  code: 'EMFILE',
  filename: null
}
treetracker-web-map-core-demo((HEAD detached at staley/simple-card))% 

OS: macos 10.5
ulimit: ulimit -n 10240

image

@dadiorchen dadiorchen added the help wanted Extra attention is needed label Apr 24, 2023
@pierrelstan
Copy link
Collaborator

pierrelstan commented Apr 24, 2023

@dadiorchen run ulimit -n in the terminal to see the limit and run ulimit -n 1024 to set a limit of 1024 to it. Let me know if its works.

@dadiorchen
Copy link
Contributor Author

No luck for this... I'm now change to run it in a ubuntu container.

@mahimnamehta
Copy link

mahimnamehta commented Feb 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants