Closed imShara closed 7 years ago
Thanks for pointing this out. What makes you think it's catberry-assets related?
What makes you think it's catberry-assets related?
Sorry, that's not about catberry-assets
. The problem is in dependency — csstime
.
This issue was moved to csstime/csstime-gulp-tasks#36
I think it's an internal catberry watcher that rebuilds the browser bundle, not a gulp tasks plugin either.
Problem appears after log message "starting assets building".
But does it still happen if you disable the assets plugin?
UPD. Made some tests. If you limit max_user_watches, the problem should appear in clean catberry example:
echo fs.inotify.max_user_watches=1000 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Why need to watch node_modules directory? No one makes changes in it while debug.
Catberry does not watch node_modules
directory, of course. It watches only for changes in catberry_components
and catberry_stores
directories. However, Catberry uses browserify+watchify and the last one watches any file included to the bundle.js
for changes. It could cause such problem if you had a really huge graph of dependencies in your app.
You can find the implementation of the entire process here https://github.com/catberry/catberry/blob/develop/lib/builders/BrowserBundleBuilder.js
I suspect you included some huge amount of files to the bundle by accident. There are very big apps built using Catberry and nobody had this issue before.
Dirty fix - increase
max_user_watches
per user