graphql-engine
graphql-engine copied to clipboard
v3 - hasura3 watch command fails due to "too many open files"
Component
c/v3-cli
Hasura DDN CLI Version: 2024.01.15
What is the current behaviour?
I'm unable to use the hasura3 watch
command in an existing repo (ie. real world use case), likely due to the number of files in the repo (node_modules).
This error occurs whether or not I include the --dir
and --profile
CLI params.
What is the expected behaviour?
- By default, ignore the
node_modules
folder - Provide a way (either via config or via the CLI itself) to omit files / folders from being watched
Screenshots or Screencast
Please provide any traces or logs that could help here.
Hello @sghoweri , thank you for reporting the issue. We were able to identify the problem and we will release an improvement for this feature in a future version of the CLI.
This limit on the number of open files is operating system specific and for now you can try increasing this limit by following the instructions here: https://github.com/fsnotify/fsnotify?tab=readme-ov-file#platform-specific-notes
Closing this issue as it is fixed in the latest version of v3 cli. Please reopen if this is still an issue.