graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

v3 - hasura3 watch command fails due to "too many open files"

Open sghoweri opened this issue 1 year ago • 1 comments

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?

  1. By default, ignore the node_modules folder
  2. Provide a way (either via config or via the CLI itself) to omit files / folders from being watched

Screenshots or Screencast

CleanShot 2024-01-19 at 17 34 30@2x

Please provide any traces or logs that could help here.

CleanShot 2024-01-19 at 17 41 23@2x

sghoweri avatar Jan 19 '24 22:01 sghoweri

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

harishnair96 avatar Jan 25 '24 06:01 harishnair96

Closing this issue as it is fixed in the latest version of v3 cli. Please reopen if this is still an issue.

manasag avatar May 21 '24 08:05 manasag