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

fs.watch fails on v1.8.1 #1666

Closed
zj8487 opened this issue May 9, 2015 · 4 comments
Closed

fs.watch fails on v1.8.1 #1666

zj8487 opened this issue May 9, 2015 · 4 comments
Labels
fs Issues and PRs related to the fs subsystem / file system.

Comments

@zj8487
Copy link

zj8487 commented May 9, 2015

environment:

os: ubuntu 13.10
iojs: v1.8.1

step

> var assert = require('assert');
undefined
> fs.watch("/home/xxx/test.js", { persistent: true }, assert.fail)
Error: watch ENOSPC
    at exports._errnoException (util.js:749:11)
    at FSWatcher.start (fs.js:1228:11)
    at Object.fs.watch (fs.js:1254:11)
    at repl:1:4
    at REPLServer.defaultEval (repl.js:124:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:277:12)
    at emitOne (events.js:77:13)
    at REPLServer.emit (events.js:166:7)
@evanlucas
Copy link
Contributor

Do you have drive space left?

@zj8487
Copy link
Author

zj8487 commented May 9, 2015

how many space it will cost?

KiB Mem:   3010684 total,  2877212 used,   133472 free,   127428 buffers
KiB Swap:  3071996 total,      224 used,  3071772 free.   826616 cached Mem

i free some space it works~~~

@bnoordhuis
Copy link
Member

ENOSPC can also mean you're running into one of the system limits:

$ sysctl -a | grep ^fs.inotify
fs.inotify.max_queued_events = 16384
fs.inotify.max_user_instances = 128
fs.inotify.max_user_watches = 8192

I'm going to close this as it's not really a bug. The error message could perhaps be a little nicer but the kernel doesn't tell us anything besides that ENOSPC error.

@bnoordhuis bnoordhuis added the fs Issues and PRs related to the fs subsystem / file system. label May 9, 2015
@zj8487
Copy link
Author

zj8487 commented May 10, 2015

thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

No branches or pull requests

3 participants