watchpack icon indicating copy to clipboard operation
watchpack copied to clipboard

Silent fail when fs.inotify.max_user_watches is exceeded

Open SpaceK33z opened this issue 8 years ago • 2 comments

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 https://github.com/webpack/webpack/issues/1281

SpaceK33z avatar Dec 27 '16 10:12 SpaceK33z

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?

msakrejda avatar May 10 '17 23:05 msakrejda

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?

zzacharo avatar Jan 30 '20 14:01 zzacharo