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

Silent fail when fs.inotify.max_user_watches is exceeded #46

Open
SpaceK33z opened this issue Dec 27, 2016 · 2 comments
Open

Silent fail when fs.inotify.max_user_watches is exceeded #46

SpaceK33z opened this issue Dec 27, 2016 · 2 comments

Comments

@SpaceK33z
Copy link
Member

Docker container configuration

  • Webpack 1.10.3
  • Node v0.10.25
  • Ubuntu 15.04

Host configuration

  • Docker 1.0.1
  • Ubuntu 14.04

Issue

Running webpack --watch in docker container successfully performs one build and then exits with exit code 0 (success).

Expectation

Some kind of error code and a return code != 0 if max_user_watches is exceeded.

Workaround

Increasing /proc/sys/fs/inotify/max_user_watches on the host system fixes the problem.

Moved from webpack/webpack#1281

@msakrejda
Copy link

I ran into this as well, but in the context of webpack HMR, where this leads webpack into a state where it's watching some files but not others. This was extremely frustrating and time-consuming to track down.

I'm happy to try to contribute a patch with some guidance. Any suggestions as to where to start? And is the particular issue that I ran into a watchpack or webpack problem?

@zzacharo
Copy link

zzacharo commented Jan 30, 2020

Hey, I ran into a probably similar problem for macos. Running watch in directories that have symlinks doesn't do anything. The directories to be watched are correct but changing files in that directories doesn't trigger any new build. Could be this related to macos watchers configuration or watchpack/chokidar?

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

3 participants