-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
ENOSPC in docker containers? #322
Comments
What was the watching solution before that did not have this problem? |
Just the |
Looks like the prior solution was watch which is based on Chokidar can be made to rely on |
I'd prefer not to fallback to that option if we can help it. I'll see if the |
Some users will need polling, sooner or later. The option needs to be made available. I'm not suggesting it should be hardcoded or the default. |
It doesn't seems to be a ulimit issue. Running in containter environments is getting fairly common. Shouldn't chokidar default to usePolling=true when it detects the underlying filesystem doesn't support fs.watch properly (just like it does when it detects it running on OS X)? Anyway I tested fs.watch inside docker and it seems to work just fine:
I tried running chockibar tests inside docker but I'm getting several errors, I'm not sure where to go from there.
Result: http://pastebin.com/edWzQsHL |
I'm curious how to detect that. If it's deterministic, I'd be fine with adding the detection to forever. |
Sure, once we work out a solid cross-platform way to detect that: #242
This isn't an equivalent test, it isn't watching recursively. Your run of the chokidar tests show that The polling tests, on the other hand, seem to be doing fine. So the most straightforward solution in this particular case is going to be |
I've used the official node image here: https://registry.hub.docker.com/_/node/ You could just try the same tests as I did. It should pull that image for you and start a bash shell in it:
|
Going to close this issue for now because I don't think there's anything chokidar could do differently to have an impact. The issue with The chokidar-level solution for this particular use-case at this point would be to enable polling (the older version of forever that does work was using a watcher that always relied on polling anyway). |
But I do intend to play with the described setup on docker at some point when I get a chance. |
Since updating to
chokidar
inforever
we got this report: foreversd/forever#739. I don't know all that much about Docker containers, but I wanted to see if you'd seen this before.The text was updated successfully, but these errors were encountered: